ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jack Hill via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Jack Hill <jackhill3103@gmail.com>
Subject: Bug with mathalignment and columns
Date: Mon, 23 Aug 2021 15:59:49 +0100	[thread overview]
Message-ID: <3969ec95-9e46-4a8a-d220-dfab4935589a@gmail.com> (raw)

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
___________________________________________________________________________________

                 reply	other threads:[~2021-08-23 14:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3969ec95-9e46-4a8a-d220-dfab4935589a@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=jackhill3103@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).