From: "Jan Tosovsky" <j.tosovsky@email.cz>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: Linespacing in TOC
Date: Sat, 23 Nov 2013 00:11:06 +0100 [thread overview]
Message-ID: <36542.5071133815$1385161882@news.gmane.org> (raw)
In-Reply-To: <528FD06E.4030608@wxs.nl>
On 2013-11-22 Hans Hagen wrote:
> On 11/22/2013 9:44 PM, Jan Tosovsky wrote:
> > 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...
> >>>
> >> \title{Table of Contents}
> >>
> >> \start
> >> \setupinterlinespace[line=0.8ex] % too small, just for testing
> >> \placecontent
> >> \stop
> >
> > 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?
> >
>
> \definegridsnapping[crap] [fit,0.2]
> \setuplayout[grid=crap]
This helps! But... it breaks something else :-(
I am confused a bit.
What exactly the linespacing is doing? It can set the baseline distance
(line=...), but it is not handled correctly? Is that snapping a workaround
for this deficiency of a standard solution?
All lines in my book have a certain (default) linespacing.
TOC entries are rendered (by default) using bigger linespacing.
I just wanted to make that TOC distance smaller a bit. Is this really the
only solution?
\definegridsnapping[crap] [fit] % what was that magic number 0.2 ?
\setuplayout[grid=crap]
\start
\setupinterlinespace[line=2.2ex]
\placecontent
\stop
It works. But that snapping is set globally and it breaks whitespace
handling in other parts of my document... It even produces widows/orphans
what I haven't seen before.
Just smaller gap between TOC lines, just that ;-)
Thanks in advance, 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
___________________________________________________________________________________
next prev parent reply other threads:[~2013-11-22 23:11 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
[not found] ` <011201cee7c3$b3b1dc60$1b159520$@tosovsky@email.cz>
2013-11-22 21:45 ` Hans Hagen
2013-11-22 23:11 ` Jan Tosovsky [this message]
[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='36542.5071133815$1385161882@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).