本文总结作者在使用 LaTex 编写论文时使用到的相关语法。
一、符号







绝对值符号 ||:\lvert , \rvert









二、图片
1. 单张图片
1 2 3 4 5
| \begin{figure}[H] \centering \includegraphics{figures/img.png} \caption{caption} \end{figure}
|
2. 并排图片
1 2 3 4 5 6 7 8 9 10 11 12 13
| \begin{figure}[H] \centering \begin{minipage}{0.48\textwidth} \centering \includegraphics[scale=0.45]{figures/img1.png} \caption{caption1} \end{minipage} \begin{minipage}{0.48\textwidth} \centering \includegraphics[scale=0.47]{figures/img2.png} \caption{caption2} \end{minipage} \end{figure}
|
三、表格
1. 一般表格
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| \begin{table}[h!] \begin{center} \begin{tabular}{c|c|c} \textbf{距离} & \textbf{区域} & \textbf{温度分布}\\ \hline $[0,25]$ & 炉前区域 & $6x+25$\\ $[25,197.5]$ & 小温区1-5( 含间隙1-4)& $175$\\ $[197.5,202.5]$ & 间隙5 & $175+4x$\\ $[202.5,233]$ & 小温区6 & $195$\\ $[233,238]$ & 间隙6 & $195$\\ $[238,268.5]$ & 小温区7 & $235$\\ $[268.5,273.5]$ & 间隙7 & $235+4x$\\ $[273.5,339.5]$ & 小温区8-9( 含间隙8)& $255$\\ $[339.5,435.5]$ & 小温区10-11(含间隙9-10)、炉后区域 & $-2.4x+1068.4$\\ \end{tabular} \caption{炉内环境温度分布表} \end{center} \end{table}
|
2. 三线表
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| \begin{table}[hbp] \centering \label{tab:pagenum} \begin{tabular}{llll} \toprule 符号 & 含义 \\ \midrule $T_i(i=1,2,3,4,5)$ & 各个温区的设定温度\\ $T$ & 焊接区域中心温度 \\ $\tau_i(i=1,2)$ & 两个温区分别对应的热时间常数 \\ $h$ & 热对流系数\\ $\delta t$ & 时间步长\\ $v$ &传送带过炉速度 \\ $t_i(i=1 ,2,3,4,5)$ & 5 个特定温度的对应时间值\\ $S$ & 炉温曲线超过 217℃到峰值温度覆盖面积\\ $l$ & 炉温曲线超过 217℃的部分对称度\\ \bottomrule \end{tabular} \end{table}
|
四、公式
1. 行内公式
2. 行间公式
3. 方程组
1 2 3 4 5 6 7
| $$ \begin{cases} formula 1 \\ formula 2 \\ formula 3 \\ \end{cases} $$
|
五、布局
首先声明文档类型:
1
| \documentclass[option]{class}
|


每个文档类型可以使用的结构命令:
Book:
1
| \part{}, \chapter{}, \section{}, \subsection{}, \subsubsection{}, \paragraph{}, \subparagraph{}
|
Report:
1
| \part{}, \chapter{}, \section{}, \subsection{}, \subsubsection{}, \paragraph{}, \subparagraph{}
|
Article:
1
| \part{}, \section{}, \subsection{}, \subsubsection{}, \paragraph{}, \subparagraph{}
|
六、其他
1 2 3 4
| \begin{enumerate} \item item1 \item item2 \end{enumerate}
|
1 2 3
| \begin{lstlisting} code \end{lstlisting}
|