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.
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to