我正在使用Texmaker 3.1并且无法将我的数据显示在PDF输出中。我的QuickBuild设置是“LaTeX + dvipdfm + View PDF”(我也尝试过“LaTeX + dvips + ps2pdf + View PDF”),我的图像是本地目录中的.eps文件。所有图像都在其他地方按预期打开(例如,在GhostView中),因此文件本身也没问题。
没有错误,但生成的PDF文件显示带有空白的图形标题,其中应显示图像(注意:我没有在draft
命令中设置\documentclass
选项) 。我的MWE非常简单;因此,我怀疑问题出在Texmaker或我的设置中的某种方式:
\documentclass[10pt,a4paper]{article}
\usepackage{graphicx}
\begin{document}
This is an example of an image within a figure not appearing where it should.
\begin{figure}[H]
\includegraphics[width=3.in]{notworking.eps}
\caption{This caption should accompany an image.}
\label{fignotworking}
\end{figure}
以下是图像本身(图形外部)未显示的示例:
\includegraphics[width=3.in]{notworking.eps}
\end{document}
我查看了生成的.ps文件,图像在那里正确显示。但如果问题出在ps2pdf阶段的某个地方,我不知道如何纠正它。我希望错误的ps2pdf.exe会导致更多致命的问题,而不仅仅是没有显示的图像。