[texhax] pgfkeys and value which is a command
José Romildo Malaquias
j.romildo at gmail.com
Sun May 9 23:24:45 CEST 2010
When storing a value which is a command I am getting TeX capacity
exceeded error. How to avoid it?
\documentclass[a4paper]{article}
\usepackage{pgfkeys}
\makeatletter
\pgfkeys{
/test/.cd,
fontsize/.store in = \test at fontsize,
}
% a test command
\newcommand\test[2][]{%
\begingroup
\pgfqkeys{/test}{#1}%
\fbox{\test at fontsize #2}%
\endgroup
}
\makeatother
\begin{document}
\test[fontsize=\large]{Bar}
\end{document}
Romildo
More information about the texhax
mailing list