[NTG-context] how to reduce \lineskiplimit in ConTeXt grid layout

2013-11-15 Thread Lars Huttar
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
___


Re: [NTG-context] how to reduce \lineskiplimit in ConTeXt grid layout

2013-11-15 Thread Hans Hagen

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
___


Re: [NTG-context] how to reduce \lineskiplimit in ConTeXt grid layout

2013-11-15 Thread Lars Huttar
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
___


Re: [NTG-context] how to reduce \lineskiplimit in ConTeXt grid layout

2013-11-15 Thread Hans Hagen

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
___


Re: [NTG-context] how to reduce \lineskiplimit in ConTeXt grid layout

2013-11-15 Thread Lars Huttar
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
___


Re: [NTG-context] how to reduce \lineskiplimit in ConTeXt grid layout

2013-11-15 Thread Lars Huttar
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
___