From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55997 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: DIY toc (or similar list) Date: Sun, 7 Feb 2010 23:55:54 +0100 Message-ID: <29E45C2A-A970-4BBB-BEAF-E26CF7AC5F44@uni-bonn.de> References: <4D609C38-2C3E-4086-A65A-047F3E14B1F8@uni-bonn.de> <4B6F3BC9.1070404@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265583391 20817 80.91.229.12 (7 Feb 2010 22:56:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2010 22:56:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 07 23:56:25 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 1NeG3E-0001Xl-U3 for gctc-ntg-context-518@m.gmane.org; Sun, 07 Feb 2010 23:56:24 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E7BDBC9CAB; Sun, 7 Feb 2010 23:57:52 +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 4Hcer8L2RCNO; Sun, 7 Feb 2010 23:57:49 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A7D3EC9BBC; Sun, 7 Feb 2010 23:57:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 97E69C9BBC for ; Sun, 7 Feb 2010 23:57:44 +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 lTIPC3yqtbXd for ; Sun, 7 Feb 2010 23:57:41 +0100 (CET) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by balder.ntg.nl (Postfix) with ESMTP id B42ADC9BB5 for ; Sun, 7 Feb 2010 23:57:40 +0100 (CET) Original-Received: from [87.178.84.16] (account tschmit1@uni-bonn.de HELO [192.168.0.2]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.2.12) with ESMTPA id 32271449 for ntg-context@ntg.nl; Sun, 07 Feb 2010 23:56:10 +0100 In-Reply-To: <4B6F3BC9.1070404@googlemail.com> X-Mailer: Apple Mail (2.1077) 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:55997 Archived-At: On Feb 7, 2010, at 11:16 PM, Wolfgang Schuster wrote: > 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 Wolfgang, thanks a lot! I could adapt your code so it does what I want! Here's what I have now, I'm sure I can run with that for the presentation stuff. Thanks a lot, and best wishes! Thomas \definelist[MyTopics][criterium=all] \define[3]\FancyEntry {\doifelse{#1}{\MyMark} % {\color[blue]{#1}}% fancy layout {\color[red]{#1}}% normal layout \par} \setuplist[MyTopics] [style=\tfxx, pagenumber=no, alternative=command, command=\FancyEntry] \def\Topic#1{% \def\MyMark{#1}% \writetolist[MyTopics]{#1}{}% \completelist[MyTopics]% } \starttext \Topic{First} Hello 1 \page \Topic{Second} Hello 2 \page \Topic{Third} Hello 3 \page \Topic{Fourth} Hello 4 \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________