/usr/bin/tthprep is in tth-common 4.08+ds-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #!/bin/sh
# IHH Feb 2001
#Prepare for tth conversion by running latex on kludged file.
#Needs a safety check
if [ $# = 1 ] ; then
if ls $1 ; then
if cp $1 tth_temp.tex ; then
echo "Copying latex file to:"
if ls tth_temp.tex ; then
sed -e '/\\document/r tthprep.sty' tth_temp.tex > $1
# cat tth_prep.tex tth_temp.tex > $1
echo "Running Latex twice on temporarily modified file:"
ls $1
echo
if latex $1 ; then
latex $1 ; fi
echo
if cp tth_temp.tex $1; then
echo "Restored latex file."
else
echo "Something really bad happened. Restore by hand!"
fi
exit 0
else
echo "Could not make temporary file"
fi
fi
fi
fi
echo " Usage: tth_prep filename.tex"
exit 1
|