diff options
author | Matthew Sotoudeh <masotoudeh@ucdavis.edu> | 2020-10-13 20:17:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-13 20:17:39 -0700 |
commit | a7897766064a9a97630feef241d83fc29962f4cb (patch) | |
tree | 5506be55191d7de9478a0655e752799321f84905 /pdfcrop.sh | |
parent | ced6dac36188c845d7d06e5768e484b4b774d028 (diff) |
Use PDFCROP from TeXLive (#9)
We previously had it download a separate copy of the pdfcrop script from CTAN, which is problematic because we check checksums and CTAN doesn't guarantee a particular version. This just uses the pdfcrop script that TeXLive-full already comes with.
Diffstat (limited to 'pdfcrop.sh')
-rw-r--r-- | pdfcrop.sh | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1,14 +1,12 @@ #!/bin/bash -pdfcrop=$1 -texlive=$2 +texlive=$1 if [[ $texlive =~ ^[^/].*$ ]]; then texlive=$PWD/$texlive fi echo "Using TeXLive installation: $texlive" -uncropped=$3 -output=$4 +uncropped=$2 +output=$3 PATH=$texlive/bin/x86_64:$PATH -PDFCROP=$PWD/$pdfcrop -$PDFCROP $uncropped $output --pdftex +pdfcrop $uncropped $output --pdftex |