How to get the C++ standard

The C++ standard is the definitive source for the language. The official standards can be obtained from ISO for a fee. But the draft standard at any point of time can be compiled from its LaTeX source to PDF for free. Here is how:

  • Install these LaTeX packages:
$ sudo apt-get install latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
  • Clone the C++ draft standard repository:
$ git clone
  • Build a PDF of the standard:
$ cd source
$ latexmk -pdf std

If there are too many warnings, you might need to run the above command a second time. The result is a PDF of the C++ standard!