Graphics, Figures & TablesVertical centering of a cell containing an equation

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
davidonlaptop
Posts: 6
Joined: Sat Apr 03, 2010 9:45 am

Vertical centering of a cell containing an equation

Post by davidonlaptop »

Hi!

How can I use 2 columns so that the content of each column is vertically aligned to the top?

The closest of what I can get is this :

Code: Select all

\begin{tabular}{ p{.25\textwidth}@{\extracolsep{5mm}} p{.60\textwidth} }
  i love lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum
  &
  this is an equation :
  \begin{align}
    \texttt{works fine if not using the \& character :} \\
%    y &= buggy
  \end{align}
\end{tabular}
However, if whenever I use the "align" environment with the "&" character, I get a forbidden control sequence error.

Any idea?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply