Open main menu

Changes

782 bytes added ,  13:27, 9 August 2020
m
Text replacement - "</cmd>" to "}}"
'''MikTeX 2.5/2.6'''
Each application now has it's its own configuration file. To enable <code>write18</code> run
initexmf --edit-config-file=miktex\config\pdftex.ini
or (if you have MikTeX 2.5 or a version of ConTeXt from 2006)
and put
EnableWrite18=t
into it. An alternative is to se set the environment variable <code>MIKTEX_ENABLEWRITE18=t</code>. === Windows/Linux/Mac - TexLive === '''TexLive 2008''' Open the file 'path to TexLive'/texmf/web2c/texmf.cnf and search in the file for the following passage: % Enable system commands via \write18{...}? Obviously insecure, despite % being so useful. shell_escape = fchange here the option from false to true so that the last line above looks like shell_escape = tAfter that you just have to recompile your formats. That is done by texexec --make --allor/and texexec --make --all cont-xxwhere xx stands for your needed countrycode.Additionally if you're using MK IV already you have to do the following steps afterwards to get a running environment: luatools --generate context --make --all context --make --all cont-xxafter that write18 sould be enabled and you sould be able to use it.
=== Linux/Mac ===
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
== See also ==
* [[executesystemcommandExecutesystemcommand]]
[[Category:Installation]]