6

What is the best way to make a table/list that looks like this:

1. Item 1
        subitem      type    date
        subitem      type    date

2. Item 2
        subitem      type    date
        subitem      type    date
...

The subitems, types and dates should be aligned. I'm using the article document class with no special fonts.

3
  • Can you provide more details? Not sure I understand about the subitems. Mar 14 '12 at 18:32
  • In case you are looking for it, I have deleted my earlier answer as it contained an extra level of list nesting that is not needed since you are not numbering the sub items, in which case @GonzaloMedina's solution is cleaner. Mar 14 '12 at 23:13
  • I noticed that you have received answers to your questions but you haven't accepted any of them; please consider doing so. Mar 14 '12 at 23:43
8

You can simply use the standard enumerate and tabular environments:

\documentclass{article}

\begin{document}

\begin{enumerate}
  \item Item 1 \par
  \begin{tabular}{p{0.25\linewidth}p{0.25\linewidth}p{0.25\linewidth}}
    subitem & type & date \\
    subitem & type & date \\
  \end{tabular}
  \item Item 2 \par
  \begin{tabular}{p{0.25\linewidth}p{0.25\linewidth}p{0.25\linewidth}}
    subitem & type & date \\
    subitem & type & date \\
  \end{tabular}
  \item Item 3 \par
  \begin{tabular}{p{0.25\linewidth}p{0.25\linewidth}p{0.25\linewidth}}
    subitem & type & date \\
    subitem & type & date \\
  \end{tabular}
\end{enumerate}

\end{document}

enter image description here

Another option, if you want automatic calculation for the column width, would be to use the tabularx package:

\documentclass{article}
\usepackage{tabularx}

\begin{document}

\begin{enumerate}
  \item Item 1 \par
  \begin{tabularx}{\linewidth}{XXX}
    subitem & type & date \\
    subitem & type & date \\
  \end{tabularx}
  \item Item 2 \par
  \begin{tabularx}{\linewidth}{XXX}
    subitem & type & date \\
    subitem & type & date \\
  \end{tabularx}
  \item Item 3 \par
  \begin{tabularx}{\linewidth}{XXX}
    subitem & type & date \\
    subitem & type & date \\
  \end{tabularx}
\end{enumerate}

\end{document}

enter image description here

1
  • Of course, it would be better to put \newenvironment{mysubitem}{\begin{tabularx}{XXX}}{\end{tabularx}} in your preamble and use \begin{mysubitem} instead of \begin{tabularx}{XXX} and \end{mysubitem} instead of \end{tabularx}. Becuase if you will have later wanted to change the spacing or whatever, you only modify your definition of mysubitem instead of changing all occurences or tabularx.
    – yo'
    Mar 15 '12 at 22:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.