Changes

Jump to navigation Jump to search
8 bytes added ,  13:23, 9 August 2020
m
Text replacement - "<cmd>" to "{{cmd|"
Sometimes while writings a module, one needs to check if write18 is enabled or not. There are different ways in which this can be done.
* A new primitive in pdftex 1.30: <{{cmd>|pdfshellescape</cmd> is a read-only integer that is 1 if <{{cmd>|write18</cmd> is enabled, 0 otherwise.* ConTeXt defines <{{cmd>|systemcommandmode</cmd> that is 2 if <{{cmd>|write18</cmd> is enabled, 1 otherwise.* A primitive <{{cmd>|ifeof18</cmd> that is <code>true</code> if <{{cmd>|write18</cmd> is disabled, <code>false</code> otherwise.
<{{cmd>|ifeof18</cmd> works with both pdfTeX and XeTeX, while <{{cmd>|pdfshellescape</cmd> only works with pdfTeX.
Hans response on the mailing list

Navigation menu