Detokenized Math Macros?
Richard Kimberly Heck
rikiheck at lyx.org
Wed Nov 11 16:06:29 UTC 2020
On 11/10/20 1:13 PM, Joel Kulesza wrote:
> Colleagues,
>
> 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.
This is intentional. The idea is that you can write some LaTeX,
highlight it, and them hit ctrl-M to make it math. Or paste it. Or whatever.
>
> 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.
This looks like a job for a character style. The Logical Markup module
defines a 'Code' style that renders its content as monospace. Of course,
it can be customized.
Riki
More information about the lyx-users
mailing list