-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Before reporting a bug
- Check common issues.
- Check the bug is reproducible in the demo. If not, check KaTeX is up-to-date and installed correctly.
- Search for existing issues.
Describe the bug:
\providecommand
overwrites the existing macro if already defined.
(La)TeX code:
\newcommand{\foo}{a}
\providecommand{\foo}{b}
\foo
Expected behavior:
\providecommand
should do nothing if the macro already exists.
Environment (please complete the following information):
- KaTeX Version: 0.16.9
- Device: Desktop
- OS: macOS 14.2.1
- Browser: Firefox
- Version: 122.0.1