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 ?
Asked
Active
Viewed 102 times
0
Veak
- 1
1 Answers
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
Przemysław Scherwentke
- 37,268
-
4I'm not sure this counts as documentation. It's the definition of the macro, but doesn't tell you anything more, and for complex commands is going to be quite un-understandable. – Alan Munn Oct 08 '23 at 00:57
-
-
-
-
1
usrguide,clsguideandinterface3. – Alan Munn Oct 08 '23 at 01:01