I have read the docs and the tutorial about kvoptions and xkeyval but I can not get my xkeyval example to compile.

This is the error:

! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
l.10 \define@choicekey*{test}[war

which I get with this code:


% Test using xkeyval

Errorlevel is: \KV@test@errorlevel%



what am I doing wrong?

(posted also on de.comp.text.tex, but with no answer)


According to the syntax


check delimiters, the first argument is optional, the second argument cannot be in brackets. For example:


Also consider specifying the family for \ProcessOptionsX, such as


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.