GeneralSVG and other graphic formats in LaTeX

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
sveioen
Posts: 28
Joined: Tue Mar 06, 2007 1:04 am

SVG and other graphic formats in LaTeX

Post by sveioen »

Hello all.

1. How do you include a .svg image to a DVI (or PDF for that matter)?

2. I made .eps images with MetaPost, and to skip right to PDF, I included this little code, to make it convert the images "on the fly" (I think..):

Code: Select all

\usepackage{ifpdf}
\ifpdf
\DeclareGraphicsRule{*}{mps}{*}{}
\fi
As I said the image was created by MetaPost. However, when I tried to make an .eps image with Mathematica, I had to first compile the document as DVI, and then convert it to PDF. If I compiled directly to PDF, the image wouldnt appear. Why is this? Is .eps files generated different depending on the program that makes it?


Thanks!

Recommended reading 2024:

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

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

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

SVG and other graphic formats in LaTeX

Post by localghost »

latex generally accepts files only in the formats PS or EPS to build the DVI output. All other formats have to be converted. Files for pdflatex must exist in JPG, PNG or PDF format. You should refer to epslatex for more information.
balfonsi
Posts: 93
Joined: Wed Mar 14, 2007 12:05 am

Re: Graphic formats in LaTeX

Post by balfonsi »

All .eps files are of the same kind, but those created by metapost use only a subset of postscript language, and are sufficiently simple to be understood by pdflatex.

B.A.
Post Reply