Convert \bf into \mathbf in mathmode

Hopefully this will solve some observed problems with mathjax