pdfLaTeX epstopdf将所有文本转换为单型字体

问题描述 投票:0回答:1

[当包含带有\includegraphics的.eps文件并使用pdfLaTeX进行编译时,即使原始.eps文件指定了另一种字体,例如Helvetica或Arial。我已经测试了Helvetica和Arial(后者已安装在Windows 10系统上),以确保是否已安装字体不是问题。

这是我用来测试它的两个示例eps文件:

https://github.com/skhiggins/test_epstopdf/blob/master/sample_eps_arial.eps

https://github.com/skhiggins/test_epstopdf/blob/master/sample_eps_helvetica.eps

[在文本编辑器中打开.eps文件,我确认它们分别使用例如,将字体声明为Helvetica和Arial。 %%DocumentNeededResources: font Arial。如果我使用gsview打开.eps文件,它们将正确显示。但是,当我在LaTeX中编译pdf时,图形的字体是单型的。 (如果我在命令行中运行epstopdf,我也会得到单型字体。)这是我使用pdflatex.exe编译的LaTeX代码:

\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{epstopdf}

\begin{document}

\includegraphics[width=\textwidth]{sample_eps_helvetica.eps}
\includegraphics[width=\textwidth]{sample_eps_arial.eps}

\end{document}

这两个图形都以pdf形式显示,并带有一种字体:enter image description here

我已经尝试了一些明显的事情,例如卸载和重新安装MiKTeX。这是日志:

This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.7250 64-bit) (preloaded format=pdflatex 2020.1.10)  10 JAN 2020 10:12
entering extended mode
**C:/Dropbox/Latex_code/test_epstopdf/epstopdf_MWE.tex
(C:/Dropbox/Latex_code/test_epstopdf/epstopdf_MWE.tex
LaTeX2e <2019-10-01> patch level 3
("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/base\article.cls"
Document Class: article 2019/10/25 v1.4k Standard LaTeX document class
("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/base\size12.clo"
File: size12.clo 2019/10/25 v1.4k Standard LaTeX file (size option)
)
\c@part=\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:\Dropbox\Programs\MiKTeX 2.9\tex/latex/graphics\graphicx.sty"
Package: graphicx 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)
("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/graphics\keyval.sty"
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks14
) ("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/graphics\graphics.sty"
Package: graphics 2019/11/01 v1.3d Standard LaTeX Graphics (DPC,SPQR)
("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/graphics\trig.sty"
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
) ("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/graphics-cfg\graphics.cfg"
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 105.
("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/graphics-def\pdftex.def"
File: pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
) ("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/epstopdf-pkg\epstopdf.sty"
Package: epstopdf 2019/11/24 v2.7 Conversion with epstopdf on the fly (HO)
("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/epstopdf-pkg\epstopdf-base.sty"
Package: epstopdf-base 2019/11/24 v2.7 Base part for package epstopdf
("C:\Dropbox\Programs\MiKTeX 2.9\tex/generic/oberdiek\infwarerr.sty"
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
) ("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/oberdiek\grfext.sty"
Package: grfext 2016/05/16 v1.2 Manage graphics extensions (HO)
("C:\Dropbox\Programs\MiKTeX 2.9\tex/generic/oberdiek\kvdefinekeys.sty"
Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO)
("C:\Dropbox\Programs\MiKTeX 2.9\tex/generic/oberdiek\ltxcmds.sty"
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
))) ("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/oberdiek\kvoptions.sty"
Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO)
("C:\Dropbox\Programs\MiKTeX 2.9\tex/generic/oberdiek\kvsetkeys.sty"
Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO)
("C:\Dropbox\Programs\MiKTeX 2.9\tex/generic/oberdiek\etexcmds.sty"
Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
("C:\Dropbox\Programs\MiKTeX 2.9\tex/generic/iftex\ifluatex.sty"
Package: ifluatex 2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.
("C:\Dropbox\Programs\MiKTeX 2.9\tex/generic/iftex\iftex.sty"
Package: iftex 2019/11/07 v1.0c TeX engine tests
))))) ("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/pdftexcmds\pdftexcmds.sty"
Package: pdftexcmds 2019/11/24 v0.31 Utility functions of pdfTeX for LuaTeX (HO
)
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
)
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
42.
Package grfext Info: Graphics extension search list:
(grfext)             [.pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,.PDF,.PNG,.JPG,.JPE
G,.JBIG2,.JB2,.eps]
(grfext)             \AppendGraphicsExtensions on input line 460.
)) (C:\Dropbox\Latex_code\test_epstopdf\build\epstopdf_MWE.aux)
\openout1 = `epstopdf_MWE.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.
("C:\Dropbox\Programs\MiKTeX 2.9\tex/context/base/mkii\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count88
\scratchdimen=\dimen105
\scratchbox=\box27
\nofMPsegments=\count89
\nofMParguments=\count90
\everyMPshowfont=\toks15
\MPscratchCnt=\count91
\MPscratchDim=\dimen106
\MPnumerator=\count92
\makeMPintoPDFobject=\count93
\everyMPtoPDFconversion=\toks16
)
Package epstopdf Info: Source file: <sample_eps_helvetica.eps>
(epstopdf)                    date: 2020-01-10 10:10:40
(epstopdf)                    size: 13204 bytes
(epstopdf)             Output file: <sample_eps_helvetica-eps-converted-to.pdf>

(epstopdf)                    date: 2020-01-10 10:12:32
(epstopdf)                    size: 11003 bytes
(epstopdf)             Command: <epstopdf --outfile=sample_eps_helvetica-eps-co
nverted-to.pdf sample_eps_helvetica.eps>
(epstopdf)             \includegraphics on input line 9.
Package epstopdf Info: Output file is already uptodate.


pdfTeX warning: pdflatex.exe (file ./sample_eps_helvetica-eps-converted-to.pdf)
: PDF inclusion: found PDF version <1.7>, but at most version <1.5> allowed
<sample_eps_helvetica-eps-converted-to.pdf, id=1, 397.485pt x 289.08pt>
File: sample_eps_helvetica-eps-converted-to.pdf Graphic file (type pdf)
<use sample_eps_helvetica-eps-converted-to.pdf>
Package pdftex.def Info: sample_eps_helvetica-eps-converted-to.pdf  used on inp
ut line 9.
(pdftex.def)             Requested size: 390.0pt x 283.64493pt.
Package epstopdf Info: Source file: <sample_eps_arial.eps>
(epstopdf)                    date: 2020-01-10 10:10:40
(epstopdf)                    size: 13200 bytes
(epstopdf)             Output file: <sample_eps_arial-eps-converted-to.pdf>
(epstopdf)                    date: 2020-01-10 10:12:33
(epstopdf)                    size: 11003 bytes
(epstopdf)             Command: <epstopdf --outfile=sample_eps_arial-eps-conver
ted-to.pdf sample_eps_arial.eps>
(epstopdf)             \includegraphics on input line 10.
Package epstopdf Info: Output file is already uptodate.


pdfTeX warning: pdflatex.exe (file ./sample_eps_arial-eps-converted-to.pdf): PD
F inclusion: found PDF version <1.7>, but at most version <1.5> allowed
<sample_eps_arial-eps-converted-to.pdf, id=2, 397.485pt x 289.08pt>
File: sample_eps_arial-eps-converted-to.pdf Graphic file (type pdf)
<use sample_eps_arial-eps-converted-to.pdf>
Package pdftex.def Info: sample_eps_arial-eps-converted-to.pdf  used on input l
ine 10.
(pdftex.def)             Requested size: 390.0pt x 283.64493pt.

Overfull \hbox (17.62482pt too wide) in paragraph at lines 9--11
[][]
 []

[1

{C:/Users/Sean Higgins/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map} <./sa
mple_eps_helvetica-eps-converted-to.pdf>] [2 <./sample_eps_arial-eps-converted-
to.pdf>] (C:\Dropbox\Latex_code\test_epstopdf\build\epstopdf_MWE.aux) ) 
Here is how much of TeX's memory you used:
 1503 strings out of 492484
 22174 string characters out of 3129678
 82863 words of memory out of 3000000
 5860 multiletter control sequences out of 15000+200000
 3938 words of font info for 15 fonts, out of 3000000 for 9000
 1141 hyphenation exceptions out of 8191
 57i,4n,32p,365b,115s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:/Drop
box/Programs/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr12.pfb>
Output written on C:\Dropbox\Latex_code\test_epstopdf\build\epstopdf_MWE.pdf (2
 pages, 27497 bytes).
PDF statistics:
 25 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 11 words of extra memory for PDF output out of 10000 (max. 10000000)
latex pdflatex
1个回答
0
投票

我有同样的问题,我不知道原因,但是对我来说,解决方案是将Miktex重新安装到以前的版本(basic-miktex-2.9.6850-x64)。

© www.soinside.com 2019 - 2024. All rights reserved.