13

Here are a few cases in which one could use such a list:

  • Is there a "prepend" version of \g@addto@macro? A "local" version?
  • What's the most efficient way of gobbling n characters?
  • Can I use LaTeX's internal macros to define my own starred commands?

etc.

lockstep
  • 250,273
Yossi Gil
  • 15,951

2 Answers2

8
Martin Scharrer
  • 262,582
  • Does this mean this question is a duplicate of http://tex.stackexchange.com/q/4790/4012? – doncherry Nov 01 '11 at 16:50
  • The general question is indeed a duplicate, but there also two specific tasks discussed here which makes the question IMHO valid to be on its own. – Martin Scharrer Nov 01 '11 at 18:13
4

To add some information regarding a local version of \g@addto@macro:

  • KOMA-Script classes define \l@addto@macro as a local version.

  • While \gappto from etoolbox works like \g@addto@macro, a local version is \appto. Prepending versions have been mentioned by Martin.

Stefan Kottwitz
  • 231,401