1

I have done this before but for some reason it's not working in my current file.

\begin{description}[largest]
 \item[small] Foo
 \item[largest] Foobar
\end{description}

This above code give the error

package enumitem error: largest undefined
Faustus
  • 152

2 Answers2

2

You perhaps want

\documentclass{article}
\usepackage{enumitem}

\begin{document}

\begin{description}[widest=largest,itemindent=*,align=left]
 \item[small] Foo
 \item[largest] Foobar
\end{description}

\end{document}

enter image description here

egreg
  • 1,121,712
-1

Fixed. I had imported the enumitem package. It works fine without that.

Faustus
  • 152
  • 2
    without the enumitem package description does not have an optional argument so [largest] would be an error. This does not seem to answer the question asked. – David Carlisle Apr 02 '19 at 16:10