ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mikael Sundqvist via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Mikael Sundqvist <mickep@gmail.com>
Subject: Re: Bug in placeformula
Date: Tue, 12 Jul 2022 23:08:14 +0200	[thread overview]
Message-ID: <CAHy-LL-MqTa14tLLukzfoTLMOT3NRiA1J8Hc+cU+PJRBjQqFFA@mail.gmail.com> (raw)
In-Reply-To: <B57F5EF5-D17A-4B30-A412-86409421CDA5@gmail.com>

On Tue, Jul 12, 2022 at 6:34 PM Otared Kavian via ntg-context
<ntg-context@ntg.nl> wrote:
>
> Dear Hans, dear Mikael,
>
> In my experiments with the new math engine, I noticed that there is an issue with \placeformula when one sets the location of the numbers on the left: the number is one line above the formula. Here is a minimal example:
>
> % begin bug-placeformula-left.tex
> \setupformulas[location=left]
>
> \starttext
>
> \placeformula
> \startformula
> a^2 + b^2 = c^2.
> \stopformula
>
> \stoptext
> % end bug-placeformula-left.tex
>
> Moreover, in some environments (such as enumerations) the bug destroys completely the flow of text but I could not set up a minimal example to send you.
>
> Best regards: Otared

Thanks for reporting! We must have missed this one while testing. It
should be fixed.

If you for the moment can live without splitting, then this seems to
give you the formula number where expected:

\placeformula
\startformula[location=left,split=no,numberlocation=overlay]
a^2 + b^2 = c^2.
\stopformula

(or put the keys in \setupformula)

I hope it helps.

/Mikael
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2022-07-12 21:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-12 16:33 Otared Kavian via ntg-context
2022-07-12 21:08 ` Mikael Sundqvist via ntg-context [this message]
2022-07-13 10:46   ` Otared Kavian via ntg-context
  -- strict thread matches above, loose matches on Subject: below --
2016-09-02  9:18 Bug in \placeformula Henri Menke
2016-09-02 14:24 ` Otared Kavian

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=CAHy-LL-MqTa14tLLukzfoTLMOT3NRiA1J8Hc+cU+PJRBjQqFFA@mail.gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=mickep@gmail.com \
    /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).