summaryrefslogtreecommitdiff
path: root/Master/bin/windows/xelatex-unsafe.bat
blob: 9b902e6ccd6a3f0c41195d5552a580727625f245 (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 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" %*