ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bug in placeformula
@ 2022-07-12 16:33 Otared Kavian via ntg-context
  2022-07-12 21:08 ` Mikael Sundqvist via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Otared Kavian via ntg-context @ 2022-07-12 16:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Otared Kavian

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


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

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

* Re: Bug in placeformula
  2022-07-12 16:33 Bug in placeformula Otared Kavian via ntg-context
@ 2022-07-12 21:08 ` Mikael Sundqvist via ntg-context
  2022-07-13 10:46   ` Otared Kavian via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2022-07-12 21:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mikael Sundqvist

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
___________________________________________________________________________________

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

* Re: Bug in placeformula
  2022-07-12 21:08 ` Mikael Sundqvist via ntg-context
@ 2022-07-13 10:46   ` Otared Kavian via ntg-context
  0 siblings, 0 replies; 5+ messages in thread
From: Otared Kavian via ntg-context @ 2022-07-13 10:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Otared Kavian

Hi Mikael,

Thank you for your reply. For the time being I am not in a hurry to solve the issue with placeformula (when the numbers are on the right, there is no problem…).

Best regards: Otared

> On 12 Jul 2022, at 23:08, Mikael Sundqvist via ntg-context <ntg-context@ntg.nl> wrote:
> […]
> 
> 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
___________________________________________________________________________________

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

* Re: Bug in \placeformula
  2016-09-02  9:18 Bug in \placeformula Henri Menke
@ 2016-09-02 14:24 ` Otared Kavian
  0 siblings, 0 replies; 5+ messages in thread
From: Otared Kavian @ 2016-09-02 14:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Henri,

Your are right there is an issue with \startmathcases…\stopmathcases: the equations are not numbered when using this structure.
As a temporary solution you can use \startmatrix…\stopmatrix as in the following, or you can define your own \startalignedcases.

\starttext

\placeformula
\startformula
f(\mu,t) := 
\startmatrix[left={\left\{\,},right={\right.}]
   \NC 0 \NC \mu > 2t \NR
   \NC \pi/2 \NC \mu = 2t \NR
   \NC \pi \NC \mu < 2t \NR
\stopmatrix
\stopformula

\stoptext

Best regards: OK

> On 2 Sep 2016, at 11:18, Henri Menke <henrimenke@gmail.com> wrote:
> 
> Dear list,
> 
> this formula is not numbered even though it should be.  Please fix.
> 
> \starttext
> \placeformula
> \startformula
>  \startmathcases
>    \NC 0 \NC $\mu > 2t$ \NR
>    \NC \pi/2 \NC $\mu = 2t$ \NR
>    \NC \pi \NC $\mu < 2t$ \NR
>  \stopmathcases
> \stopformula
> \stoptext
> 
> Cheers, Henri
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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] 5+ messages in thread

* Bug in \placeformula
@ 2016-09-02  9:18 Henri Menke
  2016-09-02 14:24 ` Otared Kavian
  0 siblings, 1 reply; 5+ messages in thread
From: Henri Menke @ 2016-09-02  9:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

this formula is not numbered even though it should be.  Please fix.

\starttext
\placeformula
\startformula
  \startmathcases
    \NC 0 \NC $\mu > 2t$ \NR
    \NC \pi/2 \NC $\mu = 2t$ \NR
    \NC \pi \NC $\mu < 2t$ \NR
  \stopmathcases
\stopformula
\stoptext

Cheers, Henri
___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2022-07-13 10:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-12 16:33 Bug in placeformula Otared Kavian via ntg-context
2022-07-12 21:08 ` Mikael Sundqvist via ntg-context
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

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