summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMasamichi Hosoda <trueroad@trueroad.jp>2016-03-30 20:40:15 +0900
committerMasamichi Hosoda <trueroad@trueroad.jp>2016-04-07 21:28:01 +0900
commitc833e91ac8b976b7bc0f4fcb4a903c728310b369 (patch)
treee47b3c9a1772c7088cfb82f30f6aded2b5079e02 /scripts
parent870b14c75f3156af74559b9cbc8970407c60583d (diff)
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.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/xetex-with-options.sh9
1 files changed, 9 insertions, 0 deletions
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' "$@"