A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/KaTeX/KaTeX/issues/3928 below:

\providecommand overwrites the existing macro · Issue #3928 · KaTeX/KaTeX · GitHub

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:

Screenshots:

Environment (please complete the following information):


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4