I'd like to have a macro where I can insert a key as argument and get a value which I have defined before. This should be similar to Create an array of variables but with strings/text instead of numbers.
The usage should look like:
\setprefix{foaf}{http://xmlns.com/foaf/0.1/}
and later
\getprefix{foaf}
which should return http://xmlns.com/foaf/0.1/.
When I try to use the code from the before mentioned question I get ! Illegal parameter number in definition of.
\@namedefand\@nameusedo. Oretoolbox'\csdefand\csuse. – cgnieder May 16 '13 at 17:47#in one URI which resulted in the! Illegal parameter number in definition of. – white_gecko May 16 '13 at 20:31urlpackage and change#2in David's answer to\url{#2}. – Werner May 16 '13 at 20:44