5 Feb
2009
5 Feb
'09
8:55 p.m.
On Thu, 5 Feb 2009, Wolfgang Schuster wrote:
A faster version of your macro is:
\def\MyFunction {\dosingleempty\doMyFunction}
\def\doMyFunction[#1]% {\removeunwantedspaces\executeifdefined{myfunction:#1}{\getvalue{myfunction:default}}}
\setvalue{myfunction:1}{\medspace dog } \setvalue{myfunction:2}{\medspace cat } \setvalue{myfunction:default}{\ldots}
Hello, I'm working now a lot with \setvariable and \getvariable. What are the advantages/disadvantages of set/get-value over set/get-variable? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/