| 1 | #!/bin/sh |
| 2 | # $Id: xetex-unsafe.sh 61101 2021-11-20 23:01:11Z karl $ |
| 3 | # Public domain. Originally written by Karl Berry, 2021. |
| 4 | # Run Xe(La)TeX unsafely, for pstricks/transparency. See man page for more. |
| 5 | |
| 6 | if test "x$1" = x--help; then |
| 7 | cat <<END_USAGE |
| 8 | Usage: $0 [XETEX-ARGUMENT]... |
| 9 | |
| 10 | Run Xe(La)TeX unsafely, that is, using dvipdfmx-unsafe.cfg. All |
| 11 | command-line arguments, except --help and --version, are passed as-is to |
| 12 | Xe(La)TeX. |
| 13 | |
| 14 | As of TeX Live 2022, doing this is needed only when running XeTeX on |
| 15 | documents using PSTricks features which require transparency. We |
| 16 | recommend using Lua(La)TeX with PSTricks instead of XeTeX in this case. |
| 17 | |
| 18 | At all costs, avoid using this, or any, unsafe invocation with documents |
| 19 | off the net or that are otherwise untrusted in any way. |
| 20 | |
| 21 | For more details on this, please see the xetex-unsafe(1) man page, |
| 22 | or "texdoc xetex-unsafe". |
| 23 | |
| 24 | For more about XeTeX: https://tug.org/xetex |
| 25 | For more about PSTricks: https://tug.org/PSTricks |
| 26 | Email for xe(la)tex-unsafe specifically: https://lists.tug.org/dvipdfmx |
| 27 | END_USAGE |
| 28 | echo '$Id: xetex-unsafe.sh 61101 2021-11-20 23:01:11Z karl $' |
| 29 | exit 0 |
| 30 | |
| 31 | elif test "x$1" = x--version; then |
| 32 | echo '$Id: xetex-unsafe.sh 61101 2021-11-20 23:01:11Z karl $' |
| 33 | exit 0 |
| 34 | fi |
| 35 | |
| 36 | cmd=`echo "$0" | sed s/-unsafe//` |
| 37 | exec "$cmd" -output-driver="xdvipdfmx -i dvipdfmx-unsafe.cfg -q -E" "$@" |