[texhax] pgfkeys and value which is a command
Heiko Oberdiek
heiko.oberdiek at googlemail.com
Mon May 10 00:58:18 CEST 2010
On Sun, May 09, 2010 at 06:24:45PM -0300, José Romildo Malaquias wrote:
> 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}
Works fine here (current TL):
pdfTeX in DVI mode:
Here is how much of TeX's memory you used:
360 strings out of 493849
5894 string characters out of 3149147
51381 words of memory out of 3000000
3713 multiletter control sequences out of 15000+200000
3938 words of font info for 15 fonts, out of 3000000 for 9000
714 hyphenation exceptions out of 8191
23i,5n,31p,220b,107s stack positions out of
5000i,500n,10000p,200000b,50000s
and similar pdfTeX in PDF mode:
Here is how much of TeX's memory you used:
361 strings out of 493857
5904 string characters out of 3149662
51371 words of memory out of 3000000
3712 multiletter control sequences out of 15000+200000
3938 words of font info for 15 fonts, out of 3000000 for 9000
714 hyphenation exceptions out of 8191
23i,5n,31p,220b,107s stack positions out of
5000i,500n,10000p,200000b,50000s
Yours sincerely
Heiko Oberdiek
More information about the texhax
mailing list