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.

I'd like to have an eqnarray environment (or equivalent) within a table caption. If I do this naively,

  % table stuff
      a &=& b \\ c &=& d

LaTeX falls over with LaTeX Error: \begin{table*} ended by \end{eqnarray}. How can I get what I want (I don't mind no equation numbers)?

share|improve this question

1 Answer 1

up vote 11 down vote accepted

Yes you can, if you enclose it in minipage:

    a &= b \\ c &= d
  • The \leavevmode\\ is there to make the equation push below the text Table:
  • As well, notice that eqnarray is deprecated and you may use align from \usepackage{amsmath}.
  • And as @David points out, don't forget to make a short caption as well for the List of tables.
  • Last point, numbering equations at such place is rather strange, as barbara pointed out. You can use \begin{align*}...\end{align*} to suppress it.
share|improve this answer
is a label really wanted on the multi-line equation, or (in this case) two labels? i find that mighty peculiar. –  barbara beeton Dec 6 '12 at 18:03
@barbarabeeton That's a matter of the taste of the author, but I'll add a notice on suppressing it. –  tohecz Dec 6 '12 at 18:04
@tohecz - This does not seem to be working when I'm trying to use equations in the caption of a tikzpicture (encapsulated inside a figure env). Is there some other way to go about it? –  TCSGrad Aug 22 '13 at 12:54
@TCSGrad The caption has to go outside tikzpicture (but inside figure). You can ask a follow-up question where you explain that this solution does not work for you. If you construct a Minimal (non)-Working Example, I'm sure we'll manage to solve the problem ;) –  tohecz Aug 22 '13 at 20:59
@tohecz - The question with MWE is here: tex.stackexchange.com/questions/129834/… –  TCSGrad Aug 24 '13 at 0:51

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.