Tx · LaTeX & TikZ

How to Use the multienum Package Inside enumerate

Published By the 9to5Science editorial team

At a glance

  1. 1. Load the package

    Add \usepackage{multienum} to your document preamble.

  2. 2. Add an outer item

    Start a nested block after an \item in the surrounding enumerate list.

  3. 3. Add column entries

    Use \mitemxx with two arguments for each row of a two-column multienumerate.

  4. 4. Close both lists

    End multienumerate first, then close the outer enumerate environment.

The multienum package can be used inside a regular enumerate list. The key is to place its multienumerate environment inside an outer \item, rather than trying to replace the outer list’s environment. In a two-column multienumerate, each \mitemxx command takes two entries, one for each column.

Minimal working example

\documentclass{article}
\usepackage{multienum}

\begin{document}

\begin{enumerate}
  \item Choose the correct answers:
    \begin{multienumerate}
      \mitemxx{First choice}{Second choice}
      \mitemxx{Third choice}{Fourth choice}
    \end{multienumerate}
  \item Explain your choice.
\end{enumerate}

\end{document}

The outer list has two items. The first item contains a separate two-column list. The \mitemxx commands supply the entries in pairs, row by row: the first argument goes in the left column and the second in the right. The second outer item follows after the inner environment ends.

The package name in the preamble is multienum, while the environment name is multienumerate. These names are different, so use each in the right place. The example uses two columns; the number of arguments in the \mitem... command should match the number of entries you want in that row.

Why nesting works

An enumerate environment is a list, and a list item can contain a nested block. After LaTeX processes \item, it is ready for the item’s text and any content belonging to that item. The multienumerate environment is that content. It must start before the outer list’s \end{enumerate} and must end before the next outer \item if you want it included in the preceding item.

The inner and outer lists are distinct. The outer list continues with its own next item after multienumerate ends. The inner entries have their own labels and layout; they do not become additional items in the outer list.

If you need one continuous numbered list

If your goal is to arrange one ordinary enumerate list in columns while keeping a single sequence of labels, use multicols around the list instead of creating a separate multienumerate list. For example, load multicol and write:

\documentclass{article}
\usepackage{multicol}

\begin{document}

\begin{multicols}{2}
\begin{enumerate}
  \item First entry
  \item Second entry
  \item Third entry
  \item Fourth entry
\end{enumerate}
\end{multicols}

\end{document}

This is a single enumerate environment laid out in two columns. By contrast, nesting multienumerate inside an outer item creates an inner list within that item. Choose the approach based on whether you want a nested, separately labeled block or one list flowing across columns.

Common mistakes

  • Using the wrong environment name: write \begin{multienumerate}, not \begin{multienum}.
  • Forgetting the package: \usepackage{multienum} belongs in the preamble, before \begin{document}.
  • Putting the nested block outside an item: in a regular list, begin the inner environment after an outer \item.
  • Mismatching braces or endings: each \mitemxx needs two braced arguments, and multienumerate must end before the outer enumerate.
  • Expecting continuous outer numbering: the inner entries are not extra items in the outer list. Use multicols around one enumerate environment if that is the intended layout.

If the document reports that multienum.sty cannot be found, install the multienum package through your TeX distribution’s package manager, or use the distribution’s online package installer.

References

  1. CTAN: multienum
  2. CTAN: multicol

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.