Implementing \intertext and \shortintertext
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Thu May 22 14:05:40 UTC 2025
Le 22/05/2025 à 15:58, Koji Yokota a écrit :
> Dear All,
>
> I’m not sure if this is the good timing to propose, but I’d like to introduce a support for \intertext and \shortintertext commands in an appropriate LyX version. I have a patch for it as attached to this mail which is also available on a git branch at features/intertext, and I’d like to hear how I should treat this.
>
> \intertext and \shortintertext commands insert a comment between multiple equation rows without interrupting horizontal alignment of equations, typically useful for textbooks or handouts.
>
> The patch comes with a shortcoming that the screen representation of the comment text does not spread over LHS and RHS of equations as printed version will do but treated as an object within a column.
>
> A potential fix would have been to mimic \lefteqn giving a fixed width to the box but it prevents horizontal scroll when the text becomes very long. So the patch took the latter from the conflict between over-columns spread and horizontal scroll.
Hi Koji,
I do not have time to look at it right now, but did you think of using
multicolumn support to create your big row?
Or maybe what I write here does not make sense.
JMarc
More information about the lyx-devel
mailing list