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
___________________________________________________________________________________