summaryrefslogtreecommitdiff
path: root/Master/bin/win32/xelatex-unsafe.bat
diff options
context:
space:
mode:
Diffstat (limited to 'Master/bin/win32/xelatex-unsafe.bat')
-rw-r--r--Master/bin/win32/xelatex-unsafe.bat29
1 files changed, 29 insertions, 0 deletions
diff --git a/Master/bin/win32/xelatex-unsafe.bat b/Master/bin/win32/xelatex-unsafe.bat
new file mode 100644
index 00000000000..9b902e6ccd6
--- /dev/null
+++ b/Master/bin/win32/xelatex-unsafe.bat
@@ -0,0 +1,29 @@
+@echo off
+rem
+rem Public domain. Originally written by A. Kakuto, 2021.
+rem Run XeLaTeX unsafely, for pstricks/transparency. See man page for more.
+if x%1 == x--help (
+echo Usage: xelatex-unsafe [XETEX-ARGUMENT]...
+echo Run XeLaTeX unsafely, that is, using dvipdfmx-unsafe.cfg. All
+echo command-line arguments, except --help and --version, are passed as-is to
+echo XeLaTeX.
+echo.
+echo As of TeX Live 2022, doing this is needed only when running XeLaTeX on
+echo documents using PSTricks features which require transparency. We
+echo recommend using LuaLaTeX with PSTricks instead of XeLaTeX 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 xelatex-unsafe specifically: https://lists.tug.org/dvipdfmx
+exit 0
+) else if x%1 == x--version (
+echo 0.001
+exit 0
+)
+xelatex -output-driver="xdvipdfmx -i dvipdfmx-unsafe.cfg -q -E" %*