7

In section 6.1 of clsguide.pdf (link: https://www.ctan.org/pkg/clsguide), under "Commands superseded for new material", the class guide lists the command \DeclareRobustCommand and \DeclareRobustCommand* as commands that "are widely used but have been superseded by more modern methods."

My question is, then, what commands are best used in place of the aforementioned commands? Unless I'm mistaken, the class guide doesn't provide this information. In source2e.pdf, \DeclareRobustCommand is used quite often.

1 Answer 1

8

The engine-robust command set \NewDocumentCommand, etc., are now the recommended method for creating document commands. These are documented in usrguide.

2
  • Is \NewDocumentCommand and friends recommended even if the created document command has zero arguments? Jun 19, 2023 at 9:19
  • 1
    @User23456234 If it's a command (so containing non-expandable material), then yes
    – Joseph Wright
    Jun 19, 2023 at 9:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .