显示标签为“LaTex”的博文。显示所有博文
显示标签为“LaTex”的博文。显示所有博文

2013年11月27日星期三

latex 空格

两个quad空格a \qquad ba \qquad b两个m的宽度
quad空格a \quad ba \quad b一个m的宽度
大空格a\ ba\ b1/3m宽度
中等空格a\;ba\;b2/7m宽度
小空格a\,ba\,b1/6m宽度
没有空格abab\,
紧贴a\!ba\!b缩进1/6m宽度

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来更新数据。

2013年4月2日星期二

latex 表格


%%%%%%%%%%简单表格%%%%%%%%%%
\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%%%%%%%%%%%%%%%%%%%%%%%%%