From 9f4cdab3462ecbde800ed64b44e28b51a924d435 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Thu, 19 Mar 2020 12:59:53 +0000 Subject: [PATCH] latexpic.sh: Crop to content --- latexpic.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/latexpic.sh b/latexpic.sh index f273ec6..fbe584e 100755 --- a/latexpic.sh +++ b/latexpic.sh @@ -19,6 +19,8 @@ $(cat $OLDPWD/$1) EOF 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 -o $OLDPWD/${1}.svg doc.pdf cd -