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.
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)
--- /dev/null
+#!/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' "$@"