[OS X TeX] Opustex and TexShop on OSX
Frank STENGEL
fstengel at mac.com
Tue Jun 6 13:25:18 EDT 2006
Le 6 juin 06 à 10:13, Teresa Clark a écrit :
> I've tried many places..
> Usr/Library/texmf/Latex/opustex/*.tex and *.sty
> usr/Library/texmf/tex/opustex/*.tex and *.sty
> usr/Library/texmf/fonts/source/opustex/*.mf
> usr/Library/texmf/fonts/tfm/opustex/ *.tfm
All the above seem right (assuming like Bruno that usr means /Users/
<yourShortUserName>/)
> the binary I have tried in
> usr/Library/texmf/Latex/bin/opusflex
Should suffice if you are the one and only user...
I'll assume you have put opusflex in ~/Library/TeXShop/bin/. What you
now need is a way to automate all this. To do so one needs to write
an engine. This engine simply typesets once, runs opusflex re-
typesets and then removes the .ox files...
Here is the (rather kludgy) code:
-8<-----
#!/bin/tcsh
echo $1
set basefname="`basename "$1" .tex`"
pdftex "$1"
~/Library/TeXShop/bin/opusflex "$basefname"
pdftex "$1"
rm "$basefname".ox*
-8<----
Copy and paste into your preferred text editor and save it as
"opustex.engine" in ~/Library/TeXShop/Engines. Make it executable by
using the following terminal command:
chmod a+x ~/Library/TeXShop/Engines/opustex.engine
Now, when you want to typeset an opustex file, open it with TeXShop,
in the popup to the right of the "Typeset" button, select "opustex"
and hit "Typeset" and it should work. At least it does for me with
most of the examples given...
>
> I've probably added more bloat than Microsoft.
Not that much ;-)
--
Frank STENGEL (fstengel<at>mac.com)
------------------------- 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 MacOSX-TeX
mailing list