Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-08-11 | LaTeX reader: Support `\global` before `\def`, `\let`, etc. | John MacFarlane | 1 | -0/+12 | |
See #7494. | |||||
2021-08-11 | Fix scope for LaTeX macros. | John MacFarlane | 1 | -0/+50 | |
They should by default scope over the group in which they are defined (except `\gdef` and `\xdef`, which are global). In addition, environments must be treated as groups. We handle this by making sMacros in the LaTeX parser state a STACK of macro tables. Opening a group adds a table to the stack, closing one removes one. Only the top of the stack is queried. This commit adds a parameter for scope to the Macro constructor (not exported). Closes #7494. |