ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: TOC with wrong lines in latest beta
Date: Sat, 11 Feb 2012 19:30:47 +0100	[thread overview]
Message-ID: <C9D386E4-D502-4094-A2D1-92A6B3A7B5A0@googlemail.com> (raw)
In-Reply-To: <4F3550C1.1080700@web.de>


Am 10.02.2012 um 18:15 schrieb Pablo Rodríguez:

> Hi there,
> 
> in the following sample, the TOC has chapter 2 on the same line as
> section 1.
> 
>    \setuplist[chapter][alternative=g,align=middle,aligntitle=yes]
>    \setuplist[section][alternative=d]
>    \starttext
>    \completecontent
>    \chapter{chapter 1}
>    \section{section 1}
>    \chapter{chapter 2}
>    \section{section 2}
>    \stoptext
> 
> I'm afraid that this i a bug, since chapter 2 should be on a new line.

No it isn’t.

You shouldn’t also misuse the “g” alternative which is meant for interactive document
to center the entry, instead use the “command” alternative.

\definelistplacement[ChapterList][command]%
  {\endgraf
   \midaligned{#2}%
   \endgraf}

\setuplist[chapter][alternative=ChapterList]

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


  reply	other threads:[~2012-02-11 18:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-10 17:15 Pablo Rodríguez
2012-02-11 18:30 ` Wolfgang Schuster [this message]
2012-02-12  1:20   ` Pablo Rodríguez

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=C9D386E4-D502-4094-A2D1-92A6B3A7B5A0@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).