As part of a document I'm writing, I'm trying to include an image as part of an equation, I have managed to get this to work, however the image's bottom is set to the same height as the bottom of the equation rather then the image's centre.
example code:
\begin{equation}
P_{i} = \includegraphics[scale = 0.4]{figure.pdf}
\end{equation}
I am wondering how to adjust this so that the centre line of the image is aligned with the equals sign.
\vcenter{\hbox{\includegraphics[scale = 0.4]{figure.pdf}}}
instead of\includegraphics[scale = 0.4]{figure.pdf}
.