Browse Source

added a BibLaTeX-Biber option '--biber' in analogy to the bibtex option

master
Philipp Leufke 13 years ago
parent
commit
ce3bfc31f7
  1. 17
      git-latexdiff

17
git-latexdiff

@ -46,6 +46,8 @@ Options:
--no-view don't display the resulting PDF file --no-view don't display the resulting PDF file
--bibtex, -b run bibtex as well as latex --bibtex, -b run bibtex as well as latex
(pdflatex,bibtex,pdflatex,pdflatex) (pdflatex,bibtex,pdflatex,pdflatex)
--biber run BibLaTex-Biber as well as latex
(pdflatex,bibtex,pdflatex,pdflatex)
--view view the resulting PDF file --view view the resulting PDF file
(default if -o is not used) (default if -o is not used)
--pdf-viewer <cmd> use <cmd> to view the PDF file (default: \$PDFVIEWER) --pdf-viewer <cmd> use <cmd> to view the PDF file (default: \$PDFVIEWER)
@ -87,6 +89,7 @@ view=maybe
cleanup=1 cleanup=1
verbose=0 verbose=0
bibtex=0 bibtex=0
biber=0
output= output=
initial_dir=$PWD initial_dir=$PWD
@ -120,6 +123,9 @@ while test $# -ne 0; do
"-b"|"--bibtex") "-b"|"--bibtex")
bibtex=1 bibtex=1
;; ;;
"--biber")
biber=1
;;
"--verbose"|"-v") "--verbose"|"-v")
verbose=1 verbose=1
;; ;;
@ -250,9 +256,14 @@ if test -f Makefile ; then
else else
pdflatex --interaction errorstopmode "$mainbase" || compile_error=1 pdflatex --interaction errorstopmode "$mainbase" || compile_error=1
if test "$bibtex" = 1 ; then if test "$bibtex" = 1 ; then
bibtex "$mainbase" || compile_error=1
pdflatex --interaction errorstopmode "$mainbase" || compile_error=1
pdflatex --interaction errorstopmode "$mainbase" || compile_error=1
bibtex "$mainbase" || compile_error=1
pdflatex --interaction errorstopmode "$mainbase" || compile_error=1
pdflatex --interaction errorstopmode "$mainbase" || compile_error=1
fi
if test "$biber" = 1 ; then
biber "$mainbase" || compile_error=1
pdflatex --interaction errorstopmode "$mainbase" || compile_error=1
pdflatex --interaction errorstopmode "$mainbase" || compile_error=1
fi fi
fi fi

Loading…
Cancel
Save