ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Adam Duck <duck@informatik.uni-frankfurt.de>
Subject: Re: Presentation help
Date: Fri, 18 Aug 2006 12:36:04 +0200	[thread overview]
Message-ID: <87slju8h63.fsf@oumu.localdomain> (raw)
In-Reply-To: <44E49DC6.7090104@wxs.nl> (Hans Hagen's message of "Thu, 17 Aug 2006 18:48:06 +0200")

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.

  reply	other threads:[~2006-08-18 10:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-17 15:22 Adam Duck
2006-08-17 16:48 ` Hans Hagen
2006-08-18 10:36   ` Adam Duck [this message]
2006-08-18 18:06     ` Adam Duck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87slju8h63.fsf@oumu.localdomain \
    --to=duck@informatik.uni-frankfurt.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).