Hi,
I am writing a LaTeX package and it invokes external Python code to do
some heavy preprocessing. I have not learned TeX programming language
enough yet to do everything in TeX. So, when the user of my package
doesn't invoke pdflatex with the -shell-escape flag, I would like print
a helpful error message telling them so.
Anybody has any idea how that can be done. Thank you.
Annada
Anybody has any idea how that can be done. Thank you.
Annada Behera <segfault@tilde.green> wrote or quoted:
Anybody has any idea how that can be done. Thank you.
Lately, the newer versions of "shellesc" (like since 2020?)
are said to define "ShellEscapeStatus." So, you could totally
do something like this:
\usepackage{shellesc}
\ifnum\ShellEscapeStatus=1 \else
\PackageError{mypackage}{use shell escape}{or else}
\fi
But since I'm rocking an older version, I can't check this out
myself!
But since I'm rocking an older version, I can't check this out
myself!
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 481 |
Nodes: | 16 (2 / 14) |
Uptime: | 30:08:46 |
Calls: | 9,544 |
Calls today: | 4 |
Files: | 13,656 |
Messages: | 6,140,868 |