fix mathjax typesetting