tags:

views:

339

answers:

1

I am trying to add an ordered list (enumerate) to a table (tabular) in LaTeX with the following:

 \begin{tabular}{|l|l|}
  \hline
  Event Flow & 
   \begin{enumerate}
   \item This is item 1
   \item This is item 2
   \end{enumerate}
  \\
  \hline
 \end{tabular}

But I am getting the following error:

! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ...

                                               l.34    \item T
           his is item 1 ?

Can anyone please tell me what is the problem exactly?

Because when I put the enumerate environment outside of the tabular environment, it works; so guess I am currently missing something with my example of the table.

+3  A: 
Charles Stewart
still getting an error with that :/
Andreas Grech
fixed and tested, sorry
Charles Stewart
+1 Excellent, works now. Thanks! By any chance, do you know I can then vertical-align the content ('Event Flow') of the first cell? Because it currently is center vertically-aligned.
Andreas Grech
There's no way to specify vertical alignment in tabulars (they're based on tex's \halign), so I guess the easiest is to put that in a parbox or minipage as well, and mess about with vskips there as well.
Charles Stewart