ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mikael Sundqvist <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: does \setuplayout[grid=yes] require \startformula[split=line] ?
Date: Wed, 29 Jan 2025 07:18:34 +0100	[thread overview]
Message-ID: <CAHy-LL9dXKr_xNRN-2M253zFFMLRYjUHhQ8viOtL+MhRk-SCRg@mail.gmail.com> (raw)
In-Reply-To: <173802028114.3183021.6180964972442404991@cgl.ntg.nl>


[-- Attachment #1.1: Type: text/plain, Size: 1500 bytes --]

Hi,

On Tue, Jan 28, 2025 at 12:25 AM <garulfo@azules.eu> wrote:

> Hi,
>
> sorry for the potentially puzzling title.
>
> I try to figure out why \setuplayout[grid=yes] seems to insert a line
> break in a short formula.
>
> Is there a way of ensuring regular vertical alignment of the formula
> number without  ‘split=line’ ?
> Many thanks for your help.
>
>
> %%% START
> \setuppapersize[A6,landscape]
> \enabletrackers[math.showmargins.less]
>
> \startsetups[math:penalties:mathincontext]
> \shapingpenaltiesmode \zerocount
> \widowpenalties 3 5000 250 100
> \clubpenalties 3 5000 250 100
> \stopsetups
>
> \setupformula
> [split=mathincontext]
>
> \starttext
> Text
>
> \startplaceformula
> \startformula
> c^2 = a^2 + b^2
> \stopformula
> \stopplaceformula
>
> \setuplayout[grid=yes]
> \page
> Text
>
> \startplaceformula
> \startformula
> c^2 = a^2 + b^2
> \stopformula
> \stopplaceformula
>
> \page
> Text
>
> \startplaceformula
> \startformula[split=line,numberlocation=overlay]
> c^2 = a^2 + b^2
> \stopformula
> \stopplaceformula
>
> \disabletrackers[math.showmargins.less]
> \stoptext
> %%% END


We saw something similar when working on the columnsets, but as far as I
remember it was resolved. Apparently it is not. What is (or at least was)
working was to use \numberhere instead of \startplaceformula
\stopplaceformula, so you can try

\startformula
c^2 = a^2 + b^2 \numberhere[eq:foo]
\stopformula

/Mikael

[-- Attachment #1.2: Type: text/html, Size: 2010 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2025-01-29  6:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-27 23:24 [NTG-context] " garulfo
2025-01-29  6:18 ` Mikael Sundqvist [this message]

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-LL9dXKr_xNRN-2M253zFFMLRYjUHhQ8viOtL+MhRk-SCRg@mail.gmail.com \
    --to=mickep@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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).