BetterDiscordPlugins icon indicating copy to clipboard operation
BetterDiscordPlugins copied to clipboard

[TeX] Enhancement: Add macros setting

Open aarondoet opened this issue 4 years ago • 0 comments

Katex supports macros, they are accepted as options parameter. It would be nice if there was the option to create macros and save them, so that you can use them every time without typing them out again.

Since macros in katex are a JS object it would also be possible to not pass the macros object to the renderer but to just prepend the macros text to the input. Then you don't have macros like {"\\myCommand": "replacement"} but \newcommand{\myCommand}{replacement}, but at least it would be possible. (Or pre-fill the textbox with the macros when opening the modal.)

aarondoet avatar Jul 14 '21 11:07 aarondoet