[OS X TeX] Stemma using TeXShop

Jan Anderssen jan at linguist.umass.edu
Thu Dec 6 14:31:19 EST 2007

hi toke,

On Dec 6, 2007, at 1:02 PM, Toke Lindegaard Knudsen wrote:

> On Dec 6, 2007, at 12:52 PM, Herbert Schulz wrote:
>>  to use the alternate tex->dvi->ps->pdf method put the line
>> %%!TEX TS-program = latex
>> at the top of your file.
>   \includegraphics{mss_scans/R2_f9v.jpg}

i believe that if you use "the postscript route" that herb mentioned  
above, then you can only embed .eps graphics. in order to embed jpg  
images, you need to use pdf(la)tex, which is incompatible with your  
current graph-drawing package.

there a few options:

1) if you're just starting to draw the graphs, it might be worth  
switching to a different package! given the example you mentioned,  
have a look at xy-pic: http://www.tug.org/applications/Xy-pic/ -- i  
believe that works with pdf(la)tex.

if you link to an example image of what you'd like your graphs to look  
like, i'm sure others would be able to provide more suggestions.

2) if you prefer to stick to your package, you could convert your  
images to eps.

if you have imagemagick installed (there's an i-Installer package),  
you should be able to convert your files using the command line command:

convert my_scan.jpg my_scan.eps

you should also be able to loop over files with something similar to  
the following (for the bash shell; untested):

for i in *.pdf; do { name=`basename $i .pdf`; convert ${name}.jpg  $ 
{name}.eps; } done;

3) i believe there are some packages that can handle the code that  
requires postscript even when you run pdf(la)tex, though i lost track  
of what exists/is recommended. i believe pst-pdf is one option: http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-pdf/pst-pdf.pdf

good luck,

More information about the MacOSX-TeX mailing list