Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\providecommand overwrites the existing macro #3928

Open
3 tasks done
artakase opened this issue Feb 19, 2024 · 0 comments
Open
3 tasks done

\providecommand overwrites the existing macro #3928

artakase opened this issue Feb 19, 2024 · 0 comments
Labels

Comments

@artakase
Copy link

Before reporting a bug

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.

QuickLaTeX screenshot:
ss2

Screenshots:
ss1

Environment (please complete the following information):

  • KaTeX Version: 0.16.9
  • Device: Desktop
  • OS: macOS 14.2.1
  • Browser: Firefox
  • Version: 122.0.1
@artakase artakase added the bug label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant