<div dir="ltr">Colleagues,<div><br></div><div>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.</div><div><br></div><div>For example, please see the attached MWE.</div><div><br></div><div>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.</div><div><br></div><div>Thank you,</div><div>Joel</div></div>