ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: bug? gap appears in columnset
Date: Tue, 17 Sep 2013 22:02:54 +0200	[thread overview]
Message-ID: <5238B56E.1030901@wxs.nl> (raw)
In-Reply-To: <5238A635.6040103@sil.org>

On 9/17/2013 8:57 PM, Lars Huttar wrote:

> Can you point me to documentation on the constraints that define what
> kind of interlinespace is sane?

the default is 2.8ex which is pretty safe, then there is the ht/dp ratio 
which in some cases has to be adapted to fonts esp when they are 
non-typical

> Also, given the goal that "For using ConTeXt, no TeX programming skills
> and no technical background are needed. Some basic knowledge of
> typography and document design will enable you to use the full power of
> ConTeXt" (http://wiki.contextgarden.net/What_is_ConTeXt), does/could
> ConTeXt issue an error when its assumptions are violated?

well, adapting interlinespace is already beyond basic ... if you have 
specifications from someplace else they are supposed to be experts (ok, 
in many case we get weird specs too, but i always tend to ignore those)

>> \setbox0\hbox{Tg}\the\htdp0,\the\baselineskip
>>
>> gives
>>
>> 10.59601pt,9.3pt
>>
>> so, any line that has a character with ascender and descender will
>> enforce a larger than 9.3pt distance + lineskip and mess up any
>> prediction cq. heuristics
>
> I can't find any reference defining \htdp0, but I'm guessing it means
> the height+depth (where depth means how far descenders extend below the
> baseline) of the "Tg" box.

indeed, \htdp is a convenient macro, you could also add two dimensions 
or use a \dimexpr which is more work

> I'm also confused as to why you're adding 9.3pt + lineskip, when in my
> limited understanding of TeX, I understood lineskip to be *part* of the
> distance between baselines, rather than an additional distance. But
> maybe that's not important to the main issue.

\starttext

\showstruts \strut test \par \strut test

\showstruts \strut \ruledhbox{$\sqrt{test}$} \par \strut test

\stoptext

\lineskip (1pt by default) kicks in when the line distance minus 
baselineskip exceeds \lineskiplimit (0pt by default)

> I'm trying to formulate a rule for knowing whether "interlinespace is sane".
> Is it that interlinespace needs to be more than or equal to the maximum
> of (height + depth + lineskip) of any line in the text?

\setbox0\hbox{()} \the\htdp0

is the minumum and you'd better add one point at least

bodyfont/baseline : 10/12 12/14.4 etc are ok

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
___________________________________________________________________________________


  reply	other threads:[~2013-09-17 20:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-13 20:07 Lars Huttar
2013-09-13 20:20 ` Lars Huttar
2013-09-16 18:29   ` Lars Huttar
2013-09-16 21:29     ` Lars Huttar
2013-09-16 22:32       ` Aditya Mahajan
2013-09-17 14:47       ` Hans Hagen
2013-09-17 15:02       ` Lars Huttar
2013-09-17 15:31         ` Hans Hagen
2013-09-17 18:57         ` Lars Huttar
2013-09-17 20:02           ` Hans Hagen [this message]
2013-09-18 21:47           ` Lars Huttar
2013-09-18 23:22             ` Hans Hagen
2013-09-19 14:25             ` Lars Huttar
2013-09-19 15:19               ` Hans Hagen

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=5238B56E.1030901@wxs.nl \
    --to=pragma@wxs.nl \
    --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).