Latex 文档设置常用命令
目录级别生成
超链接(文档中交叉引用的方式生成目录 图 列表的索引, 置于文档的前面)
目录生成
% Set the depth of the table of contents to show sections and subsections only
\setcounter{tocdepth}{2}
\tableofcontents % Print the table of contents
图列表生成
% Print the list of figures
\listoffigures
表列表生成
% Print the list of tables
\listoftables
文献引用格式和命令
不同的命令, 生成不同格式的超链接, 满足论文排版需求
\citep{luo2017grey}; \citet{luo2017grey}; \cite{luo2017grey}
大图嵌套子图
方法 1
\usepackage{subfigure}
\begin{figure}[htbp]
\centering
\subfigure[\scriptsize{DGPM(1,1,0) model}]{
\label{fig:1a}
\includegraphics[scale=0.47, trim = 0 0 0 0, clip = true]{Figure-1a.pdf}}
\subfigure[\scriptsize{DGPM(1,1,1) model}]{
\label{fig:1b}
\includegraphics[scale=0.47, trim = 0 0 0 0, clip = true]{Figure-1b.pdf}}\
\caption{Trend of the condition number with the increasing multiple coefficient.}\label{fig:1}
\end{figure}
方法 2
\usepackage[caption=false]{subfig}% Support for small, `sub’ figures and tables
\begin{figure}[htp]
\centering
\subfloat[rectangle formula]{
\resizebox*{6cm}{!}{\includegraphics{acc_rec.pdf}}}
\hspace{2.5pt}
\subfloat[trapezoid formula]{%
% \includegraphics[scale=0.90]{acc_rec.pdf}}
\resizebox*{6cm}{!}{\includegraphics{acc_tra.pdf}}}
\caption{Geometric sketches for accumulative generation based on rectangle and trapezoid formulas.}
\label{fig:1}
\end{figure}
几种数学文章环境
\newtheorem{theorem}{Theorem} % [section]
\newtheorem{lemma}{Lemma} % [section]
\newtheorem{definition}{Definition} % [section]
\newtheorem{proposition}{Proposition} % [section]
\newtheorem{corollary}{Corollary}
\newtheorem{example}{Example}
\newtheorem{remark}{Remark}
公式分行的例子
公式在符号后断开.
\begin{align}
{\Arrowvert x{(1)}_{k+1}-x{(1)}k\Arrowvert}\lambda\leqslant ;&
\frac{1}{1-h_1(i)}\Arrowvert x{(1)}_{k+1}(0)-x{(1)}_k(0)\Arrowvert+\notag\
&\frac{h_2(i)}{1-h_1(i)}{\Arrowvert
e^{(1)}k\Arrowvert}\lambda+\rho(Q).
\end{align}