[NTG-context] Treating underscore as a normal character

Berend de Boer berend at pobox.com
Tue Feb 6 22:41:02 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi All,

In computer code underscores are used frequently. Until recently sticking

  \catcode`\_=12

somewhere at the top did work, but it has become harder. More stuff
seems to reset this, so I know have to stick it just above \starttext.

But that doesn't help in all cases.

I get this for example:

- --------------------------------------------------
structure       : begin of sectionblock appendices
(./eposix-classes.tuo
! Missing $ inserted.
<inserted text> 
                $
<to be read again> 
                   _
<argument> STDC_
                BASE
\Eclass #1->#1
              
\listtextcommand #1->\begstrut #1
                                 \endstrut 
\doattributes ...sname #1#2\@EA \endcsname \fi {#4
                                                  }\dostopattributes 
...
l.24 ...class {STDC_BASE}}{3--0-1-1-0-0-0-0--5}{6}
- --------------------------------------------------


And when I look at line 24 in eposix-classes.tuo I see:

\listentry{section}{2}{A.1}{Short form of \Eclass {STDC_BASE}}{3--0-1-1-0-0-0-0--5}{6}


Is there a method to fix this to avoid typing \_ all the time? I just
want a global switch that says _ is perfectly ok. Only inside $ it
should be treated as something special.

- -- 
All the best,

Berend de Boer


PS: This email has been digitally signed if you wonder what the strange
characters are that your outdated email client displays.
PGP public key: http://www.pobox.com/~berend/berend-public-key.txt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFFyPXuIyuuaiRyjTYRAs8KAKDU+kx9Jxjn3MCDWxSdfV66qxrhbwCeLBTh
6RHeWoUsWxmx8gynpltwqiA=
=Q54c
-----END PGP SIGNATURE-----



More information about the ntg-context mailing list