refine math representation for mathjax
ref words