-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Support OPTIONAL ARGUMENT in user defined macro by \newcommand #2228
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
Comments
Indeed, this shouldn't be too hard to implement, because KaTeX already internally supports optional arguments (without default values). A small extension to |
I am not very familiar with this project, hope for the pull request in the future. |
\newcommand is not supported by KaTeX/KaTeX#250
Any update on this? Does KaTeX support optional argument now? |
Alas, no. When there are updates, they will appear here. |
Upvote and bump, for what it's worth 😅 |
Is your feature request related to a problem? Please describe.
It seems that optional arguments are not supportes by user defined
\newcommand
.Just see the following code.
Describe the solution you'd like:
Would this optional argumant feature be implemented just like
\sqrt
macro? this is a predefined macro inKaTeX
with optional argument support.Link to or name of a (La)TeX package that provides the same feature:
N/A
Describe alternatives you've considered:
N/A
Additional context:
N/A
The text was updated successfully, but these errors were encountered: