Browse Source

Add LuaLatex support.

Fixes #2.

Commit message and indentation tweaked by: Matthieu Moy <git@matthieu-moy.fr>
master
Victor Sanchez Urrutia 7 years ago
committed by Matthieu Moy
parent
commit
e18e9bb61c
  1. 7
      git-latexdiff

7
git-latexdiff

@ -93,6 +93,7 @@ Options:
--no-view don't display the resulting PDF file --no-view don't display the resulting PDF file
--latex run latex instead of pdflatex --latex run latex instead of pdflatex
--xelatex run xelatex instead of pdflatex --xelatex run xelatex instead of pdflatex
--lualatex run lualatex instead of pdflatex
--bibtex, --bbl display changes in the bibliography --bibtex, --bbl display changes in the bibliography
(runs bibtex to generate *.bbl files and (runs bibtex to generate *.bbl files and
include them in the source file using include them in the source file using
@ -235,6 +236,7 @@ bbl=0
latexdiff_flatten=0 latexdiff_flatten=0
latex=0 latex=0
xelatex=0 xelatex=0
lualatex=0
BIBTEX_EXEC=bibtex BIBTEX_EXEC=bibtex
while test $# -ne 0; do while test $# -ne 0; do
@ -300,6 +302,9 @@ while test $# -ne 0; do
"--xelatex") "--xelatex")
xelatex=1 xelatex=1
;; ;;
"--lualatex")
lualatex=1
;;
"--biber") "--biber")
BIBTEX_EXEC=biber BIBTEX_EXEC=biber
bbl=1 bbl=1
@ -465,6 +470,8 @@ if test $latex = 1; then
LATEX_EXEC=latex LATEX_EXEC=latex
elif test $xelatex = 1; then elif test $xelatex = 1; then
LATEX_EXEC=xelatex LATEX_EXEC=xelatex
elif test $lualatex = 1; then
LATEX_EXEC=lualatex
else else
LATEX_EXEC=pdflatex LATEX_EXEC=pdflatex
fi fi

Loading…
Cancel
Save