Generating a timeline

By using a basic TikZ function, it's not too hard to create a line and add some ticks, date values, and annotations. But it can require a lot of work, until it looks nice.

This recipe will show you another colorful and predesigned way: using the timeline library.

Getting ready

Until the timelime library officially becomes part of TikZ or becomes available on CTAN, you can download the tikzlibrarytimeline.code.tex file from its author's repository at https://github.com/cfiandra/timeline. You can install it in the TeX tree like any other package, but the easiest way is to simply put it into the same folder as your main TeX document.

How to do it...

The timelime library builds on TikZ, but also provides its own high-level commands. ...

Get LaTeX Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.