gpt4 book ai didi

latex - 如何在Latex中添加jpg图像

转载 作者:行者123 更新时间:2023-12-03 04:59:35 27 4
gpt4 key购买 nike

我想在段落后插入 .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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com