Re: Using tex macros in a multidoc

Richard Kimberly Heck via lyx-users <[email protected]> Sun, 17 May 2026 12:31:22 -0400
Newsgroups gmane.editors.lyx.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------tQAwtEfmFgpfwbGQcrJx4Hop
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

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


--------------tQAwtEfmFgpfwbGQcrJx4Hop
Content-Type: text/plain; charset=UTF-8; name="PassThru.module"
Content-Disposition: attachment; filename="PassThru.module"
Content-Transfer-Encoding: base64

I1xEZWNsYXJlTHlYTW9kdWxle0FsbG93IExhVGVYIENvbW1hbmRzfQoKRm9ybWF0IDEwNAoK
U3R5bGUgU3RhbmRhcmQKUGFzc1RocnVDaGFycyAiXCIKRW5kCgpTdHlsZSAiUGxhaW4gTGF5
b3V0IgpQYXNzVGhydUNoYXJzICJcIgpFbmQK

--------------tQAwtEfmFgpfwbGQcrJx4Hop
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users

--------------tQAwtEfmFgpfwbGQcrJx4Hop--