Graphics, Figures & Tables ⇒ Problems with EPS to get a PDF
Problems with EPS to get a PDF
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: 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?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Posts: 274
- Joined: Fri Feb 05, 2010 10:15 pm
Re: Problems with EPS to get a PDF
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problems with EPS to get a PDF
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Problems with EPS to get a PDF
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...
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problems with EPS to get a PDF
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.kabak wrote:[…] And if I only compile to dvi the picture is already messed up. […]
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.
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10