LaTeX中图片的引用方法

很久没用LaTeX,图片的引用方法也记不住了,今天查了一下,记录在此,避免忘记。

常用的在LaTeX中插入图片的方法:

1
2
3
4
5
\pagebreak 
\begin{figure}[here]
\includegraphics[width=0.9\textwidth]{images/JobInformationDialog.jpg}
\caption{A prototype of the Job Information dialog} \label{fig:jobInformationDialog}
\end{figure}

代码中的\label部分就是图片的标签,引用的时候要使用标签名称。
引用的用法如下:

1
According to the Fig. \ref{fig:jobInformationDialog}, we can get .... ......

最后呈现出的效果是:

According to the Fig. 1, we can get …. ……

原载于我的新浪微博:http://blog.sina.com.cn/s/blog_a382a9080102yw6b.html