summaryrefslogtreecommitdiff
path: root/info/latex4musicians/pdfl.sh
blob: 8c87efe214447580990f3cb7e73f15327b28f4dd (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
pdflatex Figures/$NAME.tex
pdfcrop $PDF
/bin/mv -f $NAME-crop.pdf $PDF