在LaTeX中插入图像

Arn*_*shn 4 latex pdflatex

我有一个关于将图像插入LaTeX文档的问题.我尝试使用键盘快捷键插入图像:Ctrl- Alt- G我可以插入图像.但是编译后的pdf文档最后会显示所有图像,而我想将图像与文本交错.类似于以下内容:

Text1
Image1
Text2
Image2
Text3
Image3
Run Code Online (Sandbox Code Playgroud)

我尝试在正确的位置插入图像,即在文本之间,但在编译时,它们都出现在最后.我尝试了在图像插入UI上提供的不同选项,但结果相同.

知道我哪里出错了.

相关的问题.

var*_*tec 10

你必须使用graphicx包:

\usepackage{graphicx}
Run Code Online (Sandbox Code Playgroud)

然后你只需使用\ includegraphics

\includegraphics{myfig.pdf}
\includegraphics[width=60mm]{myfig.png}
\includegraphics[height=60mm]{myfig.jpg}
\includegraphics[scale=0.75]{myfig.pdf}
\includegraphics[angle=45,width=52mm]{myfig.jpg}
Run Code Online (Sandbox Code Playgroud)


Tom*_*Tom 5

尝试缩小图像尺寸.也许它们太大了,所以它们被移到了文档的末尾..

希望能帮助到你.