Browse Source

Created option --latexdiff-flatten to use this instead of latexpand.

For user not having latexpand installed, "latexdiff --flatten" is still
allowed.
master
Jörg Weber 12 years ago
committed by Matthieu Moy
parent
commit
fdc524bb49
  1. 14
      git-latexdiff

14
git-latexdiff

@ -98,6 +98,7 @@ Options:
-* other options are passed directly to latexdiff
--bbl shortcut to flatten a bbl file of the same name as the project
--latexpand pass options to lastexpand (should be last option specified)
--latexdiff-flatten use --flatten from latexdiff instead of latexpand
EOF
}
@ -152,6 +153,7 @@ latexdiffopt=()
latexpand=()
workingdir=()
bbl=0
latexdiff_flatten=0
while test $# -ne 0; do
case "$1" in
@ -236,6 +238,10 @@ while test $# -ne 0; do
"--bbl")
bbl=1
;;
"--latexdiff-flatten")
latexdiff_flatten=1
flatten=0
;;
"--latexopt")
shift
latexopt=$1
@ -429,6 +435,14 @@ done
mainbase=$(basename "$main" .tex)
maindir=$(dirname "$main")
# Option to use latexdiff --flatten instead of latexpand
# Todo: Ideally dependend on whether latexpand is present or not
# Todo: Include warning if --bbl or other latexpand commands are used.
if test "$latexdiff_flatten" = 1; then
latexdiffopt+=("--flatten")
fi
# Shortcut to include bbl
if test "$bbl" = 1; then
oldbbl=("--expand-bbl old/"$mainbase".bbl")
newbbl=("--expand-bbl new/"$mainbase".bbl")

Loading…
Cancel
Save