在 Windows 7 上更新了 Miktex,使用 xelatex 后 eps 图形不再显示

在 Windows 7 上更新了 Miktex,使用 xelatex 后 eps 图形不再显示

我最近(四月)在我的 Windows 7 机器上更新了 MiKTeX,当我编译以前使用的代码时xelatex,我的 eps 文件不再出现 - 只有一个应该与标题一起出现的空间。

这是一个使用 xelatex 时图形没有显示的小版本:

\documentclass[10 pt]{book}

\usepackage{standalone} \standalonetrue
\usepackage{graphicx}

\begin{document}

\begin{figure}[htbp] % float placement: (h)ere, page (t)op, page (b)ottom, other (p)age
  \centering
  \includegraphics[bb=40 137 566 655,height=1.1in,keepaspectratio]{squarebdd.eps}
  \caption{Square $ABCD$}
  \label{fig:squarebdd}
\end{figure}

\end{document}

我正在包含日志文件:

This is XeTeX, Version 3.14159265-2.6-0.99992 (MiKTeX 2.9 64-bit) (preloaded format=xelatex 2016.4.20)  23 APR 2016 10:19
entering extended mode
**./test.tex
(test.tex
LaTeX2e <2016/03/31>
Babel <3.9q> and hyphenation patterns for 70 language(s) loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\book.cls"
Document Class: book 2014/09/29 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\bk10.clo"
 File: bk10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@chapter=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.9\tex\latex\standalone\standalone.sty"
Package: standalone 2015/07/15 v1.2 Package to include TeX sub-files with pream
bles

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty"
Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty"
Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in PDF mode is not detected.
)
("C:\Program Files\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty"
Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
)
("C:\Program Files\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty"
Package: xkeyval 2014/12/03 v2.7a package option processing (HA)

("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\xkvutils.tex"
\XKV@toks=\toks14
\XKV@tempa@toks=\toks15

("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\keyval.tex"))
\XKV@depth=\count88
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
))
("C:\Program Files\MiKTeX 2.9\tex\latex\currfile\currfile.sty"
Package: currfile 2013/02/01 v0.7b Provides the file path elements of the curre
nt input file

("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty"
Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"
Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\kvsetkeys.sty"
Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty"
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty"
Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
Package etexcmds Info: Could not find \expanded.
(etexcmds)             That can mean that you are not using pdfTeX 1.50 or
(etexcmds)             that some package has redefined \expanded.
(etexcmds)             In the latter case, load this package earlier.
)))
("C:\Program Files\MiKTeX 2.9\tex\latex\filehook\filehook.sty"
Package: filehook 2011/10/12 v0.5d Hooks for input files
)
\c@currfiledepth=\count89
)
("C:\Program Files\MiKTeX 2.9\tex\latex\gincltex\gincltex.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\svn-prov\svn-prov.sty"
Package: svn-prov 2010/04/24 v3.1862 Package Date/Version from SVN Keywords
)
Package: gincltex 2011/09/04 v0.3 Include external LaTeX files like graphics

("C:\Program Files\MiKTeX 2.9\tex\latex\adjustbox\adjustbox.sty"
Package: adjustbox 2012/05/21 v1.0 Adjusting TeX boxes (trim, clip, ...)

("C:\Program Files\MiKTeX 2.9\tex\latex\adjustbox\adjcalc.sty"
Package: adjcalc 2012/05/16 v1.1 Provides advanced setlength with multiple back
-ends (calc, etex, pgfmath)
)
("C:\Program Files\MiKTeX 2.9\tex\latex\adjustbox\trimclip.sty"
Package: trimclip 2012/05/16 v1.0 Trim and clip general TeX material

("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)

("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
Package: graphics 2016/01/03 v1.0q Standard LaTeX Graphics (DPC,SPQR)

("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty"
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg"
File: graphics.cfg 2016/01/02 v1.10 sample graphics configuration
)
Package graphics Info: Driver file: xetex.def on input line 95.

("C:\Program Files\MiKTeX 2.9\tex\xelatex\xetex-def\xetex.def"
File: xetex.def 2016/04/06 v4.08 LaTeX color/graphics driver for XeTeX (TeX Liv
e/RRM/JK)
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
("C:\Program Files\MiKTeX 2.9\tex\latex\collectbox\collectbox.sty"
Package: collectbox 2012/05/17 v0.4b Collect macro arguments as boxes
\collectedbox=\box26
)
\tc@llx=\dimen105
\tc@lly=\dimen106
\tc@urx=\dimen107
\tc@ury=\dimen108
Package trimclip Info: Using driver 'tc-xetex.def'.

("C:\Program Files\MiKTeX 2.9\tex\latex\adjustbox\tc-xetex.def"
File: tc-xetex.def 2012/05/13 v1.0 Clipping driver for xetex
))
\adjbox@Width=\dimen109
\adjbox@Height=\dimen110
\adjbox@Depth=\dimen111
\adjbox@Totalheight=\dimen112

("C:\Program Files\MiKTeX 2.9\tex\latex\ifoddpage\ifoddpage.sty"
Package: ifoddpage 2011/09/13 v1.0 Conditionals for odd/even page detection
\c@checkoddpage=\count90
)
("C:\Program Files\MiKTeX 2.9\tex\latex\ltxmisc\varwidth.sty"
Package: varwidth 2009/03/30 ver 0.92;  Variable-width minipages
\@vwid@box=\box27
\sift@deathcycles=\count91
\@vwid@loff=\dimen113
\@vwid@roff=\dimen114
))
\gincltex@box=\box28
))
No file test.aux.
\openout1 = `test.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
File: squarebdd.eps Graphic file (type eps)
<squarebdd.eps>
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <7> on input line 13.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <5> on input line 13.
Requested font "cmsl10" at 10.0pt
 [1

] (test.aux)

LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.

 ) 
Here is how much of TeX's memory you used:


Output written on test.pdf (1 page).

当我编译包含于 pdflatex 中的原始代码时,图片覆盖了标题。

更新(2016 年 4 月 24 日):好的,三件事:

  1. 当我删除 bb 时,如果我使用 pdflatex,图形确实可以正确显示。

  2. 这对我来说不是一个解决方案。我有一位合著者需要使用 xelatex 和 eps 图形(而不是转换后的 pdf 图形)。他们在 Windows 10 机器上运行更新版本的 Miktex,一切运行良好。因此,我不能更改我的代码并运行 pdflatex。

  3. 我尝试用目录中的旧版本替换 xetex.def:C:\Program Files\MiKTeX 2.9\tex\xelatex\xetex-def(一个是 2015 年 9 月 11 日的,另一个是 2014 年 5 月 2 日的)。但都没有用。

好的,我附上了给我带来原始问题的 squarebdd.eps 文件的链接。

[https://www.dropbox.com/s/cm46vd7olp1yghe/squarebdd.eps?dl=0][3]

以下是我的 dvipdfmx.cfg 文件的内容(日期为 2014 年 4 月 24 日):

D  "rungs -q -dNOPAUSE -dBATCH -dEPSCrop -sDEVICE=pdfwrite      -dCompatibilityLevel=%v -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -sOutputFile='%o' '%i' -c quit"

% pre-2013 invocation using -sPAPERSIZE instead of -dEPSCrop, no other   changes:
%D  "rungs -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=%v -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -sOutputFile='%o' '%i' -c quit"

% other random ps converters people have experimented with.
%D "/usr/local/bin/ps2pdf -dEPSCrop '%i' '%o'"
%D "/usr/texbin/epstopdf '%i' -o '%o'"
%D "/usr/bin/pstopdf '%i' -o '%o'"

2015 年 5 月 1 日更新:我再次卸载并重新安装了 Miktex,不再使用测试版。我尝试使用 squarebdd.eps 并包含 .eps 扩展名的测试示例。它仍然没有显示!

这是日志文件:

 This is XeTeX, Version 3.14159265-2.6-0.99992 (MiKTeX 2.9 64-bit)    (preloaded format=xelatex 2016.4.30)  1 MAY 2016 10:09
entering extended mode
**./test.tex
(test.tex
LaTeX2e <2015/10/01> patch level 2
Babel <3.9n> and hyphenation patterns for 69 languages loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\book.cls"
Document Class: book 2014/09/29 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\bk10.clo"
File: bk10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@chapter=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.9\tex\latex\standalone\standalone.sty"
Package: standalone 2015/07/15 v1.2 Package to include TeX sub-files with pream
bles

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty"
Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty"
Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in PDF mode is not detected.
)
("C:\Program Files\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty"
Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
)
("C:\Program Files\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty"
Package: xkeyval 2014/12/03 v2.7a package option processing (HA)

("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\xkvutils.tex"
\XKV@toks=\toks14
\XKV@tempa@toks=\toks15

("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\keyval.tex"))
\XKV@depth=\count88
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
))
("C:\Program Files\MiKTeX 2.9\tex\latex\currfile\currfile.sty"
Package: currfile 2015/04/23 v0.7c Provides the file path elements of the  curre
nt input file

("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty"
Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"
Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\kvsetkeys.sty"
Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty"
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty"
Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands  (HO)
Package etexcmds Info: Could not find \expanded.
(etexcmds)             That can mean that you are not using pdfTeX 1.50 or
(etexcmds)             that some package has redefined \expanded.
(etexcmds)             In the latter case, load this package earlier.
)))
("C:\Program Files\MiKTeX 2.9\tex\latex\filehook\filehook.sty"
Package: filehook 2011/10/12 v0.5d Hooks for input files
)
\c@currfiledepth=\count89
)
("C:\Program Files\MiKTeX 2.9\tex\latex\gincltex\gincltex.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\svn-prov\svn-prov.sty"
Package: svn-prov 2010/04/24 v3.1862 Package Date/Version from SVN Keywords
)
Package: gincltex 2011/09/04 v0.3 Include external LaTeX files like graphics

("C:\Program Files\MiKTeX 2.9\tex\latex\adjustbox\adjustbox.sty"
Package: adjustbox 2012/05/21 v1.0 Adjusting TeX boxes (trim, clip, ...)

("C:\Program Files\MiKTeX 2.9\tex\latex\adjustbox\adjcalc.sty"
Package: adjcalc 2012/05/16 v1.1 Provides advanced setlength with multiple back
-ends (calc, etex, pgfmath)
)
("C:\Program Files\MiKTeX 2.9\tex\latex\adjustbox\trimclip.sty"
Package: trimclip 2012/05/16 v1.0 Trim and clip general TeX material

("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)

("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
Package: graphics 2016/01/03 v1.0q Standard LaTeX Graphics (DPC,SPQR)

("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty"
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg"
File: graphics.cfg 2016/01/02 v1.10 sample graphics configuration
)
Package graphics Info: Driver file: xetex.def on input line 95.

("C:\Program Files\MiKTeX 2.9\tex\xelatex\xetex-def\xetex.def"
File: xetex.def 2016/04/06 v4.08 LaTeX color/graphics driver for XeTeX (TeX Liv
e/RRM/JK)
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
("C:\Program Files\MiKTeX 2.9\tex\latex\collectbox\collectbox.sty"
Package: collectbox 2012/05/17 v0.4b Collect macro arguments as boxes
\collectedbox=\box26
)
\tc@llx=\dimen105
\tc@lly=\dimen106
\tc@urx=\dimen107
\tc@ury=\dimen108
Package trimclip Info: Using driver 'tc-xetex.def'.

("C:\Program Files\MiKTeX 2.9\tex\latex\adjustbox\tc-xetex.def"
File: tc-xetex.def 2012/05/13 v1.0 Clipping driver for xetex
))
\adjbox@Width=\dimen109
\adjbox@Height=\dimen110
\adjbox@Depth=\dimen111
\adjbox@Totalheight=\dimen112

("C:\Program Files\MiKTeX 2.9\tex\latex\ifoddpage\ifoddpage.sty"
Package: ifoddpage 2016/04/23 v1.1 Conditionals for odd/even page detection
\c@checkoddpage=\count90
)
("C:\Program Files\MiKTeX 2.9\tex\latex\ltxmisc\varwidth.sty"
Package: varwidth 2009/03/30 ver 0.92;  Variable-width minipages
\@vwid@box=\box27
\sift@deathcycles=\count91
\@vwid@loff=\dimen113
\@vwid@roff=\dimen114
))
\gincltex@box=\box28
))
No file test.aux.
\openout1 = `test.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 11.
LaTeX Font Info:    ... okay on input line 11.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 11.
LaTeX Font Info:    ... okay on input line 11.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 11.
LaTeX Font Info:    ... okay on input line 11.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 11.
LaTeX Font Info:    ... okay on input line 11.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 11.
LaTeX Font Info:    ... okay on input line 11.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 11.
LaTeX Font Info:    ... okay on input line 11.
File: example-image.eps Graphic file (type eps)
<example-image.eps>
File: squarebdd.eps Graphic file (type eps)
<squarebdd.eps>
Requested font "cmsl10" at 10.0pt
[1

] (test.aux)

*File List*
book.cls    2014/09/29 v1.4h Standard LaTeX document class
bk10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
standalone.sty    2015/07/15 v1.2 Package to include TeX sub-files with   preambl
es
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
xkeyval.sty    2014/12/03 v2.7a package option processing (HA)
xkeyval.tex    2014/12/03 v2.7a key=value parser (HA)
currfile.sty    2015/04/23 v0.7c Provides the file path elements of the   current
input file
kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)
ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
filehook.sty    2011/10/12 v0.5d Hooks for input files
gincltex.sty    2011/09/04 v0.3 Include external LaTeX files like graphics
svn-prov.sty    2010/04/24 v3.1862 Package Date/Version from SVN Keywords
adjustbox.sty    2012/05/21 v1.0 Adjusting TeX boxes (trim, clip, ...)
adjcalc.sty    2012/05/16 v1.1 Provides advanced setlength with multiple back-
ends (calc, etex, pgfmath)
trimclip.sty    2012/05/16 v1.0 Trim and clip general TeX material
graphicx.sty    2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2016/01/03 v1.0q Standard LaTeX Graphics (DPC,SPQR)
trig.sty    2016/01/03 v1.10 sin cos tan (DPC)
graphics.cfg    2016/01/02 v1.10 sample graphics configuration
xetex.def    2016/04/06 v4.08 LaTeX color/graphics driver for XeTeX (TeX Liv
e/RRM/JK)
collectbox.sty    2012/05/17 v0.4b Collect macro arguments as boxes
tc-xetex.def    2012/05/13 v1.0 Clipping driver for xetex
ifoddpage.sty    2016/04/23 v1.1 Conditionals for odd/even page detection
varwidth.sty    2009/03/30 ver 0.92;  Variable-width minipages
squarebdd.eps    Graphic file (type eps)

输出写在 test.pdf 上(1 页)。这是我得到的图片:

在此处输入图片描述

答案1

经过一周的版本检查以及卸载和重新安装 Miktex 后,我终于让 eps 图形可以在 xetex 中使用。

  1. 我从所有临时本地文件夹中删除了与 Miktex 相关的所有文件夹。

  2. 我关闭了杀毒软件(卡巴斯基)

  3. 我以管理员身份卸载:转到 C:\Program Files\MiKTeX 2.9\miktex\bin\x64\internal。右键单击 uninstall_admin.exe 并选择以管理员身份执行。

  4. 我从网站安装了 Miktex(64 位版本)并且没有运行任何更新。

感谢所有的建议/帮助!

相关内容