[texhax] tikz-options as macro

Arno Trautmann Arno.Trautmann at gmx.de
Sun Jul 25 17:38:27 CEST 2010

Hi all,

I have some problems using tikz: I try to pass some options in a macro,
in the following way:



\draw[\reddot] (1,1) to (1,2);

but this gives me:

! Package pgfkeys Error: I do not know the key '/tikz/red,dotted' and I
am goin
g to ignore it. Perhaps you misspelled it.

See the pgfkeys package documentation for explanation.
Type  H <return>  for immediate help.

l.18 \draw[\test]
                  (1,1) to (1,2);

So pgf thinks I am passing “red,dotted” as one option. Is there any
trick to avoid this behaviour? I would like to use this way of passing
several options in a package – an alternative would be to pass
\red,\dot, but that is not very nice …

Thanks for any help,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://tug.org/pipermail/texhax/attachments/20100725/611033f9/attachment.bin>

More information about the texhax mailing list