[NTG-context] Presentation help
Adam Duck
duck at informatik.uni-frankfurt.de
Fri Aug 18 12:36:04 CEST 2006
Thanks, all works out nicely. So, I have another problem. According
to my friend, every good presentation should highlight the current
section in the table of contents. So I defined this:
#v+
\def\mycontext#1{%
\edef\stringa{\fetchmark[section][current]}
\edef\stringb{#1}
\strut
\ifx\stringa\stringb
\color[red]{#1}
\else
#1
\fi
}
#v-
This works with
\mycontext{a subject}
and even
\mycontext{\fetchmark[section][current]}
but doesn't work with placelist[section] with this setup:
#v+
\setuplist[section][criterium=all,
symbol=none,
numbercommand=$\bullet$,
textcommand=\mycontext,
pagenumber=no,
width=\baselineskip]
#v-
I think it's because textcommand gets more then just the text as
parameter. But there is no deeptextcommand in setuplist.
cu, Adam.
More information about the ntg-context
mailing list