System commands are disabled
Hi there, I have the following code from ConTeXt wiki. I tried it in http://live.contextgarden.net/ and the output is correct. But when I tried it in the ConTeXt from TeXLive 2007, the metapost graph is not displayed in the final pdf file. Any ideas? --8<---------------cut here---------------start------------->8--- \starttext \startreusableMPgraphic{return} drawarrow (0,0)-- (1EmWidth,0)-- (1EmWidth,-.5ExHeight)-- (.5EmWidth,-.5ExHeight) ; \stopreusableMPgraphic \definesymbol[return][\reuseMPgraphic{return}] \setupcolors[state=start] \def\vcrlf{\symbol[return]\crlf\strut\kern1em\strut\ignorespaces} \setuptyping[option=commands] \starttyping test test test /vcrlf test test \stoptyping \setuptyping[option=color] \installnewpretty r \vcrlf \starttyping test \test{test} %%\ r test test \stoptyping \stoptext --8<---------------cut here---------------end--------------->8--- -- .: Leo :. [ sdl.web AT gmail.com ] .: [ GPG Key: 9283AA3F ] :. Use the most powerful email client -- http://gnus.org/
On Oct 14, 2007, at 7:16 AM, Leo wrote:
Hi there,
I have the following code from ConTeXt wiki. I tried it in http://live.contextgarden.net/ and the output is correct. But when I tried it in the ConTeXt from TeXLive 2007, the metapost graph is not displayed in the final pdf file. Any ideas?
1. Open the file /usr/local/texlive/2007/texmf/web2c/texmf.cnf in the editor of your choice. 2. scroll down to line 441 3. change shell_escape = f to shell_escape = t HTH Thomas
On 2007-10-14 07:04 +0100, Thomas A. Schmitz wrote:
On Oct 14, 2007, at 7:16 AM, Leo wrote:
Hi there,
I have the following code from ConTeXt wiki. I tried it in http://live.contextgarden.net/ and the output is correct. But when I tried it in the ConTeXt from TeXLive 2007, the metapost graph is not displayed in the final pdf file. Any ideas?
1. Open the file /usr/local/texlive/2007/texmf/web2c/texmf.cnf in the editor of your choice.
2. scroll down to line 441
3. change shell_escape = f to shell_escape = t
HTH
Thomas
Do you have any idea why the Metapost Graph does not show in the output pdf file? Best, -- .: Leo :. [ sdl.web AT gmail.com ] .: [ GPG Key: 9283AA3F ] :. Use the most powerful email client -- http://gnus.org/
Do you have any idea why the Metapost Graph does not show in the output pdf file?
Yes, and he's suggesting a solution (TeX Live's configuration doesn't allow shell escapes by default; by changing the value of shell_escape to 't' you allow it and that enables Metapost to be run from within ConTeXt). Have you tried it? Arthur
participants (3)
-
Arthur Reutenauer
-
Leo
-
Thomas A. Schmitz