LaTeX在论文写作中的常用命令(二)

在进行数学类论文,尤其是数学建模论文写作时,经常会用到的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}

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值