What does the macro \csappto do, exactly? I've seen it in multiple code snippets throughout the website and on the internet in general, but I've never seen an explanation of what it does. I've looked up various packages' documentation to try and find it, but I've never been able to. Where is it defined? In the core of TeX? (It's not documented in tex.pdf either)


It is defined in the etoolbox package and can be used to patch macros. More precisely (from the etoolbox documentation):

  • \appto<hook>{code}: This command appends arbitrarycode to a hook.
  • \csappto{csname}{code}: Similar to \appto except that it takes a control sequence name as its first argument.
  • Are we actually supposed to use angle brackets with \appto? – einpoklum Nov 2 '19 at 16:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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