1 files changed, 12 insertions(+), 2 deletions(-)
M tikztosvg
M tikztosvg => tikztosvg +12 -2
@@ 110,11 110,21 @@ do
shift
;;
--xelatex)
- texengine='xelatex'
+ if command -v xelatex > /dev/null
+ then
+ texengine='xelatex'
+ else
+ error "Couldn't find xelatex: required by the --xelatex option"
+ fi
shift
;;
--pdflatex)
- texengine='pdflatex'
+ if command -v pdflatex > /dev/null
+ then
+ texengine='pdflatex'
+ else
+ error "Couldn't find pdflatex: required by the --pdflatex option"
+ fi
shift
;;
*)