![如何在 \documentclass[preprint,12pt,authoryear]{elsarticle} 中放置 LaTex 中的图片](https://linux22.com/image/327444/%E5%A6%82%E4%BD%95%E5%9C%A8%20%5Cdocumentclass%5Bpreprint%2C12pt%2Cauthoryear%5D%7Belsarticle%7D%20%E4%B8%AD%E6%94%BE%E7%BD%AE%20LaTex%20%E4%B8%AD%E7%9A%84%E5%9B%BE%E7%89%87.png)
它说 ”
%% For including figures, graphicx.sty has been loaded in
%% elsarticle.cls
我不知道如何有效地使用它。你能在这里提供一个实用的例子吗?
例如
\usepackage{epsfig}
\usepackage{graphicx}
\usepackage{placeins}
\begin{figure}
\caption{Damage at }
\includegraphics[width=\textwidth]{fig1.pdf}
\end{figure}
\FloatBarrier
我应该如何将图形放在手稿中。还是我需要将它们放在手稿的末尾?(注意 elsarticle 要求)。上面的代码目前将图形随机放置在文档的某个地方。为什么?
答案1
怎么样
\documentclass[preprint,12pt,authoryear]{elsarticle}
\begin{document}
\begin{figure}
\caption{abc} \label{fig:abc}
\includegraphics[width=\textwidth]{<filename>}
\end{figure}
\end{document}
只需使用以支持的格式编码的图像文件的真实文件名,而不是<filename>
。