TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Please is there a way to avoid xkeyval package bombing out in endless loop, as implied by the following simplified case?



I get "If you really absolutely need more capacity, you can ask a wizard to enlarge me."

share|improve this question

I and Hendri Adriaens (the author of xkeyval package) agree that the following patch does solve the problem. We also agreed to collaborate to integrate xkeyval, ltxkeys and skeyval packages into xkeyval2, if we are able to find spare time.

  \@latex@error{You can't nest \noexpand\setkeys in preset keys.
    \MessageBreak That could cause an endless loop}\@ehd
        {\csname XKV@\XKV@header#2\endcsname}%
share|improve this answer

Your Answer


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.