Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
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

1 Answer 1

up vote 7 down vote accepted

You can use \includegraphics in math mode.

so

\begin{equation}
2*\includegraphics{image1} + 3*\includegraphics{image2} = \includegraphics{image3}
\end{equatioon}
share|improve this answer
1  
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

Not the answer you're looking for? Browse other questions tagged or ask your own question.