Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
add comment

2 Answers

up vote 7 down vote accepted
share|improve this answer
    
Does this mean this question is a duplicate of tex.stackexchange.com/q/4790/4012? –  doncherry Nov 1 '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 1 '11 at 18:13
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.