-
Notifications
You must be signed in to change notification settings - Fork 1
User defined macros
Dominique Unruh edited this page May 13, 2022
·
3 revisions
For commonly used formulas, it is possible to define macros.
For example, the following macro definition defines the macro \norm
.
\norm = \left\lVert\cursor\right\rVert
Then, whenever the user types \norm
in the formula editor, the LaTeX code \left\lVert\right\rVert
is inserted at the cursor position, and the cursor is placed between \left\lVert
and \right\rVert
. (Marked by the special command \cursor
in the macro definition.)
Macros can be defined in the plugin options, one macro definition per line.