GeneralEnumerate in other environments

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Functormorphism
Posts: 2
Joined: Sun Jun 08, 2008 11:36 pm

Enumerate in other environments

Post by Functormorphism »

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?

Recommended reading 2024:

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

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

Post by Stefan Kottwitz »

Hi Functormorphism,

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}
Perhaps some lengths (space above etc.) could be adjusted, but it works generallly.

Stefan
LaTeX.org admin
Functormorphism
Posts: 2
Joined: Sun Jun 08, 2008 11:36 pm

Re: Enumerate in other environments

Post by Functormorphism »

Can the environment extend across multiple columns and rows?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Enumerate in other environments

Post by Stefan Kottwitz »

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
LaTeX.org admin
balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: Enumerate in other environments

Post by balf »

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.
Post Reply