It is hard to write macros in LaTeX.