Ensure math mode for scientific notation in tex

This makes sure math mode is enabled for latex output of scientific notation.