Changes

Jump to navigation Jump to search
m
Most options in <tt>texmf.cnf</tt> of modern TeX distributions also work with ConTeXt.
 
== Environment Variables ==
 
By default, ConTeXt creates a directory named <tt>luatex-cache</tt> in the user's home directory. One way to change the cache location includes:
 
export TEXMFCACHE=/tmp
mtxrun --generate
context filename.tex
 
Another way is to run the <tt>context</tt> executable indirectly via <tt>mtxrun</tt>, as follows:
 
export TEXMFCACHE=/tmp
mtxrun --autogenerate --script mtx-context filename.tex
 
Running ConTeXt in either of these ways will create <tt>luatex-cache</tt> inside the <tt>/tmp</tt> directory, rather than the user's home directory.
== Security Concerns ==
ConTeXt requires enabling the `write18` function to run [[MetaPost]] and other tools. This implies that malicious TeX code can run any program with user rights. The function is *''disabled* '' by default. This can be enabled by changing the setting inside <tt>texmf.cnf</tt>:
shell_escape = t
# /opt/context/texmf/web2c/texmf.cnf
Variables set in a particular file are *''not* '' overwritten by files that are read later.
The first configuration file listed is useful for system dependent configuration. On
419

edits

Navigation menu