blob: 931dccf477edbf8f5ca78a23ab71551a67764ba2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
@echo off
rem
rem Public domain. Originally written by A. Kakuto, 2021.
rem Run XeTeX unsafely, for pstricks/transparency. See man page for more.
if x%1 == x--help (
echo Usage: xetex-unsafe [XETEX-ARGUMENT]...
echo Run XeTeX unsafely, that is, using dvipdfmx-unsafe.cfg. All
echo command-line arguments, except --help and --version, are passed as-is to
echo XeTeX.
echo.
echo As of TeX Live 2022, doing this is needed only when running XeTeX on
echo documents using PSTricks features which require transparency. We
echo recommend using LuaTeX with PSTricks instead of XeTeX in this case.
echo.
echo At all costs, avoid using this, or any, unsafe invocation with documents
echo off the net or that are otherwise untrusted in any way.
echo.
echo For more details on this, please see the xetex-unsafe man page,
echo or "texdoc xetex-unsafe".
echo.
echo For more about XeTeX: https://tug.org/xetex
echo For more about PSTricks: https://tug.org/PSTricks
echo Email for xetex-unsafe specifically: https://lists.tug.org/dvipdfmx
exit 0
) else if x%1 == x--version (
echo 0.001
exit 0
)
xetex -output-driver="xdvipdfmx -i dvipdfmx-unsafe.cfg -q -E" %*
|