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