From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31458 Path: news.gmane.org!not-for-mail From: Renaud AUBIN Newsgroups: gmane.comp.tex.context Subject: Re: list ? Date: Fri, 20 Oct 2006 23:36:06 +0200 Message-ID: <45394146.2050801@nibua-r.org> References: <4537F008.2000608@nibua-r.org> <453886C8.3070607@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2016956705==" X-Trace: sea.gmane.org 1161380227 4232 80.91.229.2 (20 Oct 2006 21:37:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Oct 2006 21:37:07 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 20 23:37:02 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gb233-0004q0-T6 for gctc-ntg-context-518@m.gmane.org; Fri, 20 Oct 2006 23:37:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 17B341FEAE; Fri, 20 Oct 2006 23:37:00 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17791-03; Fri, 20 Oct 2006 23:36:47 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 358471FE8C; Fri, 20 Oct 2006 23:36:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3100D1FEB4 for ; Fri, 20 Oct 2006 23:36:45 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17704-05 for ; Fri, 20 Oct 2006 23:36:39 +0200 (CEST) Original-Received: from 27.mail-out.ovh.net (27.mail-out.ovh.net [213.186.38.137]) by ronja.ntg.nl (Postfix) with SMTP id D578E1FD9A for ; Fri, 20 Oct 2006 23:36:38 +0200 (CEST) Original-Received: (qmail 12760 invoked by uid 503); 20 Oct 2006 21:38:15 -0000 Original-Received: from b6.ovh.net (HELO mail173.ha.ovh.net) (213.186.33.56) by 27.mail-out.ovh.net with SMTP; 20 Oct 2006 21:38:15 -0000 Original-Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 20 Oct 2006 21:36:17 -0000 Original-Received: from d83-179-99-76.cust.tele2.fr (HELO ?192.168.78.10?) (aubin@nibua-r.org@83.179.99.76) by ns0.ovh.net with SMTP; 20 Oct 2006 21:36:13 -0000 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: fr, en Original-To: mailing list for ConTeXt users In-Reply-To: <453886C8.3070607@wxs.nl> X-Ovh-Remote: 83.179.99.76 (d83-179-99-76.cust.tele2.fr) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.5/N X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31458 Archived-At: This is a multi-part message in MIME format. --===============2016956705== Content-Type: multipart/alternative; boundary="------------050200060308070002040501" This is a multi-part message in MIME format. --------------050200060308070002040501 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Hans, I succeed to do what I want thanks to you (once more ;) ) ! I'll put the resulting presentation online at least at the end of the next week (u3d + layer + custom pre-original + animation with JS and fieldstack + program runs including mplayer runs with linux + ... robotics ?) Renaud Hans Hagen a =E9crit : >maybe future version of context will provide more control; for the momen= t, stick to: =20 > > >\definehead [Topic] [chapter] >\definehead [Subject] [section] > >\newcounter\MyTopicCounter > >\startsetups MyTopicList > \blank > \doglobal\increment\MyTopicCounter > \doglobal\newcounter\MySubjectCounter > \placelist[Topic][criterium=3Dtext,after=3D\setups{MySubjectList}] >\stopsetups >\startsetups MySubjectList > \doglobal\increment\MySubjectCounter > \doifelse{\MyTopicCounter}{\MySubjectCounter} { > \placelist[Subject] > } { > % whatever > } >\stopsetups > >\starttext > >\Topic{first} \Subject{one} test \Subject{two} test \setups[MyTopicL= ist] \page >\Topic{second} \Subject{alpha} test \Subject{beta} test \setups[MyTopicL= ist] \page > >\stoptext > =20 > --------------050200060308070002040501 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Hans,

I succeed to do what I want thanks to you (once more ;) ) !

I'll put the resulting presentation online at least at the end of the next week (u3d + layer + custom pre-original + animation with JS and fieldstack + program runs including mplayer runs with linux + ... robotics ?)

Renaud

Hans Hagen a écrit :
maybe future version of context will provide more control; for the moment, stick to:  


\definehead [Topic]   [chapter]
\definehead [Subject] [section]

\newcounter\MyTopicCounter

\startsetups MyTopicList
    \blank
    \doglobal\increment\MyTopicCounter
    \doglobal\newcounter\MySubjectCounter
    \placelist[Topic][criterium=text,after=\setups{MySubjectList}]
\stopsetups
\startsetups MySubjectList
    \doglobal\increment\MySubjectCounter
    \doifelse{\MyTopicCounter}{\MySubjectCounter} {
        \placelist[Subject]
    } {
        % whatever
    }
\stopsetups

\starttext

\Topic{first}  \Subject{one}   test \Subject{two}  test \setups[MyTopicList] \page
\Topic{second} \Subject{alpha} test \Subject{beta} test \setups[MyTopicList] \page

\stoptext
  

--------------050200060308070002040501-- --===============2016956705== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============2016956705==--