\documentclass{article}
\usepackage[mathparserspeculate]{latexml}
\usepackage{amsmath}
\begin{document}
\section{Function speculations}

\[ f (x) \]
\end{document}
