Detokenized Math Macros?

Joel Kulesza jkulesza at
Tue Nov 10 18:13:33 UTC 2020


Is there a way to detokenize math macros in LyX such that characters like
an underscore are not passed?  I'd like to highlight text and then apply
the macro (via toolbar button/shortcut), but it passes through characters
without escaping them automatically.

For example, please see the attached MWE.

My goal is to apply macro-based styling to various keywords in a document,
so a macro seems like the most natural way to mark those items and then
update them, as needed.  However, I'm happy to consider other, better, ways
to accomplish that.

Thank you,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: detokenize_macro.lyx
Type: application/octet-stream
Size: 1958 bytes
Desc: not available
URL: <>

More information about the lyx-users mailing list