blob: f26039b1e8cbfb8471cdfe64f161ae979fdda0fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
if [ $# = 0 ]; then
echo "Usage: $0 <file.tex>"
exit 1
fi
NAME=$(basename $1 .tex)
PDF=$NAME.pdf
xelatex Figures/$NAME.tex
pdfcrop $PDF
/bin/mv -f $NAME-crop.pdf $PDF
|