From: Masamichi Hosoda Date: Sun, 23 Oct 2016 12:47:46 +0000 (+0900) Subject: Issue4986: Fix XeLaTex option consistent with XeTeX option X-Git-Url: https://git.donarmstrong.com/?p=lilypond.git;a=commitdiff_plain;h=5a51d882b01ad555ffe7659e7f7a73144ad2fc9d Issue4986: Fix XeLaTex option consistent with XeTeX option In LilyPond, XeTeX uses option `--output-driver='xdvipdfmx -C 0x0010'` but XeLaTeX did not use any options. This commit makes XeLaTeX uses the same option for consistent with XeTeX. --- diff --git a/configure.ac b/configure.ac index 0a753325d1..d341125c21 100644 --- a/configure.ac +++ b/configure.ac @@ -243,6 +243,7 @@ if test "$PDFLATEX" = "xelatex"; then if test "$PDFTEX" = "xetex"; then # For avoiding PDF destination name replacement. PDFTEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xetex-with-options + PDFLATEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xelatex-with-options fi else STEPMAKE_PROGS(PDFTEX, pdfetex pdftex etex, $DOCUMENTATION_REQUIRED) diff --git a/scripts/build/xelatex-with-options.sh b/scripts/build/xelatex-with-options.sh new file mode 100755 index 0000000000..2d17381ee1 --- /dev/null +++ b/scripts/build/xelatex-with-options.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# By the default settings, +# XeTeX (xdvipdfmx) replaces link destination names with integers. +# In this case, the replaced destination names of +# remote PDF cannot be known. In order to avoid replacement, +# we can use commandline option `-C 0x0010' for xdvipdfmx. + +exec xelatex --output-driver='xdvipdfmx -C 0x0010' "$@"