working implementation of latex-esque macros