# Vertical timeline

> Dates down a line with a short description beside each one. A Timelines example with its complete LaTeX source, ready to copy or open in TeXeR.

A Timelines example in the TeXeR TikZ library: https://texer.org/library/timelines/vertical-timeline

Package: [Timelines](https://texer.org/library/timelines.md), on CTAN at https://ctan.org/pkg/pgf.

Tags: timeline, history, vertical

## Source

```latex
\begin{tikzpicture}[every node/.style={font=\small}]
  \draw[very thick, gray!50] (0,0.5) -- (0,-5.3);
  \foreach \y/\year/\event in {
    0/1936/Turing describes a universal machine,
    -1.6/1945/ENIAC runs its first program,
    -3.2/1971/The first commercial microprocessor,
    -4.8/1991/The World Wide Web goes public%
  } {
  \fill[blue!70!black] (0,\y) circle (3pt);
  \node[anchor=east, font=\small\bfseries] at (-0.3,\y) {\year};
  \node[anchor=west, text width=55mm] at (0.3,\y) {\event};
  }
\end{tikzpicture}
```

## As a complete document

The same example in a document that compiles on its own with pdfLaTeX:

```latex
\documentclass[margin=3mm]{standalone}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{amssymb}

\begin{document}
\begin{tikzpicture}[every node/.style={font=\small}]
  \draw[very thick, gray!50] (0,0.5) -- (0,-5.3);
  \foreach \y/\year/\event in {
    0/1936/Turing describes a universal machine,
    -1.6/1945/ENIAC runs its first program,
    -3.2/1971/The first commercial microprocessor,
    -4.8/1991/The World Wide Web goes public%
  } {
  \fill[blue!70!black] (0,\y) circle (3pt);
  \node[anchor=east, font=\small\bfseries] at (-0.3,\y) {\year};
  \node[anchor=west, text width=55mm] at (0.3,\y) {\event};
  }
\end{tikzpicture}
\end{document}
```
