在进行数学类论文,尤其是数学建模论文写作时,经常会用到的LaTeX命令如下:
1、图片引用:
The curve is shown in \textbf{Figure \ref{fig:1}}.
图片插入:(width 为图片宽度,height为图片宽度,sample.jpg为图片的名称及类型,源文件需要放在工作目录下,caption括号内为图片的标题,label括号内为图片的标签,与正文中的引用相对应。)
\begin{figure}[!htb]
\centering\small
\includegraphics[width=2.5in,height=1.3in]{sample.jpg}
\caption{Kind: $S_1, P_1$}
\label{fig:1}
\end{figure}
2、表格引用:
The information is shown in: \textbf{Table \ref{table:1}}.
普通表格插入:(\centering表示居中,caption括号内为图片的标题,label括号内为表格的标签,与正文中的引用相对应,|c|代表每表格内的内容为居中显示)
\begin{table}[!htb]
\centering
\caption{The main parameters}
\label{table:1}
\begin{tabular}{|c|c|c|}
\hline
Parameter& Symbol &Value\\
\hline
simulation time& $T$ &3600s\\
number of travel lanes& $L$ &3\\
number of tollbooths& $B$ &8\\
width of travel lanes& $d$ &3.5m\\
combined width of tollbooth and lane& $D$ &5.5m\\
ingress traffic flow of the area& $In$ &2400 vehicles/h\\
average speed of vehicles on the highway& $V$ &120 km/h\\
\hline
\end{tabular}
\end{table}
3、合并表格中多行的命令:\multirow{}*{} (合并多列命令为\multirow{}*{} )
例如:
\begin{table}[!htb]
\centering
\caption{College baseball rankings:}
\label{table:19}
\begin{tabular}{|c|c|c|c|c|c|}
\hline
Rank& 1 & 2 & 3 & 4 & 5\\
\hline
\multirow{2}*{Ranker}
& George & Senichi & Skip & Augie & Berry\\
& Kissell & Hoshino & Bertman & Garrido & Hinton\\
\hline
\multirow{2}*{Yahoo! Sports}
& Senichi & Berry & George & Augie & Berry\\
& Hoshino & Hinton & Kissell & Garrido& Hinton\\
\hline
\multirow{2}*{Our model}
& Senichi& Augie & Berry & George & Tim \\
& Hoshino& Garrido&Hinton & Kissell & Christman\\
\hline
\end{tabular}
\end{table}
4、图片并排放置:
\begin{figure}[H]
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[width=7cm]{rate.jpg}
\caption{Traffic Efficiency Changing \protect \\ Schematic Diagram in Light Traffic}
\label{fig:two}
\end{minipage}%
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[width=6cm]{structure.jpg}
\caption{Traffic Efficiency Changing \protect \\ Schematic Diagram in Heavy Traffic}
\label{fig:three}
\end{minipage}
\end{figure}