ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Small issue with \breakhere in math mode
@ 2024-10-06 21:43 Otared Kavian
  2024-10-06 22:24 ` [NTG-context] " Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Otared Kavian @ 2024-10-06 21:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Hans and Mikael,

I found a small issue in math mode with \breakhere. 
When \breakhere is followed by a brace in the following line, it creates a spurious break line.
It can be fixed easily by the user by adding an empty line or issuing a \relax command, but I wanted to let you know.

Please see the result of the following minimal example:

% begin breakhere-bug.tex
\starttext
Compare
\startformula
\alignhere {\darkred c^2} = a^2 + b^2 \breakhere
{\darkred z^2} = x^2 + y^2.
\stopformula
with
\startformula
\alignhere {\darkred c^2} = a^2 + b^2 \breakhere

{\darkred z^2} = x^2 + y^2.
\stopformula
and with
\startformula
\alignhere {\darkred c^2} = a^2 + b^2 \breakhere\relax
{\darkred z^2} = x^2 + y^2.
\stopformula

\stoptext
% begin breakhere-bug.tex

Best regards: Otared
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2024-10-07  7:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-06 21:43 [NTG-context] Small issue with \breakhere in math mode Otared Kavian
2024-10-06 22:24 ` [NTG-context] " Wolfgang Schuster
2024-10-07  7:02   ` Otared Kavian

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