mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-13 06:58:40 +00:00
docs: Explain how to make macros persist. (#2702)
* docs: Explain how make macros persist. * Revise per comments. * Pick up comments.
This commit is contained in:
@@ -332,7 +332,9 @@ Macros can also be defined in the KaTeX [rendering options](options.md).
|
||||
|
||||
Macros accept up to nine arguments: #1, #2, etc.
|
||||
|
||||
`\gdef`, `\xdef`, `\global\def`, `\global\edef`, `\global\let`, and `\global\futurelet` will persist between math expressions.
|
||||
<div id="gdef"></div>
|
||||
|
||||
Macros defined by `\gdef`, `\xdef`, `\global\def`, `\global\edef`, `\global\let`, and `\global\futurelet` will persist between math expressions. (Exception: macro persistence may be disabled. There are legitimate security reasons for that.)
|
||||
|
||||
KaTeX has no `\par`, so all macros are long by default and `\long` will be ignored.
|
||||
|
||||
|
Reference in New Issue
Block a user