ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* presentation with list of topics and subjects
@ 2000-06-02  9:35 Johannes Hüsing
  2000-06-02 23:04 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Hüsing @ 2000-06-02  9:35 UTC (permalink / raw)


Dear fellow ConTeXtuals,

I have copied most of the definitions in the s-pre-01 module to a local
file to toy around with it. What I am trying to achieve is to get a list
of Topics as well a list of Subjects within the local topic on the right
margin. 

First I tried to have a \placelist[subject][alternative=none,criterium=local,
command=\SubjectLine] where \SubjectLine was defined along similar lines as
\TopicLine. This generates a list of subjects, but only on the page where
a new topic starts.

Now I switched to

\def\NewSubjectList%
  {\setbox\SubjectList\vbox{%
        \placelist
          [Subject]
          [alternative=none,
            criterium=local,
            command=\SubjectLine]
            }}

put \NewSubjectList in the after description of \setuphead[Topic],

and rewrote the entry of above to \hbox{\copy\SubjectList}. This works
for now, yet as the list is now stored in a box register, it is treated
as a (black, for that matter) box, so I cannot modify the color of a 
Subject line that belongs to the active subject (for instance).

Is there anything in that direction already provided and more elegant than
this low-level TeX wading?

Other question:

How does the \presentationstep thing work? The following generates a
single pdf page with no elementwise progressing:

\usemodule[pre-general]
\autopresentationsteptrue
\language[de]
\setupoutput[pdftex]
\starttext
\startitemize
\item Bis er
 \presentationstep
\item St"uck 
 \presentationstep
\item f"ur St"uck
 \presentationstep
\item ihren Blicken entschwand.
\stoptext

at least on my machine (I compiled the latest stable ConTeXt version at
Easter).

Thanks

Johannes

Tht 
i  tÖ b


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: presentation with list of topics and subjects
  2000-06-02  9:35 presentation with list of topics and subjects Johannes Hüsing
@ 2000-06-02 23:04 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2000-06-02 23:04 UTC (permalink / raw)
  Cc: ntg-context

At 11:35 AM 6/2/2000 +0200, Johannes Hüsing wrote:

>I have copied most of the definitions in the s-pre-01 module to a local
>file to toy around with it. What I am trying to achieve is to get a list
>of Topics as well a list of Subjects within the local topic on the right
>margin. 

lists are always local to the level, unless the 'criterium' is set to
'previous' ; in your case, saving the list in a box is a good solution 

what you want is a level n list with level n+1 expanded for the current n;
it can be done with tricky macros [assigning something to command] but I
will look into a possibility to implement it as option.  

>Now I switched to
>
>\def\NewSubjectList%
>  {\setbox\SubjectList\vbox{%

You're in vmode, so no % needed after { ; Also not needed after \macronames
and so. More readable -) 

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-06-02 23:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-02  9:35 presentation with list of topics and subjects Johannes Hüsing
2000-06-02 23:04 ` Hans Hagen

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).