ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: DIY toc (or similar list)
Date: Sun, 07 Feb 2010 23:16:41 +0100	[thread overview]
Message-ID: <4B6F3BC9.1070404@googlemail.com> (raw)
In-Reply-To: <4D609C38-2C3E-4086-A65A-047F3E14B1F8@uni-bonn.de>

Am 07.02.10 22:58, schrieb Thomas A. Schmitz:
> Hi experts,
>
> I'm thinking about a new presentation style and need some general advice from the TeXperts. I would like to have a list of topics on some area of the slide (similar to s-pre-19.tex). However, if at all possible, I would like it to be a bit fancier. Let's say I want the list of topics typeset in gray frames in a black font, but the current topic in a blue frame with a white font. Would this be possible with something like \definelist? Is there any notion of "currentlistitem" or "currentmarking" in such lists? Or, even better: would it be possible to have access to the single members of a list and maybe compare them to a current value and then typeset them accordingly? Something like this pseudocode:
>
> for member in topiclist do
>    if member == currentvalue
>       <some fancy framing and metapost stuff with member>
>    else
>       <less fancy but still nice-looking metapost stuff>
>    end
> end
>
> Or am I trying to reinvent the wheel here? I would be happy to hear any ideas on that.
>    
you can do something like this (not sure if it works):

\setuplist[...][alternative=command,command=\MyFancyListentry]

\define[3]\MyFancyListentry
   {\doifelse{#2}{\fullstructureheadtitle} % is this the correct value?
      {...}% fancy layout
      {...}% normal layout
    ...}

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2010-02-07 22:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-07 21:58 Thomas A. Schmitz
2010-02-07 22:16 ` Wolfgang Schuster [this message]
2010-02-07 22:55   ` Thomas A. Schmitz
2010-02-07 23:12     ` Wolfgang Schuster

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=4B6F3BC9.1070404@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).