I try to create the arguments for a package which uses keyval, with macro, but this does not work:
Here is the demo code:
\documentclass{minimal}
\usepackage{listings}
\lstset{language=Pascal}
\def\flags{language=Pascal}
\lstset{\flags}
\begin{document}
\end{document}
The first \lstset works. The second fails with
! Package keyval Error: language=Pascal undefined.
Any ideas on how I can do this?