您的位置:首页 > 其它

Latex基本使用

2016-01-18 21:16 459 查看
论文排版,基本使用,长期更新。

1、图片转换成.eps格式。

在排版文档的目标文件夹按住shift 右击鼠标,点击在此打开命令行。

输入:
bmeps filename.jpg filename.eps


既可完成转换。注意转换后图片不改变大小等基本格式。

2、公式的编辑和引用

首先公式必须是先编写好,才能引用,编写格式如下:

\begin{equation}\lable{eq1}

\end{equation}


eq1是公式的编号,文章要引用必须用这个编号,如:


,在中间写要编写的公式。可以按照MathType那种样式写。



3、文章中的一些短公式和字母之类的,要用一定的格式编写,如用户i和用户j:



4、图片的设置和引用。在论文中引用图片,要提前设置好图片的格式,前面已经说过了是使用eps的图片。

\begin{figure}[!h]
\centering
\includegraphics[width=100mm]{fig2.eps}
\caption{Divide the trust relationships in trust network}\label{fig2}
\end{figure}


代码中的{fig2.eps}是引用的图片的名称,label{fig2}是以后再文章中引用的名称。可以设置基本的属性,宽度和高度以及图片标题等等。

5、表格的设置和引用。

\begin{table}[t]
{\footnotesize%
\begin{center}
\caption{Ciao data set statistics}
\begin{tabular*}{8cm}{@{\extracolsep{\fill}}@{~~}ll@{~~}}
\toprule
Statistic & Amount \\
\midrule
Amount of users & 7357 \\
Quantity of goods & 105114 \\
Number of items	& 28 \\
Amount of users comment	& 284086 \\
Quantity of trust relationship & 111781 \\
The maximum amount of trustor & 805 \\
The maximum amount of trustee & 101 \\
\bottomrule
\end{tabular*}
\label{tab1}
\end{center}
}
\end{table}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  latex