8

I see that I can use the command \NewDocumentCommand without adding \usepackage{xparse}

What package contains \NewDocumentCommand?

Is there a package that contains the xparse package?

Does any LaTeX compiler always contain it or is it only when using XeLaTeX?

5
  • 3
    Since 2020-10-01, (most of) xparse is built into LaTeX itself. Commented Jan 6, 2022 at 22:29
  • Most of xparse is now directly in the latex kernel, no package needed
    – daleif
    Commented Jan 6, 2022 at 22:30
  • 1
    And do remember NewDocumentCommand, case matters
    – daleif
    Commented Jan 6, 2022 at 22:31
  • If you can put a more detailed answer of which parts I'd gladly mark your answer as the answer.
    – Toma
    Commented Jan 6, 2022 at 22:31
  • 1
    @Toma Added, with a few relevant links Commented Jan 6, 2022 at 22:37

1 Answer 1

13

Since the 2020-10-01 release, most of[1] xparse (rebranded as ltcmd) is built into the LaTeX kernel, so \NewDocumentCommand is available out of the box (see section Providing xparse in the format in the ltnews32).


1: Some argument types, considered bad practice, were considered deprecated and not moved to the kernel (see this blog post on that). To use these argument types you still have to load the xparse package.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .