<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Hans,<br>
<br>
I succeed to do what I want thanks to you (once more ;) ) !<br>
<br>
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 ?)<br>
<br>
Renaud<br>
<br>
Hans Hagen a &eacute;crit&nbsp;:<br>
<blockquote cite="mid453886C8.3070607@wxs.nl" type="cite">
  <pre wrap=""><!---->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
  </pre>
</blockquote>
<br>
</body>
</html>