I have obviously missed some updated information about specifying LaTeX commands What I am used to is along the lines of
\newcommand{<command-name>}[<numargs>][<default>]{<command definition>}
and now I have seen that there is a definition like
\NewDocumentCommand \sidenote { o o +m }
which means nothing to me and which has no obvious relationship to the way I have specified new commands for the last 3 or so decades.
Where can I find out about this complete change in the command definition facilities and, possibly, why weren't there any obvious announcements about it?
I am on the comp.text.tex newgroup and I run TeXlive 2021 but am waiting for the DVD to arrive before updating to 2022.
texdoc xparse.o o +mmeans three argument, two optional and one mandatory which can be long. – Ulrike Fischer Jul 01 '22 at 18:43usrguide(3))? – Joseph Wright Jul 01 '22 at 18:49\usepackage{xparse}to make use of\NewDocumentCommand{}{}. So, if you see this in code you need to look at thexparsedocumentation. It is actually much easier to control parameters withxparse, once you learn it, and only need to read a few pages of documentation. The older\newcommandstill works. – Peter Grill Jul 01 '22 at 21:15