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: Mon, 10 Feb 2014 22:49:59 +0100	[thread overview]
Message-ID: <2534.13502728126$1392069018@news.gmane.org> (raw)
In-Reply-To: <5290AF33.2070905@wxs.nl>

On 2013-11-23 Hans Hagen wrote:
> On 11/23/2013 2:32 PM, Jan Tosovsky wrote:
> > On 2013-11-23 Hans Hagen wrote:
> >> On 11/23/2013 1:44 PM, Jan Tosovsky wrote:
> >>> On 2013-11-23 Hans Hagen wrote:
> >>>>
> >>>> normally linespacing in the toc is the same as in the rest of the
> >>>> document unless one has assigned to before/after
> >>>
> >>> This example shows different behaviour:
> >>>
> >>> \showgrid
> >>> \starttext
> >>> \start
> >>> \placecontent
> >>> \stop
> >>> \chapter{aaaaaaaa}Foo
> >>>
> >>> Bar
> >>> \chapter{pppppppp}.
> >>> \chapter{ŠŠŠŠŠŠŠŠ}.
> >>> \stoptext
> >>>
> >>> On my computer the TOC linespacing is almost twice as big as that
> in
> >>> the paragraph.
> >>
> >> if the grid is on that can indeed be the case but only if there are
> >> lines with > lineheight so that's why you can use less strict
> options
> >> (older mails)
> >
> > Yes, it is true, but in my example the grid is not activated, just
> shown to
> > compare differences...
> 
> maybe
> 
> \showmakeup
> 
> shows what makes that happen (for instance it can be that you inject
> invisible stuff that interferes with spacing, in which case
> \dontleavehmode's might help as otherwise tex enters / exits h/v mode
> unexpected)

To be honest, I don't understand to \showmakeup result at all...

When the following code is used, I am getting almost desired output. But
when the grid is switched on (by uncommenting the first line), it again
produces extra lines after every TOC line...

%\setuplayout[grid=yes]
\showgrid
%\showmakeup

\starttext
%\placeongrid{\startlinecorrection
%\start
\setupinterlinespace[0]  % looks like there is an extra line (?) ...
%\setupwhitespace[none]
\placecontent
%\stop
%\stoplinecorrection}

\chapter{aaaaaaaa}.
\chapter{pppppppp}.
\chapter{ŠŠŠŠŠŠŠŠ}.
\stoptext

I am quite sad that after lot of investigation I still cannot achieve such a
basic formatting...

As it is required to force \setupinterlinespace[0] to zero to get proper
result even in non-grid environment, I suspect there is some white space
placed between lines (out of my control).

I still prefer placing lines on the grid. But if the grid could be switched
off just for ToC, I could use the above code ensuring lines in the 'grid'
positions. It is fake, but I cannot manage even that (startlinecorrection
doesn't work here).

Any idea?

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:[~2014-02-10 21:49 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
     [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 [this message]
     [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='2534.13502728126$1392069018@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).