-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
"Hans" == Hans Hagen
writes:
Hans> \defineactivecharacter _ {\mathortext{_}{\_}} text_text Hans> $a^2$ Hi Hans, Thanks, but it is not sufficient. I finally narrowed it down to a \placelist. Here is a very short example: - -------------------------------------------------- \def\MyHead#1#2% {\setupframed[frame=off] \framed[width=\hsize,offset=overlay] {\placesidebyside {\doifmodeelse{*sectionnumber}% {\framed[width=.6\hsize,offset=1em,strut=no,align=right,background=screen,backgroundscreen=0.4] {In this chapter: \blank \placelist [section] [criterium=chapter, style=boldslanted, align=right, interaction=all, symbol=1, width=1em, pagenumber=no, before=, after=]}}% {\framed[width=.6\hsize]{}} % dummy }% {\framed [width=.4\hsize,offset=1em,strut=no,align=left] {{\bsd #1\par\leftskip=0pt plus1fil #2}}}}% } \setuphead [chapter] [command=\MyHead] \defineactivecharacter _ {\mathortext{_}{\_}} \starttext \chapter{Short (flat) listing of Standard C classes} \section{STDC_BASE} \stoptext - -------------------------------------------------- Result: - -------------------------------------------------- (./test.tuo ! Missing $ inserted. <inserted text> $ <to be read again> _ <argument> STDC_ BASE \listtextcommand #1->\begstrut #1 \endstrut \doattributes ...sname #1#2\@EA \endcsname \fi {#4 }\dostopattributes <argument> ...ont \limitatedlistentry {STDC_BASE}} \egroup \ifdim \wd 4=\zero... ... - -------------------------------------------------- I suppose you know the trick to fix this? If you look at test.tuo you will see this line: \listentry{section}{2}{1.1}{STDC_BASE}{2--0-1-1-0-0-0-0--1}{1} That's the culprit, should have been written as STDC\_BASE I assume. - -- 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/ iD8DBQFFyTF/IyuuaiRyjTYRAmTJAKCw50VzN8ppOSeLiuOiLSVUV5luXgCdF8cZ mpyQnVAZfN2ogsUUKaAkiJM= =awTD -----END PGP SIGNATURE-----