I would like to know how to replicate the style of this vertical timeline where the arrows are pointing toward the relevant times on the line. If that is too broad of a request, it would be very helpful to simply guide me toward the basic structure. Any help is appreciated.
[Tex/LaTex] Simple Vertical Timeline with Arrows
chronologytikz-pgf
Best Answer
If you cannot avoid needing labels on both sides of the line, I would recommend putting the year labels on the line itself in the centre rather than off to one side. Here's a not terribly sophisticated format:
Obviously, it is possible to make the overall appearance much fancier according to preference, audience and content. However, the following
kronos
style provides the fundamental structure and determines the placement of labels and events according to the values of various variables which may be modified (start
,end
,step
,height
andwidth
).\kronosevent*[]{}
can then be used to place events on the line. The starred version places them right; the unstarred left. The first, optional argument can be used to set, for example,year
to something other than the default (presumably required unless all events happen at the same time, in which case a timeline is of little use) and the mandatory argument specifies the event's description.The above, for instance was specified using an optional argument to the
tikzpicture
environment,kronos
. This sets the timeline up with the default values forstart
,end
,step
,width
andheight
.The picture then specifies 3 events - 2 on the left and 1 on the right. The first
uses the default settings, which puts the event at 1850 to the left of the line. The second
puts an event at the specified time (300CE) to the left of the line, while the third
puts an event at 1457CE to the right of the line.
Complete code: