# problem with chronology package

I want to do a horizontal time line. I find this script:

\documentclass{article}
\usepackage{chronology}
\begin{document}
\begin{chronology}[5]{1983}{2010}{3ex}{\textwidth}
\event{1984}{one}
\event[1985]{1986}{two}
\event{\decimaldate{25}{12}{2001}}{three}
\end{chronology}
\end{document}


It should produces a horizontal time line. I get errors.

timeline-text.tex(4): Error: Missing number, treated as zero. timeline-text.tex(4): Error: Illegal unit of measure (pt inserted).

Can you help? Also, some of the replies in the post where I got the code from: HERE says that the package does not accept more than one time line in the document? is this true?

## 1 Answer

The last argument is optional, not mandatory and so should use brackets. It is not quite clear what is its purpose but it seems to allow scaling: the timeline is created in the size of arg #5 and then scaled to arg #4 (this also means that arg #4 shouldn't be too small.

\documentclass{article}
\usepackage{chronology}
\begin{document}

\begin{chronology}[5]{1983}{2010}{\textwidth}
\event{1984}{oneD}
\event[1985]{1986}{two}
\event{\decimaldate{25}{12}{2001}}{three}
\end{chronology}

abc

\begin{chronology}[5]{1983}{2010}{10cm}[\textwidth]
\event{1984}{oneD}
\event[1985]{1986}{two}
\event{\decimaldate{25}{12}{2001}}{three}
\end{chronology}

abc

abc

\begin{chronology}[5]{1983}{2010}{10cm}[0.2\textwidth]
\event{1984}{oneD}
\event[1985]{1986}{two}
\event{\decimaldate{25}{12}{2001}}{three}
\end{chronology}

abc

\end{document}
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.7424665689468384, "perplexity": 1561.672367073236}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": false}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-10/segments/1614178357984.22/warc/CC-MAIN-20210226205107-20210226235107-00111.warc.gz"}