本人第一次使用latex写论文,很多东西需要学习,一下是记录的一下简单的使用方法
1、 首先是cTex包中的winedt7.0未**,尝试多次**无效,之后安装了**版本winedt10替换原来自带的winedt7.0
2、 插入参考文献,安装一个jabref,可以利用自己建的bib文件添加reference, 文章末尾使用语句\bibliography{mybibfile} 添加自己的bib文件
3、 插入公式:插入宏包 amsmath使用环境 \begin equation\equarry$ etc.
4、 插入图片:插入宏包 graphic,使用环境 \begin figure
5、 插入伪代码:插入宏包algorithm,algorithmic, 使用环境 \begin algorithm 嵌套环境 \begin algorithmic
6、 插入表格:使用环境 \begin table 嵌套\begin tabular, 过程中可能会遇到Excel数据插入问题,手动输入对于数据量大的很麻烦,所以可以使用Excel2latex.xla 宏因为excel2latex是一个宏,因此首先要在 文件-选项-信任中心-信任中心设置-宏设置 里确认没有选择禁用所有宏,若已禁用的就更改下设置。然后在 文件-选项-加载项-管理加载项 的选项卡里点浏览,载入已下载好的Excel2LaTeX.xla文件,并勾选确认。
添加加载项的前提条件是office(不支持2010以后的版本)已经**,本人双击了Excel2latex.xla文件,他就莫名地可以用了
7、 图或者表的标题左中右位置设置主要使用语句\raggedleft \centering \raggedright, the location of caption or title which is located in the top or bottom is decided by the sentence of “\caption ” is located in the top or bottom
\raggedleft
\caption{The result of Tension/compression Spring Designs problem}\label{rtcs}
8、 special math symbol — Greekletter
9、 latex don’t support figure.fig, so the format of figure in matlab sets as figure.eps Meanwhile, there is a need to insert the macro package(epstopdf)
10、 插入子图:insert宏包usepackage{subfigure},using environment:\begin{minipage}[t]{0.3\linewidth}
11、 Insert the table ,
单元格的内容过程需要自动换行,在\begin{table}语句之前增加语句:\newcommand{\tabincell}[2]{\begin{tabular}{@{}#[email protected]{}}#2\end{tabular}}
表格行数过多,内容显示缺失,
12、在使用\algorithmc 环境编辑算法伪代码时,需要在\usepackage后面加上这两句
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
就可以把其中的require和enquire语句变成input和output了
相关文章: