ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Daniel Schömer" <daniel.schoemer@gmx.net>
To: ntg-context@ntg.nl
Subject: TOC, listalternative d, ragged right, interaction
Date: Mon, 28 May 2007 11:30:19 +0200	[thread overview]
Message-ID: <28861.7112710655$1180345226@news.gmane.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 2055 bytes --]

Hi,

I'm trying to alter the formatting of the table of contents for
a document of chapters and sections.

After searching the ConTeXt manuals, source and the list archive,
I've only four more things I'd like to change.  This is where
I ask for your help.

My current setup (for the table of contents):

| \setupinteraction [state=start]
| \setuplistalternative [a] [command=\hskip.8em]
| \setupcombinedlist [content] [alternative=a, interaction=all,
|                               level=section, partnumber=no]
| \setuplist [chapter] [after=\blank, before=\blank,
|                       numberstyle=\tfd, pagestyle=italic, style=\tfa,
|                       width=1.75em]
| \setuplist [section] [alternative=d, headnumber=no,
|                       interaction=pagenumber, margin=1.75em,
|                       pagestyle=italic]

This produces a table of contents like that:

| 1  Chapter One 1
|    Section A  1   Section B  2   Section C  3   Sec-
|    tion D  5   Section E  12

Here are my questions: (2 to 4 are of lower priority for me)

1. How can I setup the toc to get the sections (or
   listalternative d) to be set ragged right?

2. Is it possible to insert text between the section-pagenumber
   and the following section-text?
   (Section A  1 -- Section B  2 -- Section C  3)
                 ^^              ^^

3. I can't alter the distance between section-text and
   pagenumber.  Changing the command option for listalternative
   a does it for chapters.  But this doesn't work for
   listalternative d.

4. Can I get interaction=all for listalternative d?.  Only
   interaction=pagenumber produces interaction.  If I set
   interaction to all or text, I don't get interaction for the
   sections.

I'm using ConTeXt 2007.04.17 with pdfTeXk 3.141592-1.40.3 from
TeXlive 2007 on Gentoo/Linux.

Some kind of a minimal example is attached.

Daniel
-- 
Documentation is like sex: when it is good, it is very, very good;
and when it is bad, it is better than nothing.
                                 (Dick Brandon cited in gawk.info)

[-- Attachment #2: a.tex --]
[-- Type: text/x-tex, Size: 1422 bytes --]

% -*- mode: ConTeXt; -*-

\setupinteraction [state=start]

\setuplistalternative [a] [command=\hskip.8em]

\setupcombinedlist [content] [alternative=a,
                              interaction=all,
                              level=section,
                              partnumber=no]

\setuplist [chapter] [after=\blank,
                      before=\blank,
                      numberstyle=\tfd,
                      pagestyle=italic,
                      style=\tfa,
                      width=1.75em]
\setuplist [section] [alternative=d,
                      headnumber=no,
                      interaction=pagenumber,
                      margin=1.75em,
                      pagestyle=italic]

\starttext
\completecontent

\chapter{Einleitung}
\section{Ich bin da}
\section{So hat alles angefangen}
\section{Die Vorbereitungen}
\section{Rucksackbestellung}
\section{Ist denn schon wieder Weihnachten?}
\section{Mein erstes Kaenguru (ein Wallaby)}
\section{Abflugtermin steht fest!}
\section{Abschiedsparty}
\section{Noch 3 Tage}
\section{Etappe 1}
\section{Etappe 2}

\chapter{Sydney}
\section{Unser erster Tag in Sydney}
\section{Nicht viel Neues}
\section{Wohnungssuche}
\section{The Royal Easter Show}
\section{Am Freitag ziehen wir in unsere neue Wohnung}
\section{Einzug in die Wohnung!}
\section{Frohe Ostern}
\section{Sydney Aquarium}
\section{Harbour Explorer Tour}
\section{Kakerlaken}
\stoptext

[-- Attachment #3: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2007-05-28  9:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-28  9:30 Daniel Schömer [this message]
     [not found] <20070528092945.GA26819@storsten..pD9E24CDE.dip.t-dialin.net>
2007-05-29  7:02 ` luigi scarso
2007-05-30  1:35   ` luigi scarso
2007-06-05 23:21     ` luigi scarso
2007-06-29  5:08       ` luigi scarso
2007-07-19  0:32         ` luigi scarso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='28861.7112710655$1180345226@news.gmane.org' \
    --to=daniel.schoemer@gmx.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).