latexpic.sh: Crop to content

This commit is contained in:
Simon Bruder 2020-03-19 12:59:53 +00:00
parent 83e88d682b
commit 9f4cdab346
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -19,6 +19,8 @@ $(cat $OLDPWD/$1)
EOF EOF
lualatex doc.tex lualatex doc.tex
mutool draw -o doc.svg doc.pdf
inkscape -D -A doc.pdf doc.svg
mutool draw -r 600 -o $OLDPWD/${1}.png doc.pdf mutool draw -r 600 -o $OLDPWD/${1}.png doc.pdf
mutool draw -o $OLDPWD/${1}.svg doc.pdf mutool draw -o $OLDPWD/${1}.svg doc.pdf
cd - cd -