ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \nonknuthmode and \environment
@ 2009-06-08 20:06 Peter Münster
  2009-06-08 22:20 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Münster @ 2009-06-08 20:06 UTC (permalink / raw)
  To: ConTeXt list

Hello,

Strange things happen, if \nonknuthmode is in an environment.
Here is my environment file:

\startenvironment e-test
\nonknuthmode
\stopenvironment

And here the test file with error "Missing $ inserted":

\environment e-test
\starttext
X_X
\stoptext

If I add \nonknuthmode *after* "\environment e-test", the same error will
occur.

If I add \nonknuthmode *before* "\environment e-test", there won't be such
problem.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

___________________________________________________________________________________
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] 2+ messages in thread

* Re: \nonknuthmode and \environment
  2009-06-08 20:06 \nonknuthmode and \environment Peter Münster
@ 2009-06-08 22:20 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2009-06-08 22:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Peter Münster wrote:
> Hello,
> 
> Strange things happen, if \nonknuthmode is in an environment.
> Here is my environment file:
> 
> \startenvironment e-test
> \nonknuthmode
> \stopenvironment
> 
> And here the test file with error "Missing $ inserted":
> 
> \environment e-test
> \starttext
> X_X
> \stoptext
> 
> If I add \nonknuthmode *after* "\environment e-test", the same error will
> occur.
> 
> If I add \nonknuthmode *before* "\environment e-test", there won't be such
> problem.

has to do with restoring catcodes (modules are loaded under a different 
catcode regime)

i'll fix it (tricky fix, since it might have side effects)

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2009-06-08 22:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-08 20:06 \nonknuthmode and \environment Peter Münster
2009-06-08 22:20 ` Hans Hagen

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