Graphics, Figures & TablesHelp me with graphicx (*.eps)

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
kingvu
Posts: 3
Joined: Tue Mar 23, 2010 8:38 pm

Help me with graphicx (*.eps)

Post by kingvu »

* I have script like this :
\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{epstopdf}
\begin{document}
\includegraphics[width=0.8\textwidth]{logo.eps}
\end{document}

When i compile, it has error in log file:

This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) (preloaded format=pdflatex 2010.3.24) 24 MAR 2010 20:13
entering extended mode
**C:/Users/VUPHUONGNAM/Desktop/New*Folder/new.tex
("C:/Users/VUPHUONGNAM/Desktop/New Folder/new.tex"
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french, loaded.
("C:\Program Files\MiKTeX 2.7\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.7\tex\latex\base\size11.clo"
File: size11.clo 2007/10/19 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
)
("C:\Program Files\MiKTeX 2.7\tex\latex\graphics\graphicx.sty"
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

("C:\Program Files\MiKTeX 2.7\tex\latex\graphics\keyval.sty"
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
)
("C:\Program Files\MiKTeX 2.7\tex\latex\graphics\graphics.sty"
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)

("C:\Program Files\MiKTeX 2.7\tex\latex\graphics\trig.sty"
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
("C:\Program Files\MiKTeX 2.7\tex\latex\00miktex\graphics.cfg"
File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: pdftex.def on input line 91.

("C:\Program Files\MiKTeX 2.7\tex\latex\pdftex-def\pdftex.def"
File: pdftex.def 2010/02/14 v0.04n Graphics/color for pdfTeX
\Gread@gobject=\count87
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
("C:\Program Files\MiKTeX 2.7\tex\latex\oberdiek\epstopdf.sty"
Package: epstopdf 2010/02/09 v2.5 Conversion with epstopdf on the fly (HO)

("C:\Program Files\MiKTeX 2.7\tex\latex\oberdiek\epstopdf-base.sty"
Package: epstopdf-base 2010/02/09 v2.5 Base part for package epstopdf

("C:\Program Files\MiKTeX 2.7\tex\generic\oberdiek\infwarerr.sty"
Package: infwarerr 2007/09/09 v1.2 Providing info/warning/message (HO)
)
("C:\Program Files\MiKTeX 2.7\tex\latex\oberdiek\grfext.sty"
Package: grfext 2007/09/30 v1.0 Managing graphics extensions (HO)
)
("C:\Program Files\MiKTeX 2.7\tex\latex\oberdiek\kvoptions.sty"
Package: kvoptions 2010/02/22 v3.7 Keyval support for LaTeX options (HO)

("C:\Program Files\MiKTeX 2.7\tex\generic\oberdiek\kvsetkeys.sty"
Package: kvsetkeys 2010/03/01 v1.9 Key value parser (HO)

("C:\Program Files\MiKTeX 2.7\tex\generic\oberdiek\etexcmds.sty"
Package: etexcmds 2010/01/28 v1.3 Prefix for e-TeX command names (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.7\tex\generic\oberdiek\pdftexcmds.sty"
Package: pdftexcmds 2010/03/01 v0.8 Utility functions of pdfTeX for LuaTeX (HO)


("C:\Program Files\MiKTeX 2.7\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.7\tex\generic\oberdiek\ltxcmds.sty"
Package: ltxcmds 2010/03/09 v1.4 LaTeX kernel commands for general use (HO)
)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
)

Package epstopdf Warning: Shell escape feature is not enabled.

Package grfext Info: Graphics extension search list:
(grfext) [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE
G,.JBIG2,.JB2,.eps]
(grfext) \AppendGraphicsExtensions on input line 436.
)) (new.aux)
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
("C:\Program Files\MiKTeX 2.7\tex\context\base\supp-pdf.tex"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count88
\scratchdimen=\dimen105
\scratchbox=\box26
\nofMPsegments=\count89
\nofMParguments=\count90
\everyMPshowfont=\toks15
\MPscratchCnt=\count91
\MPscratchDim=\dimen106
\MPnumerator=\count92
\everyMPtoPDFconversion=\toks16
)
Package epstopdf Info: Source file: <logo.eps>
(epstopdf) date: 2007-03-14 14:56:06
(epstopdf) size: 184700 bytes
(epstopdf) Output file: <logo-eps-converted-to.pdf>
(epstopdf) Command: <epstopdf --outfile=logo-eps-converted-to.pdf l
ogo.eps>
(epstopdf) \includegraphics on input line 5.
system(epstopdf --outfile=logo-eps-converted-to.pdf logo.eps)...disabled.

Package epstopdf Info: Result file: <logo-eps-converted-to.pdf>.


! Package pdftex.def Error: File `logo-eps-converted-to.pdf' not found.

See the pdftex.def package documentation for explanation.
Type H <return> for immediate help.
...

l.5 ...ludegraphics[width=0.8\textwidth]{logo.eps}

? x

Here is how much of TeX's memory you used:
1237 strings out of 95288
16452 string characters out of 1182840
66304 words of memory out of 1500000
4486 begin_of_the_skype_highlighting              1500000 4486      end_of_the_skype_highlighting begin_of_the_skype_highlighting              1500000 4486      end_of_the_skype_highlighting multiletter control sequences out of 110000
3940 words of font info for 15 fonts, out of 3000000 for 5000
14 hyphenation exceptions out of 8191
41i,0n,23p,312b,60s stack positions out of 5000i,500n,10000p,200000b,50000s
No pages of output.
PDF statistics:
0 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 131072)
1 words of extra memory for PDF output out of 10000 (max. 10000000)


I am using MikTeX 2.7 and WinEdit 5 and i have graphicx.sty and epstopdf.sty in same directory.
This is short script and also have long script that has same error.
Please help me to solve this problem.
Thanks in advance !!!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Help me with graphicx (*.eps)

Post by localghost »

It seems that you didn't follow the instructions in the epstopdf manual about calling the compiler with the --enable-write18 option. The forum search will also yield suitable solutions.


Best regards and welcome to the board
Thorsten
kingvu
Posts: 3
Joined: Tue Mar 23, 2010 8:38 pm

Re: Help me with graphicx (*.eps)

Post by kingvu »

Thanks for your helping. May you clearly explain ? The reason is epstopdf.sty ??? but when i cancel this package, the error still appear. How about --enable-write18 option? Thanks.
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Help me with graphicx (*.eps)

Post by josephwright »

At the command line:

Code: Select all

pdflatex -shell-escape <filename here>
Most editors have an option to include command line switches when starting (pdf)latex. For example, in TeXworks (which I use) this is done from the Preferences. Which editor do you use?
Joseph Wright
kingvu
Posts: 3
Joined: Tue Mar 23, 2010 8:38 pm

Re: Help me with graphicx (*.eps)

Post by kingvu »

I use WinEdt 5
Post Reply