Using tex macros in a multidoc
Richard Kimberly Heck
rikiheck at gmail.com
Sun May 17 16:31:22 UTC 2026
On 5/17/26 3:33 AM, Scott Kostyshak via lyx-users wrote:
> On Sun, May 17, 2026 at 06:30:57AM +0000, Ehud via lyx-users wrote:
>> Thank you. Not exactly related to this question but let me ask:
>> Can I use those macros in text, outside of equations? I now insert them into my document inside ERT boxes.
> Unfortunately not currently. I would also really like this feature.
I think that is one of our oldest enhancement requests.
It seems like it shouldn't be that hard to do. Just adapt the math macro
framework. But I have never understood the math macro framework. Another
option might be just to create a new type of math inset, alongside
inline, display, etc---text type---that didn't output $...$.
In cases where I've really wanted to use macros in the text, I load the
attached module. All it does is prevent LyX from escaping the backslash,
so you don't have to put things in ERT. Of course, you don't get the
nice display then. But one could use the preview inset for that.
Riki
-------------- next part --------------
#\DeclareLyXModule{Allow LaTeX Commands}
Format 104
Style Standard
PassThruChars "\"
End
Style "Plain Layout"
PassThruChars "\"
End
More information about the lyx-users
mailing list