Latex 注意事项总结

这次终于要用LaTeX了。之前一直觉得麻烦没用,这次破釜沉舟给学一下,

记录一下

换行 \\ 

如果文中有 _ & 等字符,前面应该加上\ 相当于编程中的转义字符

输入罗马字体

大写罗马字体2  \uppercase\expandafter{\romannumeral2}

大写罗马字体3  \uppercase\expandafter{\romannumeral3}

大写罗马字体4  \uppercase\expandafter{\romannumeral4}

对于初学者来说比较麻烦的是,对于公式,表,图的处理。

对于公式的话,大部分复杂的公式都可以依赖于Mathpix 工具来进行处理。首先从官网安装mathpix,这个好像对于个人用户免费,这个软件的强大之处 就是具有账号,能进行同步,对于几台电脑同时编辑的工作来说的确够给力。

对于表的编辑来说,有一个网站http://www.tablesgenerator.com/latex_tables 可以用来快速的对表格进行编码。

步骤1:首先在Word 中打好表格,然后将其复制到Excel中,随后再复制到网页中

即可,对于比较规整的表格来说比较好处理。有一些特殊情况需要额外关注一下:

\begin{table}[htbp] % 开始表的编排
\caption{Comparison results of using different refocusing method} % 表名称,注意有caption 这个选项之后,才能开始进行编号。
\begin{tabular}{c|c|c} %开始设置表格式,c代表列,|代表竖线

\hline %代表横线,一般是一行画一个

\diagbox{Testset}{Method} % 绘制斜线双表头

其余的按照规定进行处理即可。

下面记录一下图的编排格式,这里我们的需求是一个表,然后两个子表,两个子表竖排

\begin{figure}
\centering
\subfigure[]{ % subfigure  开始子表,    [] 里面如果小标题的标注
\begin{minipage}[b]{0.5\textwidth}
\includegraphics[width=\textwidth]{analyze/fig7(a).pdf}
\end{minipage}
%\begin{minipage}[a]{0.2\textwidth}
%
%\includegraphics[width=\textwidth]{analyze/fig7(b).pdf}
%\end{minipage}
}\\
\subfigure[]{
\begin{minipage}[b]{0.5\textwidth}
\includegraphics[width=\textwidth]{analyze/fig7(b).pdf}
\end{minipage}
}
\caption{Analysis of the confidence score of same positions of different refocused images. (a) detection results focusing on region 9. (b) detection results focusing on region 11}
\end{figure}
1)subfigure本身不支持内部图片换行,所以结合minipage使用
2)minipage可以在每一个includegraphics后跟双斜杠“\”表示换行,也可以像上面代码中写的使用”\vspace{4.pt}”来控制垂直间距,但是需要注意的是”\vspace{4.pt}”必须紧跟在对应的includegraphics,不然得不到想要的结果。
3)使用figure和subfigure必须引相应的包”\usepackage{graphicx}”和”\usepackage{subfigure}

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章