0

Is there a way to view the documentation for a particular command. Consider, as example \NewDocumentCommand. Is it possible to find its description and synopsis ?

Veak
  • 1
  • 4
    No, not in the sense you're asking. Packages and classes define commands and their documentation can be found in their respective documentations. Current kernel commands are documented in the places you already know about: usrguide, clsguide and interface3. – Alan Munn Oct 08 '23 at 01:01

1 Answers1

0

Please try:

\documentclass{article}

\show\NewDocumentCommand

\end{document}

In the terminal and the *.log file you then obtain:

> \NewDocumentCommand=\protected\long macro:
#1#2#3->\__cmd_check_definable:nNT {#1}\NewDocumentCommand {\cs_if_exist:NTF #1
{\msg_error:nnxx {cmd}{command-already-defined}{\use:nnn \token_to_str:N #1{}}{
\token_to_str:N \NewDocumentCommand }}{\__cmd_declare_cmd:Nnn #1{#2}{#3}}}.
l.3 \show\NewDocumentCommand