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 was curious if it was possible to create a matrix within a table? for example i wanted to create a 2 column table with left containing text and the right containing a matrix. Could someone tell me the syntax?

share|improve this question
up vote 4 down vote accepted

The suggested and generalized solution should be as follows. It has been used in my production. And vertical correction has been seriously taken into account for the sake of perfectness.




\newcommand*\One{\[\int_a^b f(x)\,\textrm{d}x = F(b) - F(a)\]}
\newcommand*\Two{\[\lim_{x\to y} \frac{y^2-x^2}{y-x}\]}
\newcommand*\Three{\[\begin{pmatrix} a & b\\ c & d \end{pmatrix}\]}

 Fundamental Theorem\\ of Calculus  & \One \CL
 Limit Function & \Two \CL
 \tikz \draw (2,1) circle (1) (1,1) -- (2,3) -- (3,0) -- cycle; & \Three \CL

enter image description here

Feel free to edit my answer if you think I did something that disobeys the best-practice protocols.

share|improve this answer
If you want to have a table than can be broken across pages, use longtable package instead. – kiss my armpit Nov 7 '13 at 3:52

This is quite simple to do, but vertical spacing issues will quickly become a problem. The following example will work in a pinch, but if you search the site for "math in tables" you will find many questions regarding proper spacing of math inside a tabular environment. (Or see Marienplatz's answer. I've used the array package to create a column that is in mathmode.

\newcolumntype{C}{>{$}c<{$}} % centred math column
 This is an identity matrix &
\left(\begin{array}{ccc}1 & 0 & 0 \\0 & 1 & 0 \\0 & 0 & 1\end{array}\right)

output of code

share|improve this answer
I am so sorry, the op changed the accepted answer. – kiss my armpit Dec 15 '13 at 17:02

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.