ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] does \setuplayout[grid=yes] require \startformula[split=line] ?
@ 2025-01-27 23:24 garulfo
  2025-01-29  6:18 ` [NTG-context] " Mikael Sundqvist
  0 siblings, 1 reply; 2+ messages in thread
From: garulfo @ 2025-01-27 23:24 UTC (permalink / raw)
  To: ntg-context

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-01-29  6:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-27 23:24 [NTG-context] does \setuplayout[grid=yes] require \startformula[split=line] ? garulfo
2025-01-29  6:18 ` [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).