[NTG-context] Presentation help

Adam Duck duck at informatik.uni-frankfurt.de
Fri Aug 18 20:06:05 CEST 2006


Yes, it turns out, this was somehow my fault.  I had spaces in my
section titles, and somehow this doesn't turn out right.  Anyways,
with this command:

#v+
\def\mycontext#1{
\edef\stringa{\ignorespaces\fetchmark[section][current]}
\edef\stringb{\ignorespaces#1}
\strut\ifx\stringa\stringb
\color[red]{#1}
\else
#1
\fi}
#v-

I get it right even with spaces in them.  But this doesn't work if I
have an exclamation mark in a section title -- I don't say it's a good
idea to have an exclamation mark in the section title, but...  Is
there any way to solve this?

cu, Adam.


More information about the ntg-context mailing list