diff options
author | Matthew Sotoudeh <matthewsot@outlook.com> | 2020-04-13 08:40:01 -0700 |
---|---|---|
committer | Matthew Sotoudeh <matthewsot@outlook.com> | 2020-04-13 08:40:01 -0700 |
commit | 96e12c8a274ea3e08648116f3fb052e3de005560 (patch) | |
tree | cc419696e4e062fc7173876073598c98cae0aa63 /pdfcrop.sh | |
parent | 229b0f318e0160013c9c5700a22cc13da37fdcd8 (diff) |
Initial code release
Diffstat (limited to 'pdfcrop.sh')
-rw-r--r-- | pdfcrop.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pdfcrop.sh b/pdfcrop.sh new file mode 100644 index 0000000..ce74ce0 --- /dev/null +++ b/pdfcrop.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +pdfcrop=$1 +texlive=$2 +if [[ $texlive =~ ^[^/].*$ ]]; then + texlive=$PWD/$texlive +fi +echo "Using TeXLive installation: $texlive" +uncropped=$3 +output=$4 + +PATH=$texlive/bin/x86_64:$PATH +PDFCROP=$PWD/$pdfcrop +$PDFCROP $uncropped $output --pdftex |