From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55996 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: DIY toc (or similar list) Date: Sun, 07 Feb 2010 23:16:41 +0100 Message-ID: <4B6F3BC9.1070404@googlemail.com> References: <4D609C38-2C3E-4086-A65A-047F3E14B1F8@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265581028 14830 80.91.229.12 (7 Feb 2010 22:17:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2010 22:17:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 07 23:17:05 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NeFRB-0004Cm-OV for gctc-ntg-context-518@m.gmane.org; Sun, 07 Feb 2010 23:17:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7F050C9CAA; Sun, 7 Feb 2010 23:18:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id fgErvqFLdgRB; Sun, 7 Feb 2010 23:18:27 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EA108C9C9F; Sun, 7 Feb 2010 23:18:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7327EC9C9F for ; Sun, 7 Feb 2010 23:18:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id j2nyCtHcnIuf for ; Sun, 7 Feb 2010 23:18:15 +0100 (CET) Original-Received: from mail-bw0-f228.google.com (mail-bw0-f228.google.com [209.85.218.228]) by balder.ntg.nl (Postfix) with ESMTP id EAEB2C9C9A for ; Sun, 7 Feb 2010 23:18:14 +0100 (CET) Original-Received: by bwz28 with SMTP id 28so3158350bwz.14 for ; Sun, 07 Feb 2010 14:16:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=vZ9zdMDXFaDu/68ADiKbsNV1zKN4TaU4ceGnznDahAE=; b=AfH7REsxZkO5P/mtWfiROiwqbf9cjPx6YUO9TehhxgmhjiIKY39ETJrYXy2v4cXHF0 wlmWUpAp/djrGRkU5zMTGof+tvz95tQIp8oGNp/Kfcqrj55GC8o0yRtnAYt+kFnQFlrj 6H/G3dXM8EAT6v7rJMgrqYK+/+pVUV9WHQOSI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=DuYasS/dx+7jyHkUOM7rrCNl4I4GW2z/Ma89uMMAWr+jVcIiowQTe7mWZr+1z1KIet YXmhe4vCrICzMbfwmfXl2uYx4rOE9L/TxfYFL/hoH1qurM8GE9HzqMPOJrIQV89oKa3I A9hangy7BS08n7c3DBTCPEbGgJOlGV0/+bCGI= Original-Received: by 10.204.36.70 with SMTP id s6mr2708776bkd.22.1265581003916; Sun, 07 Feb 2010 14:16:43 -0800 (PST) Original-Received: from ?192.168.2.23? (p5B29709B.dip.t-dialin.net [91.41.112.155]) by mx.google.com with ESMTPS id 13sm1634544bwz.6.2010.02.07.14.16.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 07 Feb 2010 14:16:42 -0800 (PST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 In-Reply-To: <4D609C38-2C3E-4086-A65A-047F3E14B1F8@uni-bonn.de> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:55996 Archived-At: 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 > > else > > 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 ___________________________________________________________________________________