Possible Duplicate:
tutorial for making tikz/pgf library
I want to write a TikZ-based package. What TikZ/PGF-specific things should I be aware of? For those who've written such packages, what do you wish you'd known when you started out?
The ultimate goal is to write to be able to draw illustrations of common Computer Science data structures.
pgfkeysat the start" or "Catcodes are a pain in the neck" but those wouldn't really help. So I don't think that either question is a good fit for the site. However, it's not a bad question so I'm happy for one such to stay as a place where someone could record such hints and tips ... – Andrew Stacey Feb 23 '12 at 09:54