latex - 在 LaTeX 中插入图像

标签 latex pdflatex

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

Text1
Image1
Text2
Image2
Text3
Image3

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

知道我哪里出错了。

相关SO question .

最佳答案

您必须使用 graphicx package :

\usepackage{graphicx}

然后你只需使用\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}

关于latex - 在 LaTeX 中插入图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/721572/

相关文章:

latex - LaTeX:引用,但不引用

html - 如何使用 Pandoc 将带有 mathjax 的 HTML 转换为 Latex?

unix - 以文件存在为条件的 Makefile 命令

设置RSTUDIO_PDFLATEX环境变量后Rstudio找不到pdflatex

emacs - 使用带有 Flymake 的 .tex 文件的 emacs - 不平衡大括号错误

Latex 使用不同的背景颜色突出显示引用部分中的引文

latex - 使用 LaTeX 修改\section{} 使其变得丰富多彩

text - LaTeX 中的缩进自动换行

python - 如何将多个 PDF 页面拼接成一个大 Canvas 式 PDF?

java - LaTeX 生成的结果