我是LaTeX新手,还在学习。所以我对jpg图像有这个问题。代码是:
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\includegraphics[width=\linewidth]{images.jpg}
\caption{A boat.}
\label{fig:boat1}
\end{figure}
Figure \ref{fig:boat1} shows a boat.
\end{document}结果是一个包含标题和引用的pdf文件,但没有图片。有什么解决方案吗?谢谢。
发布于 2017-09-24 17:23:20
你需要用pdflatex编译你的文档。常规的tex编译器不能处理.jpg图像。
https://stackoverflow.com/questions/46379067
复制相似问题