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'm trying to make a table of formulae. I've tried a bunch of different approaches (including \parbox, align, eqnarray, etc.), but none of these satisfy all of the requirements:

  • \hline (or something equivalent) can still be used.
  • Vertical lines can be put between columns
  • Every cell can contain a formula in \displaystyle
  • Formulae are centered both horizontally and vertically.

Does anybody know an environment that does this?

share|improve this question
Please add a minimal working example (MWE) that illustrates your problem. – adn Dec 14 '11 at 11:07
@adn: didn't have one; only examples that meet part of the criteria – Martijn Dec 14 '11 at 12:59
up vote 4 down vote accepted

Perhaps the array packages offers a partial solution:


enter image description here

share|improve this answer
the >{\displaystyle}c argument appears to produce errors when used in a beamer frame... – daaxix Feb 19 at 3:33
\newcolumntype{C}{>{$\displaystyle} c <{$}}

\begin {tabular}{| C | C |}\hline
\frac1{1+x^2} & \mathrm{atan}(x)+C \\\hline
\sqrt{x^2+h}  & \ln\left(x+\sqrt{x^2+h}\right)+C\\\hline

enter image description here

share|improve this answer
+1 for the idea of defining a new column type. – Martijn Dec 14 '11 at 12:59

For this kind of table, it's also possible to use the next code. I keep \tvito get the same height for each row and I use p{#1} to control the width of each column.


\newcommand{\tvi}{\vrule height 17pt depth15pt width 0pt} 

\newcolumntype{x}[1]{>{\hfil$\displaystyle} p{#1} <{$\hfil}} 

\begin{tabular}{x{4cm} x{4cm} }\\
\text{\bfseries{Fonctions}}   & \text{\bfseries{ Primitives}}       \\ \midrule
\tvi   \frac{ 1} {1+x^2 }     & \mathrm{ arctan}\,(x)+C             \\ \midrule 
\tvi   \frac{1}{\sqrt{x^2+h}} & \log\bigl(x+\sqrt{x^2+h}\,\bigr)+C  \\                                                                         


enter image description here

Without an environment but with an old method : TeX

\def\tvi{\vrule height 12pt depth 5pt width 0pt}

\halign {\tv#&&\cc{$\displaystyle#$}&\tv#\cr
&\omit\cc{\bf Fonctions}&&\omit\cc{\bf Primitives}&\cr
height 17pt depth15pt&{1\over 1+x^2}&&{\rm Arctg}\,(x)+C&\cr
height 17pt depth17pt&{1\over\displaystyle\sqrt{x^2+h}}&&

enter image description here

share|improve this answer
Of course, it's debatable whether vertical lines are really necessary in such a table. – egreg Dec 14 '11 at 12:12
Damn. @egreg beat me to it... – qubyte Dec 14 '11 at 13:49

Just to offer an alternatively solution. I wouldn't use any lines to box the equations, especially as this is a "Table of Formulae", which should have a similar style to the rest of the tables of contents. It is also likely that the table will go over a page so rather use a longtable. It is also a good idea to include the page reference where the equation was firstly described.

You should have the notation or lists of symbols preceding such a table,

enter image description here

Followed by a pagebreak and the Table of Formulas

enter image description here

Here is the minimal,

 \[e= \frac{2}{a}
             \sqrt{s(s-a)(s-b)(s-c)} \] 

\markboth{\Headings{PLANE GEOMETRY.}}{\Headings{TABLE OF FORMULAS.}}%

\subsection{PLANE FIGURES.}


$P$ &=& perimeter. \\
$h$ &=& altitude. \\
$b$ &=& lower base. \\
$b'$ &=& upper base. \\
$R$ &=& radius of circle. \\
$D$ &=& diameter of circle. \\
$C$ &=& circumference of circle. \\
$r$ &=& apothem of regular polygon. \\
$a$, $b$, $c$ &=& sides of triangle. \\
$s$ &=& \( \frac{1}{2}(a+b+c) \). \\
$p$ &=& perpendicular of triangle. \\
$m,n$ &=& segments of third side of triangle adjacent to \\
&& sides $b$ and $a$, respectively. \\
$S$ &=& area. \\
$\pi$ &=& 3.1416.


\multicolumn{5}{l}{\hspace{-2ex}\textbf{Line Values.}} \\
\multicolumn{5}{r}{\tiny PAGE}\\
\multicolumn{4}{l}{Altitude of triangle on side $a$,} \\
& $h$ &=& \( \displaystyle \frac{2}{a}
             \sqrt{s(s-a)(s-b)(s-c)} \) & \pageref{aref} \\
\multicolumn{4}{l}{Median of triangle on side $a$,} \\
& $m$ &=& \( \frac{1}{2} \sqrt{2(b^2+c^2) - a^2} \) & \pageref{aref} \\
\multicolumn{5}{l}{\hspace{-2ex}\textbf{Areas.}} \\
Rectangle,     & $S$ &=& $b\times h$ & \pageref{aref} \\
Square,        & $S$ &=& $b^2$ & \pageref{aref} \\
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.