beamer add tag
After reading I'm now looking for an example how I would use `\NewDocumentCommand` to create an overlay-aware macro for beamer.
Top Answer
Here an example with both the classic `\newcommand` syntax and `\NewDocumentCommand`. The key difference is that within the macro definition the `#1` needs to be surrounded by `<>`.




\NewDocumentCommand{\makeblue}{D<>{1-} m}{{\color<#1>{blue}#2}}

\NewDocumentEnvironment{makeyellow}{ D<>{1-} }{




Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.