]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue4986: Fix XeLaTex option consistent with XeTeX option
authorMasamichi Hosoda <trueroad@trueroad.jp>
Sun, 23 Oct 2016 12:47:46 +0000 (21:47 +0900)
committerMasamichi Hosoda <trueroad@trueroad.jp>
Mon, 31 Oct 2016 21:59:29 +0000 (06:59 +0900)
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.

configure.ac
scripts/build/xelatex-with-options.sh [new file with mode: 0755]

index 0a753325d1eec6384b6c0972ae2d8330543bfdb6..d341125c21136c8a202bb43fcd6bd39270c084d6 100644 (file)
@@ -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 (executable)
index 0000000..2d17381
--- /dev/null
@@ -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' "$@"