Graphics, Figures & TablesEPS doesn't work!

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
loucat
Posts: 4
Joined: Mon Sep 06, 2010 6:15 pm

EPS doesn't work!

Post by loucat »

Hi everybody!

I have to insert some EPS images in my LaTeX-PDF document but I just can't do it :(
I've already tried everything I've found on the web in order to make it possible but nothing worked, so I try to write a topic myself, I hope you can help me...

My system is:

S.O. : windows XP
TeX distribution: MikTek 2.7
LaTeX editor: TeXnicCenter

What I've already tried (hopefully in the right way...)
- tried to use the package EPSTOPDF
- tried to use the package and the command EPSFIG
- tried to create a new output profile LaTeX=>PS=>PDF by myself
- tried to import a profile LaTeX=>PS=>PDF found in this forum
- tried not to write the .eps extension while calling the image
- tried to put my .eps files in the same directory of the main tex file

and probably other things... I'm so tired of trying and nothing works :(
I'd need a good method with everything explained, because now I'm so confused, I don't know what I should change in the package declaration, in the command to add the images, I just would like to be able to use EPS files.

Thank you so much for any helping!

lou

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: EPS doesn't work!

Post by frabjous »

Do you have ghostscript installed?
wolfrain
Posts: 20
Joined: Wed Aug 25, 2010 2:42 am

Re: EPS doesn't work!

Post by wolfrain »

Could you post what you've written in the preamble in the main file? Maybe we can find out something there.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

EPS doesn't work!

Post by localghost »

loucat wrote:[…] LaTeX editor: TeXnicCenter […]
Which version exactly?
loucat wrote:[…] tried to use the package EPSTOPDF […]
Needs the command line option --enable-write18. Note the special annotations in the package manual.
loucat wrote:[…] tried to use the package and the command EPSFIG […]
This package is obsolete [1].
loucat wrote:[…] tried to create a new output profile LaTeX=>PS=>PDF by myself […]
Difficult because fault-prone.
loucat wrote:[…] tried to import a profile LaTeX=>PS=>PDF found in this forum […]
Note the annotations regarding path accommodations.
loucat wrote:[…] tried not to write the .eps extension while calling the image […]
Doesn't change anything because the latex compiler only accepts thus searches EPS files.
loucat wrote:[…] tried to put my .eps files in the same directory of the main tex file […]
Is not relevant to the problem if possible paths are given correctly.

You should check the log file for error messages and echo these here exactly. If necessary, you can upload a minimal example together with the corresponding log file to the forum server as attachment to your next post.

Since TXC1 RC1 the profile »LaTeX → PS → PDF« is generated automatically provided that all necessary software is installed (see reply of frabjous). Start the wizard after pressing »Alt+F7« (see attachment).

[1] View topic: Obsolete packages and document classes - Avoid usage!


Thorsten
Attachments
The »Profiles« dialogue window of TXC1 RC1 with the »LaTeX → PS → PDF« profile.
The »Profiles« dialogue window of TXC1 RC1 with the »LaTeX → PS → PDF« profile.
TXC1RC1-Wizard.png (18.91 KiB) Viewed 10227 times
loucat
Posts: 4
Joined: Mon Sep 06, 2010 6:15 pm

EPS doesn't work!

Post by loucat »

@frabjous:
yes GhostScript 8.64 is installed

@ wolfrain:

Code: Select all

\documentclass[a4paper,11pt,twoside,openright]{book}
\usepackage[italian]{babel}
\usepackage[latin1]{inputenc} 
\usepackage{latexsym} 
\usepackage{cite}  
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{fancyhdr}
\pagestyle{fancy}
@localghost:

I have TeXnicCenter 1.0 stable RC1
I've started the wizard, subscribed the Latex=>PS=>PDF profile, added the command line argument --enable-write18 as seen in your attachment, but I still have a lot of errors (even if some of them are not related to EPS).
My log is in the attachment.

Thanks for your help...
Attachments
tesiMain.log
(8.86 KiB) Downloaded 354 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

EPS doesn't work!

Post by localghost »

loucat wrote:[…] I have TeXnicCenter 1.0 stable RC1
I've started the wizard, subscribed the Latex=>PS=>PDF profile, added the command line argument --enable-write18 as seen in your attachment, but I still have a lot of errors (even if some of them are not related to EPS).
My log is in the attachment. […]
Well, I see that my last reply has been a bit misleading. The epstopdf package only works with the pdflatex compiler. Drop it when compiling with latex.

The attached log file is incomplete. So something prevents the compiler from finishing the job. Take a look at the »Build« section in the lower portion of the TXC window, scroll it and search for unusual messages. Afterwards try to compile your document on the command line. If the problem persists, reduce it to a minimal working example (MWE) that only reads an external EPS graphics file.

Finally a matter that is not related to the problem. The babel package warns you that it didn't load hyphenation patterns for Italian. Go to the MiKTeX Options and add that language a seen in the attachment. Rebuild the format files if necessary.
Attachments
Language selection in the MiKTeX Options.
Language selection in the MiKTeX Options.
MiKTeXOptions-Languages.png (29.85 KiB) Viewed 10214 times
loucat
Posts: 4
Joined: Mon Sep 06, 2010 6:15 pm

EPS doesn't work!

Post by loucat »

localghost wrote: Well, I see that my last reply has been a bit misleading. The epstopdf package only works with the pdflatex compiler. Drop it when compiling with latex.
I'm sorry I had known it but then I forgot it! Now it's ok, thanks!
localghost wrote: The attached log file is incomplete. So something prevents the compiler from finishing the job. Take a look at the »Build« section in the lower portion of the TXC window, scroll it and search for unusual messages.
I compiled it again and I still have errors, so in the attachment I put the log for the LaTeX=>PS=>PDF version (without epstopdf this time!), and in TeXnicCenter after the log stops I can read some sentences saying it can't find my files.
localghost wrote: Afterwards try to compile your document on the command line. If the problem persists, reduce it to a minimal working example (MWE) that only reads an external EPS graphics file.
Compiling on the command line doesn't work as it says "latex must be made using an initex with no format preloaded".
I've done a MKE writing only this:

Code: Select all

\documentclass[a4paper,11pt,twoside,openright]{book}

%\usepackage{graphicx} %--> LaTeX =>PS =>PDF 

\usepackage[pdftex]{graphicx}   % --> LaTex =>PDF con epstodf
\usepackage{epstopdf}           % --> LaTex =>PDF con epstodf


\begin{document}

\DeclareGraphicsExtensions{.eps} 
\includegraphics[width=0.3\textwidth]{../files/logoUnica.eps}
\end{document} 


and it works both with epstopdf and with the latex->ps->pdf version... so maybe my problems are others and I should change section of the forum? :(
localghost wrote: Finally a matter that is not related to the problem. The babel package warns you that it didn't load hyphenation patterns for Italian. Go to the MiKTeX Options and add that language a seen in the attachment. Rebuild the format files if necessary.
Yes that's a problem that I've already tried to fix: unfortunately the hyphenation patterns for Italian are already loaded and rebuilding the format files doesn't change anything... so as up to now (or should I say before trying to use EPS?) I could have my document dispite this error, I gave up worrying about it...should I?:)
Attachments
tesiMainPS.log
(33.31 KiB) Downloaded 373 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

EPS doesn't work!

Post by localghost »

loucat wrote:[…] Compiling on the command line doesn't work as it says "latex must be made using an initex with no format preloaded". […]
That looks like a bigger problem with your MiKTeX installation. Feeding a search engine with the exact error message doesn't yield any useful information.
loucat wrote:[…] I've done a MKE writing only this […] and it works both with epstopdf and with the latex->ps->pdf version... so maybe my problems are others and I should change section of the forum? […]
It requires a MWE that exactly reproduces the error, not one that works smoothly. Moving to another forum area won't change the circumstances. Build a proper MWE by following the according links from past replies.

And by the way, you don't need any driver options like pdftex. Packages like graphicx detect on their own which compiler engine is running.
loucat
Posts: 4
Joined: Mon Sep 06, 2010 6:15 pm

Re: EPS doesn't work!

Post by loucat »

I'm just getting crazy :(
I've installed MiKteX again but anything changed.
I've done another MWE and now I've found the part (or maybe just one of the many parts...) where it stops... the file and its log are the attachments, but it didn't finish compiling as it says in the output bar:

"This application has requested the Runtime to terminate it in an unusual way.
Buffer size exceeded"
Attachments
MWEsmall.log
(2.37 KiB) Downloaded 307 times
MWEsmall.tex
(410 Bytes) Downloaded 294 times
Post Reply