call latex from within $tmdir so side-effect files will be rm'd

master
Marc Hiatt 2 years ago
parent 7c9a600046
commit 9d6e2991a8
  1. 4
      worddiv

@ -57,11 +57,11 @@ until test "$expression" = "q" ; do
sed "s/expression/$expression/g" > $tmpdir/$secondary_filename
# american
babel_output=$(latex -draftmode $tmpdir/$expression_filename |
babel_output=$(cd $tmpdir && latex -draftmode $tmpdir/$expression_filename |
grep "\\[\\] .OT1" | sed -E "s/.* ([-a-z]*)$/\1/")
# british
babel_output_secondary=$(latex -draftmode $tmpdir/$secondary_filename |
babel_output_secondary=$(cd $tmpdir && latex -draftmode $tmpdir/$secondary_filename |
grep "\\[\\] .OT1" | sed -E "s/.* ([-a-z]*)$/\1/")
## tex+showhyphens

Loading…
Cancel
Save