Math & SciencePicture in Formula

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
davidoe
Posts: 4
Joined: Wed Apr 15, 2009 11:42 am

Picture in Formula

Post by davidoe »

Hi everybody,
I have a little problem and would be really happy if someone could help me...
I have to write mathematical equation and I want to include pictures as these expressions can be expressed diagrammatically (Feynman diagrams)... So, i write

Code: Select all

\begin{align}
  f=\includegraphics[width=20mm]{picture.jpg}
\end{align}
which works, but the picture is the just placed align with the formula, so it is to high, I would like to shift it down, but I do not now how to this. I hope the problem is clear, otherwise ask me!!
Can anybody help me?
Thanks a lot in advance!!
David

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Picture in Formula

Post by Stefan Kottwitz »

Hi David,

you could use \parbox to center vertically:

Code: Select all

\begin{align}
f=\parbox{20mm}{\includegraphics[width=20mm]{picture.jpg}}
\end{align}
Stefan
LaTeX.org admin
davidoe
Posts: 4
Joined: Wed Apr 15, 2009 11:42 am

Re: Picture in Formula

Post by davidoe »

Thanks a lot, this works perfectly well!!
Post Reply