| 两个quad空格 | a \qquad b | 两个m的宽度 | |
| quad空格 | a \quad b | 一个m的宽度 | |
| 大空格 | a\ b | 1/3m宽度 | |
| 中等空格 | a\;b | 2/7m宽度 | |
| 小空格 | a\,b | 1/6m宽度 | |
| 没有空格 | ab | ||
| 紧贴 | a\!b | 缩进1/6m宽度 |
2013年11月27日星期三
latex 空格
2013年11月4日星期一
latex 安装 宏包
最近用elsevier的格式,遇到问题numcompress.sty not found.
解决方法:
下载numcompress.sty (http://cdn.elsevier.com/assets/file/0020/109433/numcompress.sty)
把这个包放到MiKTeX 2.9\tex\latex\elsevier中,
在MiKTeX 2.9\miktex\bin\x64中运行mo_admin.exe,点击Refresh FNDB来更新数据。
解决方法:
下载numcompress.sty (http://cdn.elsevier.com/assets/file/0020/109433/numcompress.sty)
把这个包放到MiKTeX 2.9\tex\latex\elsevier中,
在MiKTeX 2.9\miktex\bin\x64中运行mo_admin.exe,点击Refresh FNDB来更新数据。
2013年4月2日星期二
latex 表格
-
Type one:
%%%%%%%%%%简单表格%%%%%%%%%%
\begin{tabular}{|c|c|}
\hline
a & b \\\hline
c & d\\
\hline
\end{tabular}
- Type two:
%%%%%%%%%%简单表格,居中(一)%%%%%%%%%%
\begin{center}
\begin{tabular}{|c|c|}
\hline
a & b \\\hline
c & d\\
\hline
\end{tabular}
\end{center}
- Type three:
%%%%%%%%%%简单表格,居中(二)%%%%%%%%%%
\centering
\begin{tabular}{|c|c|}
\hline
a & b \\\hline
c & d\\
\hline
\end{tabular}
This a Table~??
- Type four:
%%%%%%%%%%简单表格,居中,标题,编号,固定位置%%%%%%%%%%
\begin{table}[h]
\centering
\caption{table}\label{tab:table}
\begin{tabular}{|c|c|}
\hline
a & b \\\hline
c & d\\
\hline
\end{tabular}
\end{table}
- Type five:
%%%%%%%%%%一个完整的例子%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%Beginning of Table example%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{table}[ht]
\caption{Review paper} % title of Table
\centering % used for centering table
\begin{tabular}{|c|c|} % centered columns (2 columns)
\hline\hline %inserts double horizontal lines
Item 1 & Item 2 \\ [0.5ex] % inserts table heading
\hline % inserts single horizontal line
a & b \\ % inserting body of the table
c & d \\
e & f \\[1.5ex] % [1.5ex] adds vertical space
\hline %inserts single line
\end{tabular}
\label{table:nonlin} % is used to refer this table in the text
\end{table}
%%%%%%%%%%%%%%%%%% end of the example%%%%%%%%%%%%%%%%%%%%%%%%%
订阅:
博文 (Atom)