You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See error Uncaught ParseError: KaTeX parse error: Undefined control sequence: \foo at position 1: \̲f̲o̲o̲
Expected behavior:
Foo macro to expand because it was defined globally.
Screenshots:
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
KaTeX Version: 0.12.0
Device: Desktop
OS: MacOS 10.15.6 (19G2021)
Browser: Firefox
Version: 80.0.1 (64-bit)
Additional context:
I'm trying to define some globally available macros that require arguments. Doing this through the macros option seems extremely complicated and I can not find a working example, I'd much prefer parsing some \gdef statements. Unfortunately this does not work either.
The text was updated successfully, but these errors were encountered:
Right, that's the intended behavior -- sorry it took you hours to figure out! Do you have a suggestion on where we (or you via PR) could mention this in the documentation that would have helped you find it sooner?
Describe the bug:
Macros are forgotten between invocations of
renderToString
(and possiblyrender
), even whenglobalGroup
is set and\gdef
is used.To Reproduce:
Steps to reproduce the behavior:
Uncaught ParseError: KaTeX parse error: Undefined control sequence: \foo at position 1: \̲f̲o̲o̲
Expected behavior:
Foo macro to expand because it was defined globally.
Screenshots:
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context:
I'm trying to define some globally available macros that require arguments. Doing this through the
macros
option seems extremely complicated and I can not find a working example, I'd much prefer parsing some\gdef
statements. Unfortunately this does not work either.The text was updated successfully, but these errors were encountered: