]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/build/xetex-with-options.sh
Issue 4816: Add xdvipdfmx option for PDF destination names
[lilypond.git] / scripts / build / xetex-with-options.sh
diff --git a/scripts/build/xetex-with-options.sh b/scripts/build/xetex-with-options.sh
new file mode 100755 (executable)
index 0000000..f53ba0d
--- /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 xetex --output-driver='xdvipdfmx -C 0x0010' "$@"