column a | column b
|:-----|:-----|
a|b
c|d
生成的表格如下:
column a | column b
column a | column b
|:-----|:-----|
a|b
c|d
生成的表格如下:
column a | column b
tikz-uml都已经1.0b了, 快要正式发布了吧,哈哈. 但是安装手册还没写 :( . 在这儿补一个MacTeX下的手动安装步骤:
主要是那两个路径哈.
#!/bin/sh
mkdir -p ~/Library/texmf/tex/latex/tikz-uml/
mkdir -p ~/Library/texmf/doc/latex/tikz-uml/| % 使用xelatex, 且存成utf-8, 用%!来控制TeXShop选择xeLaTeX | |
| %!TEX TS-program = xelatex | |
| %!TEX encoding = UTF-8 Unicode | |
| \documentclass[12pt]{article} | |
| % 导言区 | |
| \usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots. | |
| \geometry{letterpaper} % ... or a4paper or a5paper or ... | |
| %\geometry{landscape} % Activate for for rotated page geometry | |
| %\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent |
| yas的once那个snippet的异常与 (yas-global-mode 1)有关? |
有时候,就算在用git,也希望 ack时,提示的Directory是buffer所在目录。
(defun ack-pwd ()
"return the current buffer's directory"
(file-name-directory buffer-file-name))
(global-set-key (kbd "<f8>") 'ack)再将ack-pwd添加到ack-root-directory-functions的第一位:
| def title_case(title, minor_words='') | |
| minor_list = minor_words.split.map {|x| x.downcase} | |
| words = title.split | |
| result = [] | |
| return '' if words == [] | |
| result << words[0].capitalize | |
| words[1..-1].each do |elem| | |
| if minor_list.include?(elem.downcase()) | |
| result << elem | |
| else |
| #include <sys/types.h> | |
| #include <ifaddrs.h> | |
| #include <netinet/in.h> | |
| #include <arpa/inet.h> | |
| bool getIP(string &ip) | |
| { | |
| struct ifaddrs *ifa_buf = NULL; /// /usr/include/ifaddrs.h | |
| struct ifaddrs *ifa_iter = NULL; | |
| void *tmp_addr_ptr = NULL; |
| (setq gnus-posting-styles | |
| '((".*" | |
| (name "tangyi") | |
| (address "[email protected]") | |
| (eval (setq mm-coding-system-priorities | |
| '(iso-8859-1 utf-8 gbk)))) | |
| ("tw\\.comp" | |
| (name "ngn999") | |
| (address "[email protected]") |
| ./configure --with-emacs=/Applications/Emacs.app/Contents/MacOS/Emacs --with-lispdir=/Users/ngn999/.emacs.d/site-lisp/ --with-texmf-dir=/Users/ngn999/Library/texmf |
| require 'formula' | |
| class Maven <Formula | |
| url 'http://apache.dataguru.cn/maven/maven-2/2.2.1/binaries/apache-maven-2.2.1-bin.tar.gz' | |
| head 'http://www.apache.org/dist/maven/binaries/apache-maven-3.0-beta-2-bin.tar.gz' | |
| homepage 'http://maven.apache.org/' | |
| if ARGV.build_head? | |
| md5 'a40881f56a3087828545f30921ff393f' | |
| else |