2

The following MWE has two problems:

  1. Events on the same day do not display properly.
  2. I don't know how to introduce a line break

The second problem is interesting as it could be a solution to the first problem.

\documentclass[11pt,a4paper]{article}
\usepackage{chronology}
\begin{document}
\begin{chronology}*[2]{2007}{2017}{\the\linewidth}
\event{\decimaldate{01}{03}{2010}}{first event}
\event{\decimaldate{01}{03}{2010}}{second event}
\event{\decimaldate{01}{03}{2014}}{this is a very long description that I\\ want to break manually}
\end{chronology}
\end{document}
3
  • 1
    I wouldn't use a so badly documented package. Check chronosys, or the code of cfr here tex.stackexchange.com/questions/125548/… Apr 4, 2017 at 9:05
  • I agree to the basically non-existent documentation, however, I simply like the design and simplicity of chronology.
    – CFW
    Apr 6, 2017 at 15:56
  • Try \tikzset{eventlabel/.append style={align=center}}. I think this is better than chronosys, actually, though it certainly contains some basic muck ups.
    – cfr
    Aug 15, 2017 at 4:11

1 Answer 1

2

My code can do simple styles, too, actually. However, chronology can, at least, be adapted in ways which chronosys simply resists. Note that it does some dodgy things in the style file, for all that, though.

\documentclass[11pt,a4paper]{article}
\usepackage{chronology,geometry}
\tikzset{flippedeventlabel/.append style={align=center}}
\begin{document}
\begin{chronology}*[2]{2007}{2017}{\the\linewidth}
\event{\decimaldate{01}{03}{2010}}{first event}
\event{\decimaldate{01}{03}{2010}}{second event}
\event{\decimaldate{01}{03}{2014}}{this is a very long description that I\\ want to break manually}
\end{chronology}
\end{document}

multi-line event

Do the same for eventlabel if not 'flipping' the timeline.

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.