ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Vertical space around displayed formulas
Date: Wed, 18 Jan 2017 20:34:41 +0100	[thread overview]
Message-ID: <547E8D0C-AE61-4F8B-9B50-17265646D65D@gmail.com> (raw)
In-Reply-To: <8c00cf50-4259-e124-73b4-7d864227c854@wxs.nl>

[-- Attachment #1: Type: text/plain, Size: 866 bytes --]

Hi Hans,

Thanks for your attention which fixed most of the difficulties with vertical distances around math formulas.
However, after typesetting a long document, I noticed that there are still some incorrect behaviours. The following minimal example, extracted from that long document, shows what is wrong: please have a look at the second formula in the attached PDF. (The output with the older version from TeXLIve 2016 is correct).

%% begin vertical-space-bug.tex
\starttext

\input knuth.tex
\startformula
a \leq a_{n+1} \leq a_{n} \leq b_{n+1} \leq b_{n} \leq b, \qquad\mbox{et}\qquad 0 \leq b_{n} - a_{n} \leq 2^{-n}(b_{0} - a_{0}).
\stopformula
\input ward.tex
\startformula
g(x_{*}) = \lim_{n\to\infty} g(a_{n}) \leq 0 \leq \lim_{n\to\infty} g(b_{n}) = g(x_{*}),
\stopformula
\input knuth.tex

\stoptext
%% end vertical-space-bug.tex


[-- Attachment #2: vertical-space-bug-2017-01-17.pdf --]
[-- Type: application/pdf, Size: 15929 bytes --]

[-- Attachment #3: Type: text/plain, Size: 2328 bytes --]



> On 18 Jan 2017, at 19:15, Hans Hagen <pragma@wxs.nl> wrote:
> 
> On 1/18/2017 6:23 PM, Nicola wrote:
>> On 18/01/2017 17:53, Otared Kavian wrote:
>>> Hi Nicola,
>>> 
>>> In fact, if you are in a hurry and don’t use subtle things
>>> introduced  since May 2016, you can use the stable version of ConTeXt
>>> from TeXLive
>>> 2016 (the bug noticed by Mikael, and you, is absent from that version
>>> of ConTeXt).
>> 
>> Thanks, that's what I am doing now. Strangely enough, it fixes the
>> layout for all the slides, *except* the one I have posted before. But
>> that one I can easily fix.
> 
> the current (yesterdays) beta should be ok .. (the midpar flushing of a formula)
> 
> a while ago i reimplemented spacing around display math and as a side effect there might be slightly different spacing (in which case probably the old situation was wrong
> 
> it relates to the fact that tex (traditionally) has some assumptions and does some spacing that interferes with the way we want to control spacing (e.g. it always forces baselineskips while we don't always want them) and it was close to impossible to identify such cases robustly
> 
> (think of preceding lines with different depths)
> 
> recent luatex has ways to disable that so i could finally come up with cleaner spacing models for display math
> 
> so, apart from bugs the current model is the one that will stay (or course more control can be added)
> 
> Hans
> 
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>       tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #4: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2017-01-18 19:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-18 15:00 Nicola
2017-01-18 15:53 ` Otared Kavian
2017-01-18 16:26   ` Nicola
2017-01-18 16:53     ` Otared Kavian
2017-01-18 17:23       ` Nicola
2017-01-18 18:15         ` Hans Hagen
2017-01-18 19:34           ` Otared Kavian [this message]

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=547E8D0C-AE61-4F8B-9B50-17265646D65D@gmail.com \
    --to=otared@gmail.com \
    --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).