I have defined the following variable storing my margin settings:
\def \geometryTitlepage {
left=25mm,
right=25mm,
top=25mm,
bottom=25mm
}
Then in the titlepage I want to set \newgeometry
\begin{titlepage}
\newgeometry{
\geometryTitlepage
}
\begin{center}
*
*
*
\end{center}
\restoregeometry
\end{titlepage}
But the compiler throws an error:
!Package keyval Error: left=25mm, right=25mm, top=25mm, bottom=25mm undefined.
When I put the values by hand everything is ok. But when I use variable it seems to add undefined at the end of the string. What am I doing wrong?
\expandafter\newgeometry\expandafter{\geometryTitlepage}– egreg Dec 22 '16 at 23:29