* [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
* [NTG-context] Re: Small issue with \breakhere in math mode
2024-10-06 21:43 [NTG-context] Small issue with \breakhere in math mode Otared Kavian
@ 2024-10-06 22:24 ` Wolfgang Schuster
2024-10-07 7:02 ` Otared Kavian
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2024-10-06 22:24 UTC (permalink / raw)
To: mailing list for ConTeXt users, Otared Kavian
Otared Kavian schrieb am 06.10.2024 um 23:43:
> 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.
\breakhere accepts an optional argument which has to be enclosed in
braces and in your example you just passed the argument.
Wolfgang
___________________________________________________________________________________
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
* [NTG-context] Re: Small issue with \breakhere in math mode
2024-10-06 22:24 ` [NTG-context] " Wolfgang Schuster
@ 2024-10-07 7:02 ` Otared Kavian
0 siblings, 0 replies; 3+ messages in thread
From: Otared Kavian @ 2024-10-07 7:02 UTC (permalink / raw)
To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users
Hi Wolfgang,
Indeed I overlooked the fact that in « mathcontext-screen.pdf » it is explained that:
\breakhere [...] {…}
1 left right before after page samepage
2 TEXT
Thanks for your patience with superficial users such as me :-)
Best regards: Otared
> On 7 Oct 2024, at 00:24, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
>
> Otared Kavian schrieb am 06.10.2024 um 23:43:
>> 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.
>
> \breakhere accepts an optional argument which has to be enclosed in braces and in your example you just passed the argument.
>
> Wolfgang
>
___________________________________________________________________________________
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).