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