[OS X TeX] Re: texshop and preview

Ramón Figueroa-Centeno ramonf at hawaii.edu
Sat May 22 03:30:15 EDT 2010


Aloha,

The following TeXShop engine will generate a figure that works well in
TeXShop. It does so by calling pdfcrop at the end. To use it save it in a
text file with the suffix ".engine", make it executable and place it in the
Engines folder of TeXShop.

Ramón

P.S.: Just for fun, I'll try to write an engine that calls Acrobat. If I
succeed I'll post it here :)

----------------------code below this line---------------
#!/bin/bash

PATH="$PATH:/usr/texbin:/usr/local/bin"

location=$(dirname "$1")
basefname="${location}/`basename "$1" .tex`"

latex "$1"
dvips -q "${basefname}.dvi"
rm "${basefname}.dvi"
ps2pdf "${basefname}.ps"
rm "${basefname}.ps"

pdfcrop "${basefname}.pdf"
mv "${basefname}-crop.pdf" "${basefname}.pdf"

-- 
View this message in context: http://macosx-tex.576846.n2.nabble.com/texshop-and-preview-tp5082103p5087480.html
Sent from the MacOSX-TeX mailing list archive at Nabble.com.



More information about the MacOSX-TeX mailing list