[OS X TeX] converting jpg to eps

Stephen Moye stephenmoye at cox.net
Mon Mar 6 02:43:31 CET 2006


On Mar 5, 2006, at 7:01 PM, Tom Koornwinder wrote:

> The following may be trivial for experienced TeX hackers, but it  
> took me
> some time to get these things straight. Maybe the following  
> information
> is helpful for some readers.
>
> The frequently occurring jpg picture format is handled without  
> problem by
> pdflatex (the default engine in TeXShop) together with the
> package graphicx.
> However, when one chooses an engine which first produces a dvi  
> file, one
> needs the eps format for picture files. The dvi road is mandatory  
> if one
> wants to make latex based presentation files with prosper or the  
> more recent
> powerdot.
>
> The converter jpeg2ps from jpg to eps format can be downloaded from
> http://www.pdflib.com/products/more/jpeg2ps.html
> See http://jamesclarke.info/notes/Eps (end of the web page)
> how to install jpeg2ps (assuming that one has already installed  
> XCode).
> Then one can convert picture files by the command
> jpeg2ps file.jpg > file.eps
>
> I recently experienced that the well-known preprint arxive http:// 
> arxiv.org/
> does not accept latex source files which read jpg files. So also  
> for submitting
> a preprint there, one needs to convert jpg into eps.
> When reading  eps files into the latex file, one has to produce dvi.
> In that case I have the habit to start my latex files with the
> line    %!TEX TS-program =  latex
> However, then the typesetting engine of http://arxiv.org/ does not
> produce satisfactory output. The reason is that
> the sequence "%!" is the Unix magic filetype indicator for PostScript,
> so their system fails to recognize it as latex.
>
> So, if you submit to http://arxiv.org/, you should remove a first line
> starting with "%!" from your latex file.
>
> 		Tom Koornwinder

I didn't know about jpeg2ps so will look it up. I do, however, use  
Imagemagick (from GW's i-Installer) to accomplish this with:

% convert foo.jpg foo.eps

This has worked flawlessly for me.

SGM

------------------------- 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