I'd like to make a timeline with a description
environment.
If I use the following:
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{description}[leftmargin=*,label=0000]
\item[1987]Something really exciting happened in that year, but I’m not sure exactly what.
\item[1990]Bar
\end{description}
\end{document}
I get an error:
ERROR: Missing control sequence inserted.
--- TeX said ---
<inserted text>
\inaccessible
l.7 \begin{description}[leftmargin=*]
It seems that label=0000
doesn't work for description
environments?
If I simply put leftmargin=2.8em
(for this particular case), then I get what I want: the second line of the first item lines up with the first line:
But obviously I'd prefer to achieve this by giving the label to be measured dynamically.
Best Answer
Here are two ways: