Questions tagged [robust-commands]

64 questions
7
votes
1 answer

Clarification about moving arguments

I was reading in latex2e about the use of \protect. In section 13.8 it mentions "expressions in tabular and array enviornments" as examples of moving arguments. I was a bit surprised by this. Could someone clarify what's meant here? Or, why…
A.Ellett
  • 50,533
7
votes
2 answers

robust version of \@ifnextchar?

The command \@ifnextchar cannot be used in a \section and the like. It fails with a "TeX capacity exceeded" message. This is pretty clearly related to the recycling of the section name for the table of contents and/or page marks, as shown by the…
alexis
  • 7,961