* Using catcode table in MkII
@ 2010-05-26 22:59 Aditya Mahajan
2010-05-27 4:32 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2010-05-26 22:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
How do you use catcodetables in MkII. The following works fine in MkIV
\unprotect
\newcatcodetable\vimcatcodes
\startcatcodetable \vimcatcodes
\catcode`\^^I = \@@active
\catcode`\^^M = \@@active
\catcode`\^^L = \@@active
\catcode`\ = 12
\catcode`\^^Z = \@@ignore
\stopcatcodetable
\protect
\starttext
\pushcatcodetable\vimcatcodes
hello
\popcatcodetable
\stoptext
but gives
! Missing $ inserted.
<inserted text>
$
<to be read again>
\vimcatcodes
l.14 \pushcatcodetable\vimcatcodes
in MkII (both pdftex and xetex). What am I missing?
Aditya
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using catcode table in MkII
2010-05-26 22:59 Using catcode table in MkII Aditya Mahajan
@ 2010-05-27 4:32 ` Wolfgang Schuster
2010-05-27 5:11 ` Aditya Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2010-05-27 4:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 27.05.10 00:59, schrieb Aditya Mahajan:
> Hi,
>
> How do you use catcodetables in MkII. The following works fine in MkIV
>
> \unprotect
> \newcatcodetable\vimcatcodes
>
> \startcatcodetable \vimcatcodes
> \catcode`\^^I = \@@active
> \catcode`\^^M = \@@active
> \catcode`\^^L = \@@active
> \catcode`\ = 12
> \catcode`\^^Z = \@@ignore
> \stopcatcodetable
> \protect
>
> \starttext
> \pushcatcodetable\vimcatcodes
> hello
> \popcatcodetable
> \stoptext
>
>
> but gives
>
> ! Missing $ inserted.
> <inserted text>
> $
> <to be read again>
> \vimcatcodes
> l.14 \pushcatcodetable\vimcatcodes
>
>
> in MkII (both pdftex and xetex). What am I missing?
You need a entry for the backslash.
\newcatcodetable\vimcatcodes
\startcatcodetable \vimcatcodes
\catcode`\^^I = 13
\catcode`\^^M = 13
\catcode`\^^L = 13
\catcode`\ = 10
\catcode`\^^Z = 9
\catcode`\\ = 0
\stopcatcodetable
\starttext
\pushcatcodetable \setcatcodetable\vimcatcodes
hello
\popcatcodetable
\stoptext
Wolfgang
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using catcode table in MkII
2010-05-27 4:32 ` Wolfgang Schuster
@ 2010-05-27 5:11 ` Aditya Mahajan
0 siblings, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2010-05-27 5:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Thu, 27 May 2010 00:32:28 -0400, ntg-context-bounces@ntg.nl wrote:
> Am 27.05.10 00:59, schrieb Aditya Mahajan:
> > Hi,
> >
> > How do you use catcodetables in MkII. The following works fine in MkIV
> >
> > \unprotect
> > \newcatcodetable\vimcatcodes
> >
> > \startcatcodetable \vimcatcodes
> > \catcode`\^^I = \@@active
> > \catcode`\^^M = \@@active
> > \catcode`\^^L = \@@active
> > \catcode`\ = 12
> > \catcode`\^^Z = \@@ignore
> > \stopcatcodetable
> > \protect
> >
> > \starttext
> > \pushcatcodetable\vimcatcodes
> > hello
> > \popcatcodetable
> > \stoptext
> >
> >
> > but gives
> >
> > ! Missing $ inserted.
> > <inserted text>
> > $
> > <to be read again>
> > \vimcatcodes
> > l.14 \pushcatcodetable\vimcatcodes
> >
> >
> > in MkII (both pdftex and xetex). What am I missing?
>
> You need a entry for the backslash.
Thanks.
Aditya
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-27 5:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-26 22:59 Using catcode table in MkII Aditya Mahajan
2010-05-27 4:32 ` Wolfgang Schuster
2010-05-27 5:11 ` Aditya Mahajan
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).