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}
  • 1
    I wouldn't use a so badly documented package. Check chronosys, or the code of cfr here tex.stackexchange.com/questions/125548/… – Ulrike Fischer Apr 4 '17 at 9:05
  • I agree to the basically non-existent documentation, however, I simply like the design and simplicity of chronology. – CFW Apr 6 '17 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 '17 at 4:11
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.