我试过这个使用 pdflatex 时使用 psfrag 替代。文件myextractor.sty
和的配置main.tex
工作得很好,但现在我遇到了一个问题,我想禁用.eps
文件的提取.pdf
。首先我删除了以下几行:
\usepackage{myextractor}% automatically load graphicx
\graphicspath{{Images/}}
但是当我main.tex
像Latex -> PDF
在 TexnicCenter 中一样进行编译时,它仍然会生成.pdf
图像文件.eps
。我myextractor.sty
从路径中删除了文件,但它仍然会生成这些文件,我卸载了 MikTex 和 TexnicCenter,还删除了临时档案,但是当我重新安装并进行编译时,main.tex
它继续生成.pdf
每个图像的。现在,我编译的每个文件都会Latex -> PDF
生成.pdf
图像的版本(我只使用.eps
),即使它们没有上面的行或myextractor.sty
路径中的文件,包括 project/Images 之外的图形。
这些仅当我以 方式编译时才会发生Latex -> PDF
,如果我以任何其他方式编译,它都可以正常工作并且不会生成.pdf
版本eps
。
我如何禁用这些“配置”?有时我有很多图像,这会在 DropBox 中生成太多档案。
注意:在尝试此方法之前,我处理过.eps
图像,Latex -> PDF
没有问题。
这是一个简单的例子:
\documentclass[11pt,letterpaper,oneside]{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{float}
\usepackage{caption}
\usepackage{anysize}
\marginsize{2.50cm}{2.50cm}{1.50cm}{1.50cm}
\title{Test}
\author{Me}
\date{\today}
\begin{document}
\captionsetup{font=footnotesize,labelsep=period}
\maketitle
\begin{figure}[h]
\centering
\includegraphics[scale=1]{Img1.eps}
\caption{Image.}
\end{figure}
\end{document}
是.log
:
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6930 64-bit) (preloaded format=pdflatex 2019.1.29) 30 JAN 2019 11:04
entering extended mode
**./Article1.tex
(Article1.tex
LaTeX2e <2018-12-01>
("C:\Program Files\MiKTeX 2.9\tex/latex/base\article.cls"
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex/latex/base\size11.clo"
File: size11.clo 2018/09/03 v1.4i 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:\Program Files\MiKTeX 2.9\tex/latex/base\inputenc.sty"
Package: inputenc 2018/08/11 v1.3c Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15
)
("C:\Program Files\MiKTeX 2.9\tex/latex/graphics\graphicx.sty"
Package: graphicx 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)
("C:\Program Files\MiKTeX 2.9\tex/latex/graphics\keyval.sty"
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks16
)
("C:\Program Files\MiKTeX 2.9\tex/latex/graphics\graphics.sty"
Package: graphics 2017/06/25 v1.2c 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/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 99.
("C:\Program Files\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:\Program Files\MiKTeX 2.9\tex/latex/float\float.sty"
Package: float 2001/11/08 v1.3d Float enhancements (AL)
\c@float@type=\count88
\float@exts=\toks17
\float@box=\box27
\@float@everytoks=\toks18
\@floatcapt=\box28
)
(C:\Users\Marco\AppData\Roaming\MiKTeX\2.9\tex/latex/caption\caption.sty
Package: caption 2018/10/06 v3.3-154 Customizing captions (AR)
(C:\Users\Marco\AppData\Roaming\MiKTeX\2.9\tex/latex/caption\caption3.sty
Package: caption3 2018/09/12 v1.8c caption3 kernel (AR)
Package caption3 Info: TeX engine: e-TeX on input line 64.
\captionmargin=\dimen105
\captionmargin@=\dimen106
\captionwidth=\dimen107
\caption@tempdima=\dimen108
\caption@indent=\dimen109
\caption@parindent=\dimen110
\caption@hangindent=\dimen111
)
\c@caption@flags=\count89
\c@ContinuedFloat=\count90
Package caption Info: float package is loaded.
)
(C:\Users\Marco\AppData\Roaming\MiKTeX\2.9\tex/latex/anysize\anysize.sty
Package: anysize 1994/08/13 setting margin sizes
document style option `anysize' loaded
Michael Salzenberg, Thomas Esser, Dirk Hillbrecht
Version 1.0, Aug 13, 1994
\@Leftmargin=\dimen112
\@Rightmargin=\dimen113
\@Topmargin=\dimen114
\@Bottommargin=\dimen115
) (Article1.aux)
\openout1 = `Article1.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 16.
LaTeX Font Info: ... okay on input line 16.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 16.
LaTeX Font Info: ... okay on input line 16.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 16.
LaTeX Font Info: ... okay on input line 16.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 16.
LaTeX Font Info: ... okay on input line 16.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 16.
LaTeX Font Info: ... okay on input line 16.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 16.
LaTeX Font Info: ... okay on input line 16.
(C:\Users\Marco\AppData\Roaming\MiKTeX\2.9\tex/context/base\supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count91
\scratchdimen=\dimen116
\scratchbox=\box29
\nofMPsegments=\count92
\nofMParguments=\count93
\everyMPshowfont=\toks19
\MPscratchCnt=\count94
\MPscratchDim=\dimen117
\MPnumerator=\count95
\makeMPintoPDFobject=\count96
\everyMPtoPDFconversion=\toks20
) ("C:\Program Files\MiKTeX 2.9\tex/latex/oberdiek\epstopdf-base.sty"
Package: epstopdf-base 2016/05/15 v2.6 Base part for package epstopdf
("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\infwarerr.sty"
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
)
("C:\Program Files\MiKTeX 2.9\tex/latex/oberdiek\grfext.sty"
Package: grfext 2016/05/16 v1.2 Manage graphics extensions (HO)
("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\kvdefinekeys.sty"
Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO)
("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\ltxcmds.sty"
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
)))
("C:\Program Files\MiKTeX 2.9\tex/latex/oberdiek\kvoptions.sty"
Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO)
("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\kvsetkeys.sty"
Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO)
("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\etexcmds.sty"
Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\ifluatex.sty"
Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
))))
("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\pdftexcmds.sty"
Package: pdftexcmds 2018/09/10 v0.29 Utility functions of pdfTeX for LuaTeX (HO)
("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\ifpdf.sty"
Package: ifpdf 2018/09/07 v3.3 Provides the ifpdf switch
)
Package pdftexcmds Info: LuaTeX not detected.
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 438.
Package grfext Info: Graphics extension search list:
(grfext) [.pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,.PDF,.PNG,.JPG,.JPEG,.JBIG2,.JB2,.eps]
(grfext) \AppendGraphicsExtensions on input line 456.
)
Package caption Info: Begin \AtBeginDocument code.
Package caption Info: End \AtBeginDocument code.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <12> on input line 20.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <8> on input line 20.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <6> on input line 20.
Package epstopdf Info: Source file: <Img1.eps>
(epstopdf) date: 2018-07-12 14:32:42
(epstopdf) size: 30384 bytes
(epstopdf) Output file: <Img1-eps-converted-to.pdf>
(epstopdf) date: 2019-01-30 11:03:30
(epstopdf) size: 8399 bytes
(epstopdf) Command: <epstopdf --outfile=Img1-eps-converted-to.pdf Img1.eps>
(epstopdf) \includegraphics on input line 26.
Package epstopdf Info: Output file is already uptodate.
pdfTeX warning: pdflatex.exe (file ./Img1-eps-converted-to.pdf): PDF inclusion: found PDF version <1.7>, but at most ver
sion <1.5> allowed
<Img1-eps-converted-to.pdf, id=1, 255.95625pt x 150.5625pt>
File: Img1-eps-converted-to.pdf Graphic file (type pdf)
<use Img1-eps-converted-to.pdf>
Package pdftex.def Info: Img1-eps-converted-to.pdf used on input line 26.
(pdftex.def) Requested size: 255.95561pt x 150.56212pt.
[1
{C:/Users/Marco/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map} <./Img1-eps-converted-to.pdf>] (Article1.aux) )
Here is how much of TeX's memory you used:
2626 strings out of 492946
41868 string characters out of 3135527
104281 words of memory out of 3000000
6517 multiletter control sequences out of 15000+200000
7274 words of font info for 26 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191
41i,6n,39p,277b,317s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:/Pr
ogram Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr10.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts
/cm/cmr12.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr17.pfb><C:/Program Files/MiKTeX 2.9/fonts/t
ype1/public/amsfonts/cm/cmr9.pfb>
Output written on Article1.pdf (1 page, 48420 bytes).
PDF statistics:
26 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)