From: Masamichi Hosoda Date: Wed, 30 Mar 2016 11:40:15 +0000 (+0900) Subject: Issue 4816: Add xdvipdfmx option for PDF destination names X-Git-Tag: release/2.19.40-1~11^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c833e91ac8b976b7bc0f4fcb4a903c728310b369;hp=870b14c75f3156af74559b9cbc8970407c60583d;p=lilypond.git Issue 4816: Add xdvipdfmx option for PDF destination names 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, this commit adds xdvipdfmx commandline option. --- diff --git a/configure.ac b/configure.ac index a34bbc580e..0a753325d1 100644 --- a/configure.ac +++ b/configure.ac @@ -240,6 +240,10 @@ STEPMAKE_PROGS(BIBTEX, bibtex, $DOCUMENTATION_REQUIRED) STEPMAKE_PROGS(PDFLATEX, xelatex pdflatex, $DOCUMENTATION_REQUIRED) if test "$PDFLATEX" = "xelatex"; then STEPMAKE_PROGS(PDFTEX, xetex, $DOCUMENTATION_REQUIRED) + if test "$PDFTEX" = "xetex"; then + # For avoiding PDF destination name replacement. + PDFTEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xetex-with-options + fi else STEPMAKE_PROGS(PDFTEX, pdfetex pdftex etex, $DOCUMENTATION_REQUIRED) fi diff --git a/scripts/build/xetex-with-options.sh b/scripts/build/xetex-with-options.sh new file mode 100755 index 0000000000..f53ba0d0b8 --- /dev/null +++ b/scripts/build/xetex-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 xetex --output-driver='xdvipdfmx -C 0x0010' "$@"