What package now provides \NewDocumentCommand

packagesxparse

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?

Best Answer

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.

Related Question