使用 编译以下内容时,我无法获得预期的结果latex-dvips-ps2pdf
。意外的结果只是一个空白页,页码为 1。:-)
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{example-image-a}
\end{document}
是否example-image-a
兼容latex
(即 DVI 模式)?该图像有 EPS 版本吗?
加载mwe
包也没有帮助。
登入自latex.exe
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
entering extended mode
(F:\test.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\mwe\mwe.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\trig.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\dvips.def")))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\lipsum\lipsum.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\blindtext\blindtext.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\xspace.sty"))) (F:\test.aux
) <example-image-a.eps> [1] (F:\test.aux) )
Output written on test.dvi (1 page, 284 bytes).
Transcript written on test.log.
答案1
有一个example-image-a.eps
由mwe
以及其他图像的 EPS 版本,如手册中所述。
但是,正如 Ulrike 指出的那样,这些 EPS 文件似乎存在问题。它们似乎没有包含使 PS 文件成为 EPS 文件的正确标头。作为 的作者,我mwe
将尽快重建 EPS 文件并上传。我在 Ubuntu Linux 下使用 TeX Live 2011 测试了现有版本,它们运行良好,但其他工具可能对 EPS 标头更挑剔。