example of higher-level TeX macros that use PGF