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 am trying to insert a subequation system inside a table. This is the idea of what I want:

\caption{Device Modelling Specifications.}
%\begin{tabular}{p{2.4cm} p{1.4cm} p{1.4cm} p{1.4cm}}
\begin{tabular}{l c c c}


\textbf{Fist model} & 
a = b
a2 = b2

How can I do it?

share|improve this question
Does it mean you're trying to squeeze several equations into a single cell in a table? – Count Zero Jun 30 '12 at 11:38
Please make your code into complete documents (known as MWE) that may be run. equations have to be in p columns or other par-mode contexts as in your commented out line. They may not be in c columns which have to be one line. – David Carlisle Jun 30 '12 at 11:39
We could do with an idea of what you are trying to achieve: this all sounds very odd. – Joseph Wright Jun 30 '12 at 12:03
@CountZero That is right, i have a table, where, in some cells I need to put different equations. – fernando garcía Jun 30 '12 at 12:22
@fernandogarcía please edit your question to be a complete document and then say in what way you need the output to change, so people have a clue how they can help. As I said in my first comment equations should work in p columns but not in c or l columns. – David Carlisle Jun 30 '12 at 13:34
up vote 2 down vote accepted

Here is a possible solution:



        \caption{Device Modelling Specifications.}
            \textbf{Fist model} &
                a &= b\\
                a2 &= b2
            \end{align*}} &
            another cell & last cell\\
            dummy & text & I & entered\\

As David Carlisle put it in his comment, you will need a paragraph type of cell, so l, r or c columns won't do. I assumed you would like to have things centered vertically, so I chose type m (note that this option requires the array package). If you have other preferences, instead of m you can use p (top) or b (bottom).

The amsmath package will give you the possibility to use the align environment, as I did in the example. You can also choose from a wide variety of environments described in the amsmath documentation.

One last thing: The entire align environment is put between curly braces, because otherwise LaTeX will try to expand it at the wrong moment and the document will not compile. This comes from the fact that align uses & to set the alignment points and the same character is used as a cell separator in tabular. Of course in an environment without ampersand (e.g. multline) there is no need for these braces.

share|improve this answer
Thanks, it worked :) – fernando garcía Jun 30 '12 at 14:56
I have already vote +, how to validate the answer? – fernando garcía Jun 30 '12 at 15:36
done. Sorry, i had not noticed – fernando garcía Jun 30 '12 at 15:44

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.