作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想在段落后插入 .jpg 图像(位于我当前的文件夹中,.tex 文件所在的位置)。我怎样才能在 latex 中做到这一点?我应该包含什么/应该使用什么命令?
最佳答案
您需要使用图形库。将其放入序言中:
\usepackage{graphicx}
然后您可以添加这样的图像:
\begin{figure}[ht!]
\centering
\includegraphics[width=90mm]{fixed_dome1.jpg}
\caption{A simple caption \label{overflow}}
\end{figure}
这是我在文档中使用的基本模板。应根据您的需要调整位置和大小。有关在 \figure
和 \includegraphics
中使用哪些参数的更多信息,请参阅下面的指南。然后,您可以使用图中给出的标签来引用文本中的图像:
And here we see figure \ref{overflow}.
请阅读本指南以获取更详细的说明: http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions
关于latex - 如何在Latex中添加jpg图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3134187/
我是一名优秀的程序员,十分优秀!