2

How can I write some text under a formula? The effect I would like to achieve is the following

enter image description here

I would like the two words, "prodotti" and "reagenti", to be placed under each summation.

cgnieder
  • 66,645
user3713179
  • 635
  • 2
  • 11

2 Answers2

7

Something like this?

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\Delta_\mu G^\phi = \underset{\text{prodotti}}{\sum \nu \Delta_f G^\phi} - \underset{\text{reagenti}}{\sum \nu \Delta_f G^\phi}
\]
\end{document}
Vincent
  • 20,157
  • 1
    Yes, exactly what I was looking for! P.S. Is \mu actually the underscore for gibbs free energy reaction? – user3713179 May 09 '22 at 14:44
  • @user3713179 I don't know, in fact I have no idea what this equation is supposed to mean. I just thought I read a \mu on the picture. – Vincent May 09 '22 at 15:01
  • 1
    @user3713179 From what I see looking around, it should be \Delta_{\mathrm{r}} – egreg May 09 '22 at 21:41
2

Inspired from this old question Two questions about the stackengine package: you can obtain the same result of \underset. Note that \setstackgap{S}{3pt} it is important to put the text more below (see the parameter 3pt}.

\documentclass[12pt]{article}
\usepackage{stackengine}
\usepackage{amssymb}
\stackMath
\setstackgap{S}{3pt}
\begin{document}
\[\Delta_{r} G^{\phi}=\stackunder{ \displaystyle\sum \nu \Delta_f G^\phi}{\textup{ prodotti}} - \stackunder{\displaystyle\sum \nu \Delta_f G^\phi}{\textup{reagenti}}\]
\end{document}

enter image description here

Or this:

\documentclass[12pt]{article}
\usepackage{stackengine}
\usepackage{amssymb}
\stackMath
\setstackgap{S}{2pt}
\begin{document}
\[\Delta_{r} G^{\phi}=\stackunder{ \displaystyle\sum \nu \Delta_f G^\phi}{\textup{ \scriptsize prodotti}} - \stackunder{\displaystyle\sum \nu \Delta_f G^\phi}{\textup{\scriptsize reagenti}}\]
\end{document}

enter image description here

Sebastiano
  • 54,118