[OS X TeX] SVG to LaTeX?

Peter Dyballa Peter_Dyballa at Web.DE
Sun Jun 25 12:48:17 CEST 2006

Am 24.06.2006 um 22:48 schrieb Piet van Oostrum:

>> PD> I  don't know what SVG is ...
> That shows. SVG is a vector format based on XML. You shouldn't replace
> vector format files with bitmap files.

I think I opened a few SVG files in GNU Emacs and to me they appeared  
like an XML wrapper around a bitmap file in PNG, GIF, TIFF, JPEG  
format, the usual HTML suspects. So I assumed Alain would find the  
same ... (SVG can also contain text. That's another reason I thought  
SVG is just an XML container for whatever kind of contents. But it  
seems SVG has its own vector format.)

I looked at some nation flags in SVG format inside xrmap:

   <defs id="defs380"/>
   <rect height="708.661011" id="rect171" rx="0.00000000"  
ry="0.00000000" style="font-size:12;fill:#ffffff;fill- 
rule:evenodd;stroke-width:1pt;" width="1062.98999" x="0.00000000"  
   <rect height="236.220001" id="rect256" rx="0.00000000"  
ry="0.00000000" style="font-size:12;fill:#21468b;fill- 
rule:evenodd;stroke-width:1pt;" width="1062.98999" x="0.00000000"  
   <rect height="236.220001" id="rect255" style="font-size: 
width="1062.98999" x="0.00000000" y="0.00000000"/>

It's not clear to me whether this is a champion's flag ... but it  
looks really like a vector format. Indeed, such a format would make  

So it would make much sense to preserve complete ability to edit the  
files while saving them as SVG. And when saving the last changes, a  
copy for TeX in PNG format could be saved, too! If Intaglio has an  
AppleScript interface it could be used to load SVG files and save  
them as PNG. Or whatever it supports or is wished.

At least ImageMagick's convert can convert from SVG to PNG, for  
example: convert flag.svg flag.png. I wonder which trace utility  
convert/ImageMagick uses!



To most people solutions mean finding the answers. But to chemists  
are things that are still all mixed up.

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/

More information about the macostex-archives mailing list