Support for the LaTeX package `xparse`
@dpvc is already working on this.
Since Dec 28, 2025.
- Dominant language
- JavaScript
- Stars
- 10.9k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem? Please describe.
LaTeX Workshop uses MathJax to preview equations when hovering above them. However, when the commands, created with \NewDocumentCommand from the package xparse, are used in the equation, it is not rendered properly in the preview.
Describe the solution you'd like
It would make sense to have some support for the commands in xparse, at the very least for \NewDocumentCommand, since it provides one of the best options for LaTeX macros with 2 or more optional parameters; something that is just not possible when using the vanilla \newcommand.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.