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
3
  • 1
    an r is missing in \end{description}. Plus you have to post MWE, mimimal working examples. – Denis Apr 2 '19 at 15:52
  • @Denis the "r" is not the issue. – Faustus Apr 2 '19 at 16:05
  • 1
    Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – samcarter_is_at_topanswers.xyz Apr 2 '19 at 16:08
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

-1

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

1
  • 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 2 '19 at 16:10

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.