# Writing an equation without italic font - chemistry packages

I am dealing with two issues:

• First i need to write chemistry expressions like the one shown below not with italic but with upright font.
• Second i want to know if there is any useful chemistry package for those kind of formulaes. And if it is, can you use it with the formulaes in the image?It will be helpful.

The MWE of what is shown below is the next:

\documentclass{article}

\usepackage{amsmath}
\usepackage{nccmath}

\begin{document}

Los equilibrios paralelos del $ATP$, $ADP$ y $P_i$ a un pH cercano a 7 permiten reescribir $K_1$ del siguiente modo:
\begin{align*}
[MgATP^{2-}]} \\[1em]
\end{align*}

\end{document}


• For typesetting chemical formulae, you can use mhchem or chemformula. – Troy Jun 3 '17 at 13:31
• As suggested an hour ago mhchem and chemmacros. A more complete list can be found on mychemistry.eu. – Johannes_B Jun 3 '17 at 13:35
• @Troy thanks. But i am not quite sure how to use it. That's one of the reasons for the post.. – santimirandarp Jun 3 '17 at 13:36
• @santimirandarp For mhchem, use something like \ce{ADP}, for chemformula, use something like \ch{ADP}. Have you attempted to read the documentations of the above suggested packages? – Troy Jun 3 '17 at 13:38

Here's it for chemformula:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}

\usepackage{amsmath}
\usepackage{nccmath}
\usepackage{chemformula}

\begin{document}

Los equilibrios paralelos del \ch{ATP}, \ch{ADP} y \ch{P}$_{i}$ a un pH cercano
a~$7$ permiten reescribir $K_1$ del siguiente modo:
\begin{align*}
\times
\bigl([\ch{HPO4^2-}]+[\ch{H2PO4^-}]+[\ch{MgHPO4}]\bigr)}
{[\ch{ATP^4-}]+[\ch{HATP^3-}]+[\ch{MgATP^2-}]} \\[1em]
K_1&=K\times
\left\lgroup
\times
\left(1+\mfrac{10^{-\ch{pH}}}{K_{\ch{H2PO4^2-}}}
+ \mfrac{10^{-\ch{pMg}}}{K_{\ch{MgHPO4}}}\right)}
{\left(1+\mfrac{10^{-\ch{pH}}}{K_{\ch{ATP^3-}}}
+ \mfrac{10^{-\ch{pMg}}}{K_{\ch{MgATP^2-}}}\right)
\times10^{-\ch{pH}}}
\right\rgroup
\end{align*}

\end{document}


• Great egreg, it was simple, i should have done it for myself, but was confused because there was not much information in the web about that package. It works, thanks. – santimirandarp Jun 3 '17 at 14:29
• @santimirandarp Don't search the web, get the package documentation. The documentation is just as free as the package and LaTeX, and it is installed (copied) to your computer while installing the package. – Johannes_B Jun 4 '17 at 6:41
• @santimirandarp you can find (almost) every LaTeX package on CTAN http://www.ctan.org/pkg/<pkg> and on your on computer using texdoc <pkg> on the command line. BTW: you might also want to take a look at the chemmacros for stuff like \pH, … – clemens Jun 16 '17 at 7:50

Ditto for all the other abbreviations.

\documentclass{article}

\usepackage{amsmath}
\usepackage{nccmath}

\begin{document}

Los equilibrios paralelos del $ATP$, $\ADP$ y $P_i$ a un pH cercano a 7 permiten reescribir $K_1$ del siguiente modo:
\begin{align*}