Graphics, Figures & TablesProblems with EPS to get a PDF

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
kabak
Posts: 3
Joined: Sun Apr 17, 2011 1:01 pm

Problems with EPS to get a PDF

Post by kabak »

Hi,

As homework we have to change a "template" with al the exercises at the paper. Including graphics.

Now, I have some problems with creating a pdf that includes graphics with .eps. I googled it and I came on this topic with a solution: http://www.latex-community.org/forum/vi ... ?f=31&t=35

There I did exactly as tramir (third message) said. I created the Latex=>dvi=>pdf. Now I can see the pictures but unfortunately there is something wrong. I uploaded an example:
psfrag-problem.jpg
psfrag-problem.jpg (9.9 KiB) Viewed 6882 times
Honestly I don't have clue how the .eps file was made. But everything under "PSfrag replacements" normally is a name of a component in the schematics.

I'm getting pretty desperate on this. Is there any solution?

Recommended reading 2024:

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

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

coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Re: Problems with EPS to get a PDF

Post by coachbennett1981 »

what about the \usepackage{epstopdf}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problems with EPS to get a PDF

Post by localghost »

Try your luck with the compiling route »LaTeX → DVI → PS → PDF«. As alternative you may try circuitikz or pst-circ to draw such images with LaTeX.


Best regards and welcome to the board
Thorsten
kabak
Posts: 3
Joined: Sun Apr 17, 2011 1:01 pm

Re: Problems with EPS to get a PDF

Post by kabak »

Sorry for the late answer but I was hoping for some more answers... I gave up trying to get the pictures right...

With \usepackage{epstopdf} the PSfrag replacements are gone but also not in the picture. And if I only compile to dvi the picture is already messed up... I heard form some guy who uses linux that by running latex twice it worked by him... But by building twice I still have the same picture...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problems with EPS to get a PDF

Post by localghost »

kabak wrote:[…] And if I only compile to dvi the picture is already messed up. […]
As I suggested earlier you should compile not only to DVI but further to PS (and then to PDF). Most DVI viewers tend not to display postscript code correctly. And if something is going wrong with the replacements, then the log file should give you information.

After a closer look at the picture you attached I assume that you are compiling in draft mode. The psfrag package is responsible for the literal output of the replacements you did in the include picture. So, drop the »draft« option which mostly is given in the options list for the document class.

Why don't you just present your recent efforts in form of a minimal example and attach the concerned file to your next post by uploading it to the forum server? This way we would be able to test and tell you explicitly what is going wrong. Perhaps the EPS file is faulty or you are doing something wrong in general. But with the poor information we now have specific help is impossible and we'll be lost in theory.
Post Reply