fix mathjax configuration in writer