ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* toc for interactive documents
@ 2001-02-22 19:29 Christoph Dreyer
  2001-02-23  9:56 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Dreyer @ 2001-02-22 19:29 UTC (permalink / raw)


Hi!

In my interactive document the table of contents should look like
this:

chapter1 section1 section2 ...
chapter2 section1 section2 ...
.
.
.

(chapters layed out vertically and sections horizontally)

How can I do this?

Christoph


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

* Re: toc for interactive documents
  2001-02-22 19:29 toc for interactive documents Christoph Dreyer
@ 2001-02-23  9:56 ` Hans Hagen
  2001-02-23 17:16   ` Christoph Dreyer
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2001-02-23  9:56 UTC (permalink / raw)
  Cc: ntg-context

At 08:29 PM 2/22/01 +0100, Christoph Dreyer wrote:
>Hi!
>
>In my interactive document the table of contents should look like
>this:
>
>chapter1 section1 section2 ...
>chapter2 section1 section2 ...

\starttext

\setupcolors[state=start] \setupinteraction[state=start]

\def\ListCommand#1#2#3{\hbox{#2}}

\setuplist
  [section,chapter]
  [interaction=all,
   command=\ListCommand,
   alternative=horizontal,
   between=,
   after=\hskip1em]

\setuplist [chapter] [before=\blank\noindent]
\setuplist [section] [before=\noindent]

\placelist[chapter,section]

\chapter{test}\section{oeps}\section{oeps}\section{oeps}\section{oeps}
\chapter{test}\section{oeps}\section{oeps}\section{oeps}\section{oeps}
\chapter{test}\section{oeps}\section{oeps}\section{oeps}\section{oeps}

\stoptext

-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* Re: toc for interactive documents
  2001-02-23  9:56 ` Hans Hagen
@ 2001-02-23 17:16   ` Christoph Dreyer
  0 siblings, 0 replies; 3+ messages in thread
From: Christoph Dreyer @ 2001-02-23 17:16 UTC (permalink / raw)
  Cc: ntg-context

Hi!

On Fri, Feb 23, 2001, Hans Hagen wrote:

> >In my interactive document the table of contents should look like
> >this:

> \placelist[chapter,section]

Works great! Thanks.

Christoph


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

end of thread, other threads:[~2001-02-23 17:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-22 19:29 toc for interactive documents Christoph Dreyer
2001-02-23  9:56 ` Hans Hagen
2001-02-23 17:16   ` Christoph Dreyer

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