diff options
Diffstat (limited to 'macros/latex/contrib/dvisirule/cmd.mk')
-rw-r--r-- | macros/latex/contrib/dvisirule/cmd.mk | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/macros/latex/contrib/dvisirule/cmd.mk b/macros/latex/contrib/dvisirule/cmd.mk new file mode 100644 index 0000000000..6624f661cb --- /dev/null +++ b/macros/latex/contrib/dvisirule/cmd.mk @@ -0,0 +1,22 @@ + +Lo = +LATEX ?= latex +define Latex # texsrc + tmp=/tmp/$${$$}; \ + rc=0; \ + { \ + ${LATEX} \ + -halt-on-error -interaction=nonstopmode \ + -no-mktex tfm -file-line-error \ + -output-directory ${Dir} \ + ${Lo}'\input' ${1} > $${tmp} ||\ + { rc=$${?}; tail -20 $${tmp}; }; \ + ${RM} $${tmp}; \ + test $${rc} -eq 0; \ + } +endef + +TEXINPUTS := ${Dir}:${TEXINPUTS} +export TEXINPUTS +DVIPDFMX ?= dvipdfmx -q -f erewhon.map -f newtx.map -f Chivo.map +PDFCROP ?= pdfcrop --noverbose |