adding quick test macro since i do this all the time
consolidating two functions that do the exact same thing
updating default tpl to be mathjax aware