下面的 MWE 在我的(Mac)笔记本电脑上使用latex
(到 dvi)编译时运行良好,并且位图图像也很好地包含在内。
我的朋友有一台 Mac 笔记本电脑和一台 Mac 台式机,两台电脑上都安装了最新的 TeXLive。运行latex
,dvips
,ps2pdf
只会在位图应该出现的位置留下一大片空白。使用 进行编译可以让图像在生成的 PDF 中显示正常,但是无法包含位图xelatex
到底是怎么回事呢?latex
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\fbox{\includegraphics[width=3cm,height=3cm]{testpic.bmp}}
\end{document}
这是她在 TeXShop 引发的“TeX 和 DVI”模式运行中的日志文件:
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=latex 2015.7.27) 27 JUL 2015 13:02
entering extended mode
restricted \write18 enabled.
file:line:error style messages enabled.
%&-line parsing enabled.
**bmp_testpic.tex
(./bmp_testpic.tex
LaTeX2e <2015/01/01> patch level 2
Babel <3.9l> and hyphenation patterns for 79 languages loaded.
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks14
)
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2014/10/28 v1.0p Standard LaTeX Graphics (DPC,SPQR)
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(/usr/local/texlive/2015/texmf-dist/tex/latex/latexconfig/graphics.cfg
File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
)
Package graphics Info: Driver file: dvips.def on input line 94.
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/dvips.def
File: dvips.def 2014/10/14 v3.0j Driver-dependent file (DPC,SPQR)
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
(./bmp_testpic.aux)
\openout1 = `bmp_testpic.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
File: testpic.bmp Graphic file (type bmp)
<testpic.bmp> [1
] (./bmp_testpic.aux) )
Here is how much of TeX's memory you used:
513 strings out of 493094
6255 string characters out of 6135015
57530 words of memory out of 5000000
4063 multiletter control sequences out of 15000+600000
3640 words of font info for 14 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
25i,5n,19p,188b,109s stack positions out of 5000i,500n,10000p,200000b,80000s
Output written on bmp_testpic.dvi (1 page, 336 bytes).