Small issue with \breakhere in math mode
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
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
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
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
participants (2)
-
Otared Kavian
-
Wolfgang Schuster