TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following problem: I would like to have images of Feynman diagrams as part of equations. Using


I had success in as far as


does put the image roughly where it's meant to be but shifted upwards to the top half of the brackets. Anyone have any ideas as to how I can get the image to appear vertically centered and ideally get the brackets to scale properly?

share|improve this question
You can use \raisebox{-2ex}{\includegraphics...} to adjust the position, or perhaps simpler use the adjustbox package – David Carlisle Nov 1 '12 at 15:10
up vote 6 down vote accepted

In math mode there is the command \vcenter which will center material vertically. So you can set up your command as follows:





\( a \left( \imineq{example-image-a}{4} \right) b \)


Sample output

share|improve this answer
Thanks a lot, that did the trick! – Ziegl Nov 4 '12 at 19:39

If you don't mind adjusting it manually, you can use \raisebox. But I'm not sure this is the best way. \vcenter might be an option. You might have to put the image in an hbox to use use this.

As far as the brackets goes, I would manually specify the size you want, e.g. \bigl( and \bigr).

A more satisfying answer might be to use TikZ which gives you a great deal of power for positioning such things. Here is an example of someone doing something similar.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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