blob: bb47daf17114bc3bfc76fdcdd95168edd7262fe2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
echo
echo "*************************************"
echo "* Using LaTeX, with pslatex package *"
echo "*************************************"
echo
# messing around with \PSLATEXTMP is for AUCTeX which calls
# documents via latex \nonstopmode \input{file}
latex \
"\AtBeginDocument{\RequirePackage{pslatex}}"\
"\def\PSLATEXTMP{\futurelet\PSLATEXTMP\PSLATEXTMPB}"\
"\def\PSLATEXTMPB{\ifx\PSLATEXTMP\nonstopmode\else\input\fi}"\
"\PSLATEXTMP" $*
|