From 5a51d882b01ad555ffe7659e7f7a73144ad2fc9d Mon Sep 17 00:00:00 2001 From: Masamichi Hosoda Date: Sun, 23 Oct 2016 21:47:46 +0900 Subject: [PATCH] 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. --- configure.ac | 1 + scripts/build/xelatex-with-options.sh | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100755 scripts/build/xelatex-with-options.sh 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' "$@" -- 2.39.2