ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: issues with \setuplist
Date: Sat, 18 Jan 2014 12:07:30 +0100	[thread overview]
Message-ID: <1888AEDA-6F2F-4006-95FB-3EC7B41A476E@gmail.com> (raw)
In-Reply-To: <52D986D0.90504@gmx.es>


Am 17.01.2014 um 20:38 schrieb Pablo Rodriguez <oinos@gmx.es>:

> Dear list,
> 
> generating a table of contents with the following sample:
> 
> \setupinterlinespace[line=3.5ex]
> \setuplist[section][alternative=d, style={\itx\setupinterlinespace},
> separator={·}]
> \starttext
> \placecontent
> \dorecurse{5}{\chapter{Chapter}\dorecurse{10}{\section{Long Section
> Title}}}
> \stoptext
> 
> I experience two issues.
> 
> The first one is that I have no hay to get the sections that build a
> paragraph to have an adapted \setupinterlinespace. Right now the
> interline space is too high. And \setupinterlinespace from style doesn’t
> seem to work.
> 
> The second issue is that I would like to get a separator between each
> section item in the table of contents. Am I missing something about
> separator?
> 
> Could anyone explain what is wrong with the sample?


1. There is no option to use a separator between the entries, when you want one you have to write your own list alternative.

2. You have to set the linespacing before all section entries are placed.

\setupinterlinespace[line=3.5ex]

\startsetups[placelist:section]
  \start
    \setupinterlinespace[line=2.8ex] \placelist[section][alternative=d,style=\itx] \par
  \stop
\stopsetups

\setuplist
  [chapter]
  [after=\directsetup{placelist:section}]

\starttext

\title{Table of contents}

\placelist[chapter]

\dorecurse{5}
  {\chapter{Chapter}
   \dorecurse{10}
     {\section{Long Section Title}}}

\stoptext

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:[~2014-01-18 11:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-17 19:38 Pablo Rodriguez
2014-01-18 11:07 ` Wolfgang Schuster [this message]
2014-01-19  9:39   ` Pablo Rodriguez

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=1888AEDA-6F2F-4006-95FB-3EC7B41A476E@gmail.com \
    --to=schuster.wolfgang@gmail.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).