# Inserting a picture in an equation [duplicate]

Possible Duplicate:
Can I insert an image into an equation?

Is there any method to insert a picture in an equation? I am trying to write an equation where one of the elements of the equation is a small image. I need to obtain a pattern like this:

2 * image1 + 3 * image2 = image3 (equation number)

Please note, one simple way is to make a figure and put all of these elements in it and use \includegraphics to load it into LaTeX document as a figure, however, I need to have an equation with the above structure, not a figure.

-
I answered below but I think the referenced question is essentially a duplicate. If the answers there solve your problem we'll close this one as duplicate/ –  David Carlisle Oct 25 '12 at 18:11

## marked as duplicate by David Carlisle, Werner, Thorsten, lockstep, barbara beetonOct 25 '12 at 18:32

You can use \includegraphics in math mode.

so


2*\includegraphics{image1} + 3*\includegraphics{image2} = \includegraphics{image3}
\end{equatioon}

-
I need to be able to adjust the position. How can I make the center of the figure along the text line? –  Fluid Oct 25 '12 at 18:09
Any mechanism for moving a box would work, perhaps the adjustbox package is the easiest. –  David Carlisle Oct 25 '12 at 18:13
thanks a lot! It worked! –  Fluid Oct 25 '12 at 18:19