ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* how to reduce \lineskiplimit in ConTeXt grid layout
@ 2013-11-15 20:49 Lars Huttar
  2013-11-15 20:54 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Huttar @ 2013-11-15 20:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

As you know, in plain TeX, \lineskiplimit tunes the vertical glue
algorithm by specifying the minimum amount of space between the bottom
edge of one line and the top edge of the following line.

But in ConTeXt, it appears that \lineskiplimit is set to zero, at least
in grid mode.
We're using grid mode, and we have some occasional high ascenders, e.g.
capital letters with diacritics on top.
We have bodyfont size 8.1pt, and interlinespace = 9.3pt. We realize this
is less than the recommended ratio of 1.2.

Understandably, when those tall characters occur, we sometimes get a
blank line above them. It looks like the \lineskiplimit would be
violated if the 9.3pt interlinespace were enforced, so ConTeXt adds some
space (analogous to \lineskip in TeX?). But since we're on a grid, more
space has to be added in order to conform to the grid.

All that makes sense, but we would like to be able typeset the lines
closer together, and judge for ourselves whether it looks too bad. (When
we used to typeset the same text at 8.1pt/9.3pt using mkii, blank lines
did not occur.) Is there something similar to \lineskiplimit that we can
tweak? I've been reading section 5.5 Line Spacing in the context ref
manual, but I don't see anything there about changing a threshold
analogous to \lineskiplimit.

I tried setting \lineskiplimit=-2pt, but that caused a worse problem: a
blank line across both columns, instead of just one.

Thanks,
Lars
Version: mkiv luatex in Tex Live 2013.

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how to reduce \lineskiplimit in ConTeXt grid layout
  2013-11-15 20:49 how to reduce \lineskiplimit in ConTeXt grid layout Lars Huttar
@ 2013-11-15 20:54 ` Hans Hagen
  2013-11-15 21:07   ` Lars Huttar
  2013-11-15 22:29   ` Lars Huttar
  0 siblings, 2 replies; 6+ messages in thread
From: Hans Hagen @ 2013-11-15 20:54 UTC (permalink / raw)
  To: ntg-context

On 11/15/2013 9:49 PM, Lars Huttar wrote:
> As you know, in plain TeX, \lineskiplimit tunes the vertical glue
> algorithm by specifying the minimum amount of space between the bottom
> edge of one line and the top edge of the following line.
>
> But in ConTeXt, it appears that \lineskiplimit is set to zero, at least
> in grid mode.
> We're using grid mode, and we have some occasional high ascenders, e.g.
> capital letters with diacritics on top.
> We have bodyfont size 8.1pt, and interlinespace = 9.3pt. We realize this
> is less than the recommended ratio of 1.2.
>
> Understandably, when those tall characters occur, we sometimes get a
> blank line above them. It looks like the \lineskiplimit would be
> violated if the 9.3pt interlinespace were enforced, so ConTeXt adds some
> space (analogous to \lineskip in TeX?). But since we're on a grid, more
> space has to be added in order to conform to the grid.
>
> All that makes sense, but we would like to be able typeset the lines
> closer together, and judge for ourselves whether it looks too bad. (When
> we used to typeset the same text at 8.1pt/9.3pt using mkii, blank lines
> did not occur.) Is there something similar to \lineskiplimit that we can
> tweak? I've been reading section 5.5 Line Spacing in the context ref
> manual, but I don't see anything there about changing a threshold
> analogous to \lineskiplimit.
>
> I tried setting \lineskiplimit=-2pt, but that caused a worse problem: a
> blank line across both columns, instead of just one.

you can try to choose a more strict grid snapping method (see 
spac-ver.mkiv line 1375 etc ... some methods have tolerance, some snap 
always ..)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how to reduce \lineskiplimit in ConTeXt grid layout
  2013-11-15 20:54 ` Hans Hagen
@ 2013-11-15 21:07   ` Lars Huttar
  2013-11-15 22:06     ` Hans Hagen
  2013-11-15 22:29   ` Lars Huttar
  1 sibling, 1 reply; 6+ messages in thread
From: Lars Huttar @ 2013-11-15 21:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 11/15/2013 3:54 PM, Hans Hagen wrote:
>
> you can try to choose a more strict grid snapping method (see
> spac-ver.mkiv line 1375 etc ... some methods have tolerance, some snap
> always ..)

Thanks, I will try that.
In the meantime, here is a MWE:

\usemodule[simplefonts][size=8.1pt]

\setmainfont[Gentium Book Basic]

\setuplayout[grid=yes]


\starttext

\section{Small interlinespace}

\setupinterlinespace[reset,small]

\input knuth {\bf \color[red]{Éwé}} \input knuth


\section{9.3pt interlinespace}

\setupinterlinespace[reset,9.3pt]

% Notice the blank line that appears above Éwé:

\input knuth {\bf \color[red]{Éwé}} \input knuth

\stoptext



___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how to reduce \lineskiplimit in ConTeXt grid layout
  2013-11-15 21:07   ` Lars Huttar
@ 2013-11-15 22:06     ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2013-11-15 22:06 UTC (permalink / raw)
  To: ntg-context

On 11/15/2013 10:07 PM, Lars Huttar wrote:
> On 11/15/2013 3:54 PM, Hans Hagen wrote:
>>
>> you can try to choose a more strict grid snapping method (see
>> spac-ver.mkiv line 1375 etc ... some methods have tolerance, some snap
>> always ..)

\setuplayout[grid=tolerant]

> Thanks, I will try that.
> In the meantime, here is a MWE:
>
> \usemodule[simplefonts][size=8.1pt]
>
> \setmainfont[Gentium Book Basic]
>
> \setuplayout[grid=yes]
>
>
> \starttext
>
> \section{Small interlinespace}
>
> \setupinterlinespace[reset,small]
>
> \input knuth {\bf \color[red]{Éwé}} \input knuth
>
>
> \section{9.3pt interlinespace}
>
> \setupinterlinespace[reset,9.3pt]
>
> % Notice the blank line that appears above Éwé:
>
> \input knuth {\bf \color[red]{Éwé}} \input knuth
>
> \stoptext
>
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how to reduce \lineskiplimit in ConTeXt grid layout
  2013-11-15 20:54 ` Hans Hagen
  2013-11-15 21:07   ` Lars Huttar
@ 2013-11-15 22:29   ` Lars Huttar
  2013-11-15 22:31     ` Lars Huttar
  1 sibling, 1 reply; 6+ messages in thread
From: Lars Huttar @ 2013-11-15 22:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 11/15/2013 3:54 PM, Hans Hagen wrote:
>
> you can try to choose a more strict grid snapping method (see
> spac-ver.mkiv line 1375 etc ... some methods have tolerance, some snap
> always ..)
>
> Hans

\setuplayout[grid=tolerant] did the trick.
There are no blank lines, and the lines on the grid
Awesome!

Lars

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how to reduce \lineskiplimit in ConTeXt grid layout
  2013-11-15 22:29   ` Lars Huttar
@ 2013-11-15 22:31     ` Lars Huttar
  0 siblings, 0 replies; 6+ messages in thread
From: Lars Huttar @ 2013-11-15 22:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 11/15/2013 5:29 PM, Lars Huttar wrote:
> \setuplayout[grid=tolerant] did the trick.
> There are no blank lines, and the lines on the grid

I meant to say, the lines in the left and right columns align with each
other perfectly.

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-11-15 22:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-15 20:49 how to reduce \lineskiplimit in ConTeXt grid layout Lars Huttar
2013-11-15 20:54 ` Hans Hagen
2013-11-15 21:07   ` Lars Huttar
2013-11-15 22:06     ` Hans Hagen
2013-11-15 22:29   ` Lars Huttar
2013-11-15 22:31     ` Lars Huttar

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).