ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jan Tosovsky" <j.tosovsky@email.cz>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: Linespacing in TOC
Date: Fri, 22 Nov 2013 21:44:55 +0100	[thread overview]
Message-ID: <23238.7026343078$1385153106@news.gmane.org> (raw)
In-Reply-To: <528BED98.2070505@wxs.nl>

On 2013-11-20 Hans Hagen wrote:
> On 11/19/2013 11:48 PM, Jan Tosovsky wrote:
> >
> > I'd like to tweak a default TOC linespacing...
> >
> > I've 'invented' this:
> >
> > \setupcombinedlist[content][list=chapter, alternative=c]
> >
> > \starttext
> >
> > \title{Table of Contents}
> > \setupinterlinespace[line=0.8ex] % too small, just for testing
> > \placecontent
> > \setupinterlinespace[line=2.75ex]
> > %\setupinterlinespace[reset]
> >
> > \startfrontmatter
> > \chapter{Intro}text
> >
> > text
> >
> > text
> > \startfrontmatter
> > \startbodymatter
> > \chapter{Chapter}text
> > \stopbodymatter
> > \startbackmatter
> > \chapter{Appendix}text
> > \stopbackmatter
> > \stoptext
> >
> > I cannot use simply the \completecontent command as the linespacing
> > is effective already between the title and the first entry line... 
> > so I am splitting the title and the rest and set the linespacing 
> > just before list rendering. Finally I am resetting the value manually.
> >
> > Are there better ways to tweak linespacing in TOC ?
> 
> \title{Table of Contents}
> 
> \start
>      \setupinterlinespace[line=0.8ex] % too small, just for testing
>      \placecontent
> \stop

Thanks for the hint. 

But as I found, any value below 2.8ex causes interline inconsistencies when
special cases appears, see the extreme below:

\starttext
\start
\setupinterlinespace[line=1.0ex]
\placecontent
\stop
\chapter{aaaaaaaa}. % line without descenders precedes a line without
ascenders
\chapter{pppppppp}. % line with descenders is followed with a line with
ascenders
\chapter{ŠŠŠŠŠŠŠŠ}. % the result is an inconsistent baseline distance
\stoptext

Is there any remedy for this? Can I fix the baseline distance somehow?

I have such cases in my TOC :-( 
(but not so extreme as here)

Thanks, Jan

___________________________________________________________________________________
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:[~2013-11-22 20:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <013a01cee579$6a0c5640$3e2502c0$@tosovsky@email.cz>
2013-11-19 23:00 ` Hans Hagen
2013-11-22 20:44   ` Jan Tosovsky [this message]
     [not found]   ` <011201cee7c3$b3b1dc60$1b159520$@tosovsky@email.cz>
2013-11-22 21:45     ` Hans Hagen
2013-11-22 23:11       ` Jan Tosovsky
     [not found]       ` <013501cee7d8$1fefbb40$5fcf31c0$@tosovsky@email.cz>
2013-11-23 11:16         ` Jan Tosovsky
     [not found]         ` <001701cee83d$77460650$65d212f0$@tosovsky@email.cz>
2013-11-23 11:51           ` Hans Hagen
2013-11-23 12:44             ` Jan Tosovsky
     [not found]             ` <002101cee849$b1e90c60$15bb2520$@tosovsky@email.cz>
2013-11-23 12:54               ` Hans Hagen
2013-11-23 13:32                 ` Jan Tosovsky
     [not found]                 ` <002601cee850$6c3196e0$4494c4a0$@tosovsky@email.cz>
2013-11-23 13:35                   ` Hans Hagen
2014-02-10 21:49                     ` Jan Tosovsky
     [not found]                     ` <52f9499c.826f0e0a.58db.ffffbb09SMTPIN_ADDED_BROKEN@mx.google.com>
2014-02-10 22:25                       ` Wolfgang Schuster
2014-02-11 16:32                         ` Jan Tosovsky
     [not found]                         ` <52fa509d.826f0e0a.5656.ffff8d0bSMTPIN_ADDED_BROKEN@mx.google.com>
2014-02-11 17:58                           ` Wolfgang Schuster
2014-02-12 16:02                             ` Jan Tosovsky
     [not found]                         ` <00d901cf2746$d2b9ce20$782d6a60$@tosovsky@email.cz>
2014-02-11 18:45                           ` Hans Hagen
2013-11-19 22:48 Jan Tosovsky

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='23238.7026343078$1385153106@news.gmane.org' \
    --to=j.tosovsky@email.cz \
    --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).