[Tex/LaTex] LaTeX chronology change end of timeline

timeline

I've got this example from https://stackoverflow.com/questions/217834/how-to-create-a-timeline-with-latex?newreg=d5d53aaf6a014bda9555c93bf7597c74

The only thing that bothers me is the little arrow at the end of the timeline.

Could someone tell me how to get the end of the line looking like the beginning?

Code:

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

Problem:
enter image description here

Best Answer

The timeline arrow is hard coded in the sty-file as [|->]. You can change it globally by setting >=| but that means all your tikzpictures will have | as the default arrow tip.

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

enter image description here

As noted by Schweinebacke the \tikzset can be put inside {...} which makes the changes local.

{
  \tikzset{>=|}
  \begin{chronology}[5]{1983}{2010}{\textwidth}
    \event{1984}{one}
    \event[1985]{1986}{two}
    \event{\decimaldate{25}{12}{2001}}{three}
  \end{chronology}
}
Related Question