I'm putting together some exams, and I'm playing around with enumerate. Enumerate is a fantastically flexible environment and gets along well with multicol nicely. However, multicol isn't exactly built to do what I'm trying to do with it. I really should be using tabular. However, enumerate does *not* get along with tabular.
What should I be using with tabular to stick a number (letter) in each spot? Should I just go back to a basic \Alph command?
General ⇒ Enumerate in other environments
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Enumerate in other environments
Hi Functormorphism,
the enumerate environment can be used inside the tabular environment, for instance in a p column:
Perhaps some lengths (space above etc.) could be adjusted, but it works generallly.
Stefan
the enumerate environment can be used inside the tabular environment, for instance in a p column:
Code: Select all
\documentclass[a4paper,10pt]{article}
\begin{document}
\begin{tabular}{l|p{2cm}}
Test &
\begin{enumerate}
\item One
\item Two
\end{enumerate}
\end{tabular}
\end{document}
Stefan
LaTeX.org admin
-
- Posts: 2
- Joined: Sun Jun 08, 2008 11:36 pm
Re: Enumerate in other environments
Can the environment extend across multiple columns and rows?
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Enumerate in other environments
Perhaps if you use \multicolumn or \multirow.
Here are examples and explanations for these commands: Creating Tables in LaTeX.
But if you want to use different rows or columns you would have to construct it by yourself using a self-defined counter,
Stefan
Here are examples and explanations for these commands: Creating Tables in LaTeX.
But if you want to use different rows or columns you would have to construct it by yourself using a self-defined counter,
Stefan
LaTeX.org admin
Re: Enumerate in other environments
What kind of things are you trying to do? Have an enumerate environment displayed over several columns and rows (such as answers to exercises, if you see what I mean)?
B.A.
B.A.