I am trying to create a simple timeline with years underneath the line and some explaining text above each year. I understand that chronology
is useful for this.
My problem is that when trying out examples from related questions (e.g. here or here), I always get the error "! Missing number, treated as zero."
A MWE (from the first related question linked to above):
\documentclass{article}
\usepackage{chronology}
\begin{document}
\begin{chronology}[3]{2011}{2016}{3ex}{\textwidth}
\end{chronology}
\end{document}
Which results in:
! Missing number, treated as zero.
to be read again>
}
l.4 ...chronology}[3]{2011}{2016}{3ex}{\textwidth}
?
I have tried changing some of the values or removing them altogether, but this doesn't seem to help.
Has anyone encountered this problem or does anyone know of a solution? Chronology
seems to be exactly what I need.
Best Answer
Removing the
3ex
produces the following output without error: