ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Michael Fuchs" <Michael.Fuchs@hiskp.uni-bonn.de>
Subject: AW: TOC indenting
Date: Fri, 18 Mar 2005 10:28:52 +0100	[thread overview]
Message-ID: <20050318092852.DF6295F219@sunkist.iskp.uni-bonn.de> (raw)
In-Reply-To: <7D69E888-9737-11D9-9342-001124338712@northcoast.com>

Hi David!

See the following example for a TOC where sections and
subsections are indented. 

Regards

Michael 


Example:
--------------------------------------

    \setuplist
        [chapter]
        [before=\blank,style=bold]
    \setuplist
        [section]
        [margin=2em, width=3em]
    \setuplist
        [subsection]
        [margin=4em, width=3em,distance=1em]
    \setupcombinedlist
        [content]
        [alternative=c, aligntitle=no, width=2em]

\starttext

    \placecontent
        [level=subsection,criterium=all]

\chapter{One}

\section{One- one}
\subsection{One- two}

\section{Two- one}
\subsection{Two- two}

\chapter{Two}

\section{One- one}
\subsection{One- two}

\section{Two- one}
\subsection{Two- two}

\stoptext
 



> -----Ursprüngliche Nachricht-----
> Von: ntg-context-bounces@ntg.nl 
> [mailto:ntg-context-bounces@ntg.nl] Im Auftrag von David Arnold
> Gesendet: Donnerstag, 17. März 2005 23:54
> An: Context Mailing List List
> Betreff: [NTG-context] TOC indenting
> 
> All,
> 
> In my table of contents, I have:
> 
> \definecombinedlist
> [content][section,subsection]
> 
> \setupcombinedlist
> [content]
> [alternative=c,aligntitle=yes,width=2.5em]
> 
> 
> How do I set up my TOC so that subsections are indented slightly more 
> than sections in which they are contained?
> 

  reply	other threads:[~2005-03-18  9:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-17 22:54 David Arnold
2005-03-18  9:28 ` Michael Fuchs [this message]
2005-03-18 17:40   ` AW: " David Arnold

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=20050318092852.DF6295F219@sunkist.iskp.uni-bonn.de \
    --to=michael.fuchs@hiskp.uni-bonn.de \
    --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).