将 chemdraw 文件转换为 eps 文件时出现问题,删除了原始字体和样式(粗体、斜体)

将 chemdraw 文件转换为 eps 文件时出现问题,删除了原始字体和样式(粗体、斜体)

我遇到了一个严重的问题,导致我现在无法使用 LaTeX。我在 Windows 上重新安装了 MiKTeX(内部版本 2.9.7206)和 Texmaker(内部版本 5.0.4)。当我尝试包含.eps通过 chemdraw 软件(内部版本 15.1)生成的文件时,chemdraw 文档中的原始字体(例如 Arial)会更改为 LaTeX 字体样式。此外,如果我想将数字加粗,该数字会在创建的.pdf文件中完全消失。似乎 LaTeX 无法识别 chemdraw 生成文件的字体.eps,因此会替换它。2017 年旧版本的 MiKTeX 或 Texmaker 并未出现此问题。附件中您可以找到 chemdraw 文件(https://workupload.com/file/K9A3b5Bn) 和另存为 eps 文件的相同文件 (https://workupload.com/file/4REEBTWh)。

更新:我通过网络安装程序安装完整的 miktex 解决了这个问题!

\documentclass[12pt,a4paper,captions=nooneline,twoside]{scrartcl} 
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\usepackage{graphicx}

\begin{document}

\includegraphics[scale=1.0]{test.eps}

\end{document}

编译后的日志文件:

This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.7250 64-bit) (preloaded format=pdflatex 2020.2.4) 5 FEB 2020 10:58
entering extended mode
**./test.tex
(test.tex
LaTeX2e <2020-02-02>
L3 programming layer <2020-01-31>
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/koma-script\scrar
tcl.cls"
Document Class: scrartcl 2020/01/24 v3.29 KOMA-Script document class (article)
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/koma-script\scrkb
ase.sty"
Package: scrkbase 2020/01/24 v3.29 KOMA-Script package (KOMA-Script-dependent b
asics and keyval usage)
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/koma-script\scrba
se.sty"
Package: scrbase 2020/01/24 v3.29 KOMA-Script package (KOMA-Script-independent
basics and keyval usage)
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics\keyval.s
ty"
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks14
)
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/koma-script\scrlf
ile.sty"
Package: scrlfile 2020/01/24 v3.29 KOMA-Script package (loading files)
)))
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/koma-script\tocba
sic.sty"
Package: tocbasic 2020/01/24 v3.29 KOMA-Script package (handling toc-files)
\scr@dte@tocline@numberwidth=\skip47
\scr@dte@tocline@numbox=\box45
)
Package tocbasic Info: omitting babel extension for `toc'
(tocbasic) because of feature `nobabel' available
(tocbasic) for `toc' on input line 137.
Package scrartcl Info: You've used standard option `12pt'.
(scrartcl) This is correct!
(scrartcl) Internally I'm using `fontsize=12pt'.
(scrartcl) If you'd like to set the option with \KOMAoptions,
(scrartcl) you'd have to use `fontsize=12pt' there
(scrartcl) instead of `12pt', too.
Class scrartcl Info: File `scrsize12pt.clo' used to setup font sizes on input l
ine 2212.
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/koma-script\scrsi
ze12pt.clo"
File: scrsize12pt.clo 2020/01/24 v3.29 KOMA-Script font size class option (12pt
)
)
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/koma-script\typea
rea.sty"
Package: typearea 2020/01/24 v3.29 KOMA-Script package (type area)
\ta@bcor=\skip48
\ta@div=\count167
Package typearea Info: You've used standard option `a4paper'.
(typearea) This is correct!
(typearea) Internally I'm using `paper=a4'.
(typearea) If you'd like to set the option with \KOMAoptions,
(typearea) you'd have to use `paper=a4' there
(typearea) instead of `a4paper', too.
\ta@hblk=\skip49
\ta@vblk=\skip50
\ta@temp=\skip51
\footheight=\skip52
Package typearea Info: These are the values describing the layout:
(typearea) DIV = 12
(typearea) BCOR = 0.0pt
(typearea) \paperwidth = 597.50793pt
(typearea) \textwidth = 448.13095pt
(typearea) DIV departure = -6%
(typearea) \evensidemargin = 27.31467pt
(typearea) \oddsidemargin = -22.47766pt
(typearea) \paperheight = 845.04694pt
(typearea) \textheight = 635.5pt
(typearea) \topmargin = -41.72441pt
(typearea) \headheight = 18.125pt
(typearea) \headsep = 21.75pt
(typearea) \topskip = 12.0pt
(typearea) \footskip = 50.75pt
(typearea) \baselineskip = 14.5pt
(typearea) on input line 1719.
)
\c@part=\count168
\c@section=\count169
\c@subsection=\count170
\c@subsubsection=\count171
\c@paragraph=\count172
\c@subparagraph=\count173
\scr@dte@section@maxnumwidth=\skip53
Class scrartcl Info: using compatibility default `runin=bysign'
(scrartcl) for `\section on input line 4723.
Class scrartcl Info: using compatibility default `afterindent=bysign'
(scrartcl) for `\section on input line 4723.
\scr@dte@part@maxnumwidth=\skip54
Class scrartcl Info: using compatibility default `afterindent=false'
(scrartcl) for `\part on input line 4731.
\scr@dte@subsection@maxnumwidth=\skip55
Class scrartcl Info: using compatibility default `runin=bysign'
(scrartcl) for `\subsection on input line 4741.
Class scrartcl Info: using compatibility default `afterindent=bysign'
(scrartcl) for `\subsection on input line 4741.
\scr@dte@subsubsection@maxnumwidth=\skip56
Class scrartcl Info: using compatibility default `runin=bysign'
(scrartcl) for `\subsubsection on input line 4751.
Class scrartcl Info: using compatibility default `afterindent=bysign'
(scrartcl) for `\subsubsection on input line 4751.
\scr@dte@paragraph@maxnumwidth=\skip57
Class scrartcl Info: using compatibility default `runin=bysign'
(scrartcl) for `\paragraph on input line 4761.
Class scrartcl Info: using compatibility default `afterindent=bysign'
(scrartcl) for `\paragraph on input line 4761.
\scr@dte@subparagraph@maxnumwidth=\skip58
Class scrartcl Info: using compatibility default `runin=bysign'
(scrartcl) for `\subparagraph on input line 4771.
Class scrartcl Info: using compatibility default `afterindent=bysign'
(scrartcl) for `\subparagraph on input line 4771.
\abovecaptionskip=\skip59
\belowcaptionskip=\skip60
\c@pti@nb@sid@b@x=\box46
Package tocbasic Info: omitting babel extension for `lof'
(tocbasic) because of feature `nobabel' available
(tocbasic) for `lof' on input line 6002.
\scr@dte@figure@maxnumwidth=\skip61
\c@figure=\count174
Package tocbasic Info: omitting babel extension for `lot'
(tocbasic) because of feature `nobabel' available
(tocbasic) for `lot' on input line 6014.
\scr@dte@table@maxnumwidth=\skip62
\c@table=\count175
Class scrartcl Info: Redefining `\numberline' on input line 6178.
\bibindent=\dimen134
)
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/generic/babel\babel.sty
"
Package: babel 2020/01/15 3.38 The Babel package
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/generic/babel\switch.de
f"
File: switch.def 2020/01/15 3.38 Babel switching mechanism
)
*************************************
* Local config file bblopts.cfg used
*
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/arabi\bblopts.cfg
"
File: bblopts.cfg 2005/09/08 v0.1 add Arabic and Farsi to "declared" options of
babel
)
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/babel-german\nger
man.ldf"
Language: ngerman 2018/12/08 v2.11 German support for babel (post-1996 orthogra
phy)
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/babel-german\nger
manb.ldf"
Language: ngermanb 2018/12/08 v2.11 German support for babel (post-1996 orthogr
aphy)
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/generic/babel\babel.def
"
File: babel.def 2020/01/15 3.38 Babel common definitions
\babel@savecnt=\count176
\U@D=\dimen135
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/generic/babel\txtbabel.
def")
\bbl@readstream=\read2
\bbl@dirlevel=\count177
)
Package babel Info: Making " an active character on input line 121.
)))
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/lm\lmodern.sty"
Package: lmodern 2009/10/30 v1.6 Latin Modern Fonts
LaTeX Font Info: Overwriting symbol font `operators' in version `normal'
(Font) OT1/cmr/m/n --> OT1/lmr/m/n on input line 22.
LaTeX Font Info: Overwriting symbol font `letters' in version `normal'
(Font) OML/cmm/m/it --> OML/lmm/m/it on input line 23.
LaTeX Font Info: Overwriting symbol font `symbols' in version `normal'
(Font) OMS/cmsy/m/n --> OMS/lmsy/m/n on input line 24.
LaTeX Font Info: Overwriting symbol font `largesymbols' in version `normal'
(Font) OMX/cmex/m/n --> OMX/lmex/m/n on input line 25.
LaTeX Font Info: Overwriting symbol font `operators' in version `bold'
(Font) OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 26.
LaTeX Font Info: Overwriting symbol font `letters' in version `bold'
(Font) OML/cmm/b/it --> OML/lmm/b/it on input line 27.
LaTeX Font Info: Overwriting symbol font `symbols' in version `bold'
(Font) OMS/cmsy/b/n --> OMS/lmsy/b/n on input line 28.
LaTeX Font Info: Overwriting symbol font `largesymbols' in version `bold'
(Font) OMX/cmex/m/n --> OMX/lmex/m/n on input line 29.
LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `normal'
(Font) OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 31.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `normal'
(Font) OT1/cmss/m/n --> OT1/lmss/m/n on input line 32.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `normal'
(Font) OT1/cmr/m/it --> OT1/lmr/m/it on input line 33.
LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `normal'
(Font) OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 34.
LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `bold'
(Font) OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 35.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `bold'
(Font) OT1/cmss/bx/n --> OT1/lmss/bx/n on input line 36.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `bold'
(Font) OT1/cmr/bx/it --> OT1/lmr/bx/it on input line 37.
LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `bold'
(Font) OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 38.
)
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics\graphicx
.sty"
Package: graphicx 2019/11/30 v1.2a Enhanced LaTeX Graphics (DPC,SPQR)
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics\graphics
.sty"
Package: graphics 2019/11/30 v1.4a Standard LaTeX Graphics (DPC,SPQR)
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics\trig.sty
"
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics-cfg\grap
hics.cfg"
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 105.
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics-def\pdft
ex.def"
File: pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex
))
\Gin@req@height=\dimen136
\Gin@req@width=\dimen137
)
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/l3backend\l3backe
nd-pdfmode.def"
File: l3backend-pdfmode.def 2019-04-06 L3 backend support: PDF mode
\l__kernel_color_stack_int=\count178
\l__pdf_internal_box=\box47
) (test.aux)
\openout1 = `test.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Trying to load font information for OT1+lmr on input line 6
.
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/lm\ot1lmr.fd"
File: ot1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
)
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/context/base/mkii\supp-
pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count179
\scratchdimen=\dimen138
\scratchbox=\box48
\nofMPsegments=\count180
\nofMParguments=\count181
\everyMPshowfont=\toks15
\MPscratchCnt=\count182
\MPscratchDim=\dimen139
\MPnumerator=\count183
\makeMPintoPDFobject=\count184
\everyMPtoPDFconversion=\toks16
)
("C:\Users\MJK\AppData\Local\Programs\MiKTeX 2.9\tex/latex/epstopdf-pkg\epst
opdf-base.sty"
Package: epstopdf-base 2020-01-24 v2.11 Base part for package epstopdf
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
85.
)
Package epstopdf Info: Source file: <test.eps>
(epstopdf) date: 2020-02-05 10:56:25
(epstopdf) size: 14883 bytes
(epstopdf) Output file: <test-eps-converted-to.pdf>
(epstopdf) date: 2020-02-05 10:56:54
(epstopdf) size: 4027 bytes
(epstopdf) Command: <epstopdf --outfile=test-eps-converted-to.pdf t
est.eps>
(epstopdf) \includegraphics on input line 8.
Package epstopdf Info: Output file is already uptodate.
pdfTeX warning: pdflatex (file ./test-eps-converted-to.pdf): PDF inclusion: fou
nd PDF version <1.7>, but at most version <1.5> allowed
<test-eps-converted-to.pdf, id=1, 56.21pt x 61.22874pt>
File: test-eps-converted-to.pdf Graphic file (type pdf)
<use test-eps-converted-to.pdf>
Package pdftex.def Info: test-eps-converted-to.pdf used on input line 8.
(pdftex.def) Requested size: 56.20985pt x 61.22858pt.
[1
{C:/Users/MJK/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map} <./test-eps
-converted-to.pdf>] (test.aux) )
Here is how much of TeX's memory you used:
4349 strings out of 481570
85391 string characters out of 2913824
436482 words of memory out of 3000000
19583 multiletter control sequences out of 15000+200000
535584 words of font info for 26 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191
45i,6n,56p,10128b,246s stack positions out of 5000i,500n,10000p,200000b,50000s
{C:/Users/MJK/AppData/Local/Programs/MiKTeX
2.9/fonts/enc/dvips/lm/lm-rm.enc}<C:/Users/MJK/AppData/Local/Programs/MiKTeX
2.9/fonts/type1/public/lm/lmr12.pfb>
Output written on test.pdf (1 page, 17839 bytes).
PDF statistics:
17 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
6 words of extra memory for PDF output out of 10000 (max. 10000000)```

答案1

您系统上的 GhostScript 安装配置不正确。您test.eps明确指出应使用 Helvetica,但未包含在内:

%%DocumentFonts: Helvetica

仍然声称test-eps-converted-fto.pdf使用了 Helvetica:

pdffonts test-eps-converted-to.pdf 
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
IROFMT+Helvetica                     Type 1C           WinAnsi          yes yes no       8  0

但是,如果将(二进制)PDF转换回(ascii)PostScript,则会pdftops发现:

%%BeginResource: font IROFMT+Helvetica
%!FontType1-1.0: IROFMT+Helvetica
12 dict begin
/FontInfo 10 dict dup begin
/Notice (\(URW\)++,Copyright 1999 by \(URW\)++ Design & Development. See\
 the file COPYING \(GNU General Public License\) for license con\
ditions. As a special exception, permission is granted to includ\
e this font program in a Postscript or PDF file that consists of\
 a doc) readonly def
/Copyright (Copyright \(URW\)++,Copyright 1999 by \(URW\)++ Design & Develo\
pment) readonly def
/FullName (Nimbus Mono L Regular) readonly def
/FamilyName (Nimbus Mono L) readonly def

不知何故,您的 GhostScript 不知道 Helvetica,并用 GhostScript 附带的 Courier 克隆替换了它。应该使用 Helvetica 克隆 Nimbus Sans L,而不是 Nimbus Mono L。

不幸的是,我对 Windows 上的 GhostScript 了解不够,无法提供解决此问题的方法。

相关内容