Insert pH with chemmacros in LaTeX

chemmacros

I see there is a way to insert pH with chemmacros in LaTeX. On the page 6 of chemmacros
enter image description here

But my code reminds me that ! Undefined control sequence. l.5 pH \ph

\documentclass{article}
\usepackage{chemformula,chemmacros}
\begin{document}
pH \ph

\end{document}

Which cause this problem?

Best Answer

Commands in LaTeX are case sensitive. You should say \pH instead of \ph.

\documentclass{article}
\usepackage{chemformula,chemmacros}
\begin{document}
    pH \pH
\end{document}

output