Graphics, Figures & Tables ⇒ How do I: Compile to PDF when I have .eps and .png images
How do I: Compile to PDF when I have .eps and .png images
I use graphicx to show my .png images.
I have tried to include an .eps figure using epsfigure but it won't have it.
If I compile my document to ps then pdf it complains that my .png images dont have bounding boxes.
Is there a simple way around this or should I just not bother with .eps figures... I have over 100 figure in .png and I don't feel like converting them all to .eps and changing all my graphicx code to epsfig code. Like wise I'd rather not convert my .eps files to .png if I can help it.
Thanks,
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
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
How do I: Compile to PDF when I have .eps and .png images
I recommend to use epstopdf to convert the eps images to pdf format and use pdfLaTeX to include pdf and png images. The LaTeX package epstopdf could make that easier.
Stefan
Re: How do I: Compile to PDF when I have .eps and .png images
Thus I don't know where to enter the command:
--enable-write18
Thus it won't convert my .eps file.
Any ideas?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: How do I: Compile to PDF when I have .eps and .png images
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10