ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* System commands are disabled
@ 2007-10-14  5:16 Leo
  2007-10-14  6:04 ` Thomas A. Schmitz
  0 siblings, 1 reply; 4+ messages in thread
From: Leo @ 2007-10-14  5:16 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 905 bytes --]

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---

[-- Attachment #2: 4.log --]
[-- Type: text/plain, Size: 6162 bytes --]

This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=cont-en 2007.9.9)  14 OCT 2007 06:06
entering extended mode
 %&-line parsing enabled.
 (/usr/local/packages/texlive/2007/texmf/web2c/natural.tcx)
**4.tex emergencyend
(./4.tex

ConTeXt  ver: 2007.01.12 15:56 MKII  fmt: 2007.9.9  int: english/english

language        : language en is active
system          : cont-new loaded
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
\boislevel=\count210
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/cont-new.mkii))
system          : cont-old loaded
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys.rme loaded
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/user/cont-sys.rme
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/type-exa.tex)
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/type-syn.tex)
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/type-enc.tex)
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/type-siz.tex)
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/type-map.tex)
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/type-spe.tex)
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/type-akb.tex))
bodyfont        : 12pt rm is loaded
language        : patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex
nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3
 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi
:texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec-
>13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec
->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded
specials        : tex,postscript,rokicki loaded
\openout3 = `4.tui'.

system          : 4.top loaded
(./4.top
specials        : loading definition file tpd
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/spec-tpd.tex
specials        : loading definition file fdf
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/spec-fdf.tex
\everygoto=\toks326
\PDFsymbolbox=\box157
\everyPDFxform=\toks327

(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/spec-fdf.mkii))
specials        : fdf loaded
\everyPDFximage=\toks328
\PDFcurrenttransparency=\count211
)
specials        : fdf,tpd loaded
)
\openout0 = `4-mpgraph.mp'.

\openout0 = `mpgraph.mp'.


systems         : system commands are disabled
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/sort-def.tex)
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/sort-lan.tex)
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/pdfr-def.tex)
systems         : begin file 4 at line 1
color           : mpcmyk color space is supported
color           : mpspot color space is supported
color           : system rgb is global activated
\@MPG@@MPG@4-mpgraph=\write7
\openout7 = `4-mpgraph.mp'.

\openout6 = `4-mpgraph.mpb'.

\@sg@\crossreferenceobject=\count212
[MP 4-mpgraph.1]
fonts           : resetting map file list
{/usr/local/packages/texlive/2007/texmf-dist/fonts/map/pdftex/context/original-
empty.map}
fonts           : using map file: texnansi-public-lm
{/usr/local/packages/texlive/2007/texmf-dist/fonts/map/pdftex/context/texnansi-
public-lm.map}
fonts           : using map file: original-base
{/usr/local/packages/texlive/2007/texmf-dist/fonts/map/pdftex/context/original-
base.map}
fonts           : using map file: ec-public-lm
{/usr/local/packages/texlive/2007/texmf-dist/fonts/map/pdftex/context/ec-public
-lm.map}
fonts           : using map file: ec-base
{/usr/local/packages/texlive/2007/texmf-dist/fonts/map/pdftex/context/ec-base.m
ap}
fonts           : using map file: lm-ec
{/usr/local/packages/texlive/2007/texmf-dist/fonts/map/dvips/lm/lm-ec.map}
fonts           : using map file: 8r-base
{/usr/local/packages/texlive/2007/texmf-dist/fonts/map/pdftex/context/8r-base.m
ap}
fonts           : using map file: t5-base
{/usr/local/packages/texlive/2007/texmf-dist/fonts/map/pdftex/context/t5-base.m
ap}
fonts           : using map file: original-ams-base
{/usr/local/packages/texlive/2007/texmf-dist/fonts/map/pdftex/context/original-
ams-base.map}
fonts           : using map file: original-ams-euler
{/usr/local/packages/texlive/2007/texmf-dist/fonts/map/pdftex/context/original-
ams-euler.map}
fonts           : using map file: original-public-lm
{/usr/local/packages/texlive/2007/texmf-dist/fonts/map/pdftex/context/original-
public-lm.map}
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/verb-tex.tex
loading         : Context Support Macros / Pretty TEX Verbatim
) [1.1]
systems         : end file 4 at line 29
[flush and process 4-mpgraph.mp afterwards]
system          : cont-err loaded
(/usr/local/packages/texlive/2007/texmf-dist/tex/context/base/cont-err.tex
systems         : no file 'cont-sys.tex', using 'cont-sys.rme' instead
) ) 
Here is how much of TeX's memory you used:
 1202 strings out of 57405
 20564 string characters out of 529237
 4604673 words of memory out of 5532822
 40977 multiletter control sequences out of 10000+50000
 75203 words of font info for 38 fonts, out of 1200000 for 2000
 192 hyphenation exceptions out of 8191
 47i,18n,51p,240b,773s stack positions out of 5000i,500n,6000p,200000b,5000s
{/usr/local/packages/texlive/2007/texmf-dist/fonts/enc/dvips/lm/lm-ec.enc}</
usr/local/packages/texlive/2007/texmf-dist/fonts/type1/public/lm/lmr12.pfb></us
r/local/packages/texlive/2007/texmf-dist/fonts/type1/public/lm/lmtt12.pfb>
Output written on 4.pdf (1 page, 32357 bytes).
PDF statistics:
 21 PDF objects out of 1000 (max. 8388607)
 13 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 131072)
 7 words of extra memory for PDF output out of 10000 (max. 10000000)


[-- Attachment #3: Type: text/plain, Size: 137 bytes --]


-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .:  [ GPG Key: 9283AA3F ]  :.

       Use the most powerful email client -- http://gnus.org/

[-- Attachment #4: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: System commands are disabled
  2007-10-14  5:16 System commands are disabled Leo
@ 2007-10-14  6:04 ` Thomas A. Schmitz
  2007-10-14  9:10   ` Leo
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas A. Schmitz @ 2007-10-14  6:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: System commands are disabled
  2007-10-14  6:04 ` Thomas A. Schmitz
@ 2007-10-14  9:10   ` Leo
  2007-10-14 16:07     ` Arthur Reutenauer
  0 siblings, 1 reply; 4+ messages in thread
From: Leo @ 2007-10-14  9:10 UTC (permalink / raw)
  To: ntg-context

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/

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: System commands are disabled
  2007-10-14  9:10   ` Leo
@ 2007-10-14 16:07     ` Arthur Reutenauer
  0 siblings, 0 replies; 4+ messages in thread
From: Arthur Reutenauer @ 2007-10-14 16:07 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-14 16:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-14  5:16 System commands are disabled Leo
2007-10-14  6:04 ` Thomas A. Schmitz
2007-10-14  9:10   ` Leo
2007-10-14 16:07     ` Arthur Reutenauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).