From 09d2d1ac5e9b1a3be18a6a08b790b70e7ace312a Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Mon, 18 Apr 2016 10:40:53 +0200 Subject: [PATCH] allow passing --latexpand multiple times The documentation was saying that --latexpand should appear last, which basically wasn't true. We now allow --latexpand OPT1 --latexpand OPT2. --- git-latexdiff | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/git-latexdiff b/git-latexdiff index dc5e451..d5716d7 100755 --- a/git-latexdiff +++ b/git-latexdiff @@ -125,7 +125,8 @@ Options: --ignore-makefile ignore the Makefile, build as though it doesn't exist -* 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 latexpand (should be last option specified) + --latexpand OPT pass option OPT to latexpand. Use multiple times like + --latexpand OPT1 --latexpand OPT2 to pass multiple options. --latexdiff-flatten use --flatten from latexdiff instead of latexpand EOF } @@ -270,7 +271,7 @@ while test $# -ne 0; do ;; "--latexpand") shift - latexpand=$1 + latexpand=("${latexpand[@]}" "$1") ;; "--bbl") bbl=1