论文写作总结 & Latex语法总结

工欲善其事, 必先利其器

想要写好一篇英文科技论文,首先需要掌握写作的流程,用好写作的工具,掌握好英文写作的相关工具。

1. 英文科技论文写作:如何写一篇合格的NLP论文---如何写一篇合格的NLP论文 

2. 使用Latex进行论文写作的工具,可以直接使用网页版的overleaf:Overleaf​​​​​​ 注册完账号之后学习相关latex相关的语法就可以开始尽情的写作了。

 3. 检查论文中是否存在语法错误的工具:Grammarly  对于英文论文写作,不可避免的会出现一些语法错误,可以使用语法错误检测工具辅助来进行语法错误检测。

4. 检查论文排版可以使用工具:Paper X-Ray (acemap.info)  对于写好的paper,可以对paper的格式等进行一个评分判断,判断paper的排版是否符合规则。

5. Latex的使用技巧:Latex的使用技巧

最关键即为如何使用Latex进行论文写作, 在短时间内便可以学习完Latex,通过套用模板便可以完成论文写作。并且使用的方便程度远超过Word。

Latex语法

Latex中表格表示

        latex基本表格绘制参考:Latex基本表格绘制

1、基本格式

        c, l, r, 分别表示表格居中,靠左,靠右

        | 表示添加绘制竖线, \hline 表示绘制横线

        & 表示表格中竖线间隔, \\ 表示换行

\begin{table}[htbp]
\begin{tabular}{|c|c|}
%一个c表示有一列,center、left、right(居中、靠左、靠右)
\hline  %在表格最上方绘制横线
1 & 2 \\    %中间用&连接表示间隔, \\表示换行
\hline
3 & 4 \\
\hline
\end{tabular}
\end{table}

2、常见三线表

\begin{table}[htbp]
\begin{tabular}{ccc}
\hline
Name & Number & Sex \\
\hline
Steve Jobs & 001 & Male \\
Bill Gates & 002 & Female \\
\hline
\end{tabular}
\end{table}

 通常来说, 我们会希望表格的第一根线和最后一根线比表格中的横线更粗一些。

booktabs宏包为我们提供了这个功能, 加载booktabs宏包之后可以使用\toprule 和 \bottomrule 命令分别画出表格头和表格底的粗横线, 而用\midrule 画出表格中的横线。

\usepackage{booktabs}
\begin{table}[htbp]
\begin{tabular}{ccc}
\toprule
Name & Number & Sex \\
\midrule
Steve Jobs & 001 & Male \\
Bill Gates & 002 & Female \\
\bottomrule
\end{tabular}
\end{table}

 3、table环境

{table}有若干可选参数[!htbp]

h代表here, 将表格排在当前文字位置, 如果本页所剩的页面不够,这一参数将不起作用。

t代表top, 将表格放在下一页的页首。

b代表bottom, 将表格放在当前页的底部。

p代表浮动页, 将表格放置在一只允许有浮动对象的页面上。

!代表忽略美观因素, 尽可能按照参数指定的方式来处理表格浮动位置。

表格将会按照所给参数,依次尝试按照每个参数进行排版, 当无法排版时, 将会按照下一个参数。一般使用[htb]的组合。

4、单元格合并

单元格合并有横向合并和纵向合并, 横向合并和纵向合并可以嵌套。

(合并横向单元格)

\begin{table}[htbp]
\begin{center}
\begin{tabular}{|c|c|c|}
\hline
\multicolumn{3}{|c|}{information} \\
%用\multicolumn{3}表示横向合并三列, |c|表示居中并且单元格两侧添加竖线,最后是文本
\hline
Name & Number & Sex \\
\hline 
Jack & 001 & Male \\
\hline
Angela & 002 & Female \\
\hline
\end{tabular}
\caption{This is table}
\end{center}
\end{table}

 (合并纵向单元格)

\usepackage{multirow}

\begin{table}[htbp]
\centering
\begin{tabular}{|c|c|c|c|c|c|c|} %
\hline
\multicolumn{7}{|c|}{event}\\  
\hline
\multirow{4}*{strategy} & 50 & 0 & 100 & 200 & 300 & 300 \\   
\cline{2-7}  
& 100 & 100 & 0 & 100 & 200 & 200 \\
\cline{2-7}
& 150 & 200 & 100 & 0 & 100 & 200 \\
\cline{2-7}
& 200 & 300 & 200 & 100 & 0 & 300 \\
\hline
\end{tabular}
\end{table}

(横向单元格 和 纵向单元格 嵌套)

\usepackage{multirow}

\begin{table}[htbp]
\centering
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline

\multicolumn{2}{|c|}{\multirow{2}*{s}} & \multicolumn{4}{c|}{event} & \multirow{2}*{max} \\
\cline{3-6}
\multicolumn{2}{|c|}{} & 50 & 100 & 150 & 200 & \\
\hline

\multirow{4}*{strategy} & 50 & 0 & 100 & 200 & 300 & 300 \\
\cline{2-7}
& 100 & 100 & 0 & 100 & 200 & 200 \\
\cline{2-7}
& 150 & 200 & 100 & 0 & 100 & 200 \\
\cline{2-7}
& 200 & 300 & 200 & 100 & 0 & 300 \\
\hline

\end{tabular}
\end{table}

5、斜线表格

需要使用{diagbox}宏包,此处略。

Latex中图片表示​​​​​​​ 

Latex中空格表示

两个quad空格 a \qquad b
quad空格 a \quad b
中空格 a \, b
小空格 a \; b
没有空格 ab

Latex中的基本语法 

Guess you like

Origin blog.csdn.net/jiangchao98/article/details/120105141
Recommended