parse all math_def equation classes into an aggredate 'math-macros' veriable that need to be included in the template