ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bug with mathalignment and columns
@ 2021-08-23 14:59 Jack Hill via ntg-context
  0 siblings, 0 replies; only message in thread
From: Jack Hill via ntg-context @ 2021-08-23 14:59 UTC (permalink / raw)
  To: ntg-context; +Cc: Jack Hill

Hi,

When a mathalignment is started at the end of a multi-column page ConTeXt places it at the start of the previous second column instead of placing it on a new page. Here's my code to test:

\starttext \startcolumns[n=4]
\startluacode
lorum = "Lorum ipsum dolor sit amet. "
for i = 1, 98, 1 do
     context(lorum)
end
\stopluacode

\startformula \startmathalignment[n=1]
\NC y = ax \NR

\NC a^2 + b^2 = c^2 \NR

\NC x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \NR
\stopmathalignment \stopformula
\stopcolumns \stoptext

Adding text after the formula seems to fix the issue, but that means I can't finish the page with a formula.
It seems that it always places the formula at the top of the second column, regardless of how many columns there are.
It also does this even if there are still empty columns (try changing 98 to 100 in the for loop).

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-23 14:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-23 14:59 Bug with mathalignment and columns Jack Hill via ntg-context

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