Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to use an itemize or enumerate list inside a table cell. For this there should be no margin around the list. My question is, what is best practice to do this? I found different solutions for example using a special package and setting options or using a native package and create a small environment where to set left margin to 0.

share|improve this question
add comment

1 Answer

up vote 14 down vote accepted

I recommend the package enumitem with the option inline

\documentclass{article}
\usepackage[inline]{enumitem}
\begin{document}
\begin{tabular}{c|p{6cm}|}
Text&
\begin{enumerate*}[label=(\arabic*.),itemjoin={\newline}]
\item foo
\item bar
\end{enumerate*}
\end{tabular}
\end{document}

enter image description here

share|improve this answer
    
Very nice package, thank you! –  strauberry Oct 23 '11 at 9:12
add comment

Your Answer

 
discard

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.