Implementing \intertext and \shortintertext

Koji Yokota yokota6 at gmail.com
Thu May 22 13:58:29 UTC 2025


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.

Koji

-------------- next part --------------
A non-text attachment was scrubbed...
Name: intertext.patch
Type: application/octet-stream
Size: 10008 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20250522/d6cd9a57/attachment.obj>


More information about the lyx-devel mailing list