ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] formula alignment for mathalign
@ 2023-09-28 16:34 Aditya Mahajan
  2023-09-28 21:03 ` [NTG-context] " Mikael Sundqvist
  0 siblings, 1 reply; 2+ messages in thread
From: Aditya Mahajan @ 2023-09-28 16:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

The `align` parameter of `\setupformulas` is ignored in mathalign. Consider the following MWE:

\setupformulas[align=flushleft,leftmargin=2em]

\starttext
\startformula 
  A = B
\stopformula

vs

\startformula \startalign
  \NC A \NC B \NR
  \NC A \NC B \NR
\stopalign \stopformula
\stoptext

The first display formula is flush left, but the aligned formula is centered on the page. This appears to be a regression compared to MkIV, where the above example works correctly.

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

* [NTG-context] Re: formula alignment for mathalign
  2023-09-28 16:34 [NTG-context] formula alignment for mathalign Aditya Mahajan
@ 2023-09-28 21:03 ` Mikael Sundqvist
  0 siblings, 0 replies; 2+ messages in thread
From: Mikael Sundqvist @ 2023-09-28 21:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

On Thu, Sep 28, 2023 at 6:39 PM Aditya Mahajan <adityam@umich.edu> wrote:
>
> Hi,
>
> The `align` parameter of `\setupformulas` is ignored in mathalign. Consider the following MWE:
>
> \setupformulas[align=flushleft,leftmargin=2em]
>
> \starttext
> \startformula
>   A = B
> \stopformula
>
> vs
>
> \startformula \startalign
>   \NC A \NC B \NR
>   \NC A \NC B \NR
> \stopalign \stopformula
> \stoptext
>
> The first display formula is flush left, but the aligned formula is centered on the page. This appears to be a regression compared to MkIV, where the above example works correctly.

The whole alignment mechanism was redone, and a lot focus was put on
getting right placement for formula numbers and display alignment. We
did not yet look into this use case, but we will.

/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] 2+ messages in thread

end of thread, other threads:[~2023-09-28 21:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-28 16:34 [NTG-context] formula alignment for mathalign Aditya Mahajan
2023-09-28 21:03 ` [NTG-context] " Mikael Sundqvist

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