Added some macros for latex.