I am trying to make a document and using \mathrm inside an align* environment. But it doesn't works, any help?
Here I paste a ME (it doesn't work but it is complete)
\documentclass[12pt,twoside]{report}
\usepackage{booktabs}
\usepackage[headheight=18pt,a4paper, width=150mm, top=25mm, bottom=25mm, bindingoffset=6mm, headsep=18pt]{geometry}
%aca utilizo la geometría de la hoja
\usepackage[spanish,es-noquoting]{babel}
%interprete de idioma castellano
\usepackage[utf8]{inputenc} %relacionado al input
\usepackage[T1]{fontenc}
\usepackage{enumitem}
\begin{align*}
{\mathrm{pH}}={\mathrm{p}}K_{{\mathrm{a}}}+\log _{{10}}\left({\frac {[{\mathrm{A}}]}{[{\mathrm{HA}^{+}}]}}\right)\\
\intertext{Para un pKa de 14.0, correspondiende a la guanidina sustituida}
{\mathrm{\num2.5e-7}}=\frac{[{\mathrm{A}}]}{[{\mathrm{HA}^{+}}]}\\
\intertext{Para 9.5 del cis dihidro dihidroxi imidazol}
{\mathrm{\num0.01}}=\frac{[{\mathrm{A}}]}{[{\mathrm{HA}^{+}}]}\\
\intertext{Para 6.2 del trans dihidro dihidroxi imidazol}
{\mathrm{\num15.85}}=\frac{[{\mathrm{A}}]}{[{\mathrm{HA}^{+}}]}\\
\end{align*}

documentenvironment. 2) theamsmathpackage (which definesalign). 2) thesiunitxpackage (which defines\num) – Torbjørn T. Sep 27 '17 at 09:23H^+,HAandA^-is chemical content (Abeing an arbitrary acid) which is typically typeset upright. I'd use thechemformulaandchemmacrospackages for typesetting content like this. – cgnieder Sep 27 '17 at 09:48chemformula's\chworks inside math. Alsochemmacros'\pHand\pKado work inside math… – cgnieder Sep 27 '17 at 10:30