Skip to content
TS van der Berg edited this page Oct 4, 2017 · 6 revisions

Installatie minted :

sudo apt-get install texlive-latex-extra

sudo apt-get install python-pygments

Gebruik:

een titel maken met automatische nummering:

\begin{section)

een titel zonder automatische nummering:

\begin*{section} Op de zelfde manier zijn er ook \subsection, \subsubsection, \subsubsubsection..

cpp code lokaal invoeren

\begin{cpp} void myFun(string &&myString) \end{cpp}

code uit een .cc bestand invoegen:

\inputminted[linenos=true, frame=lines]{cpp}{../19/main.cc}

n.b. ../ betekent 1 folder omhoog vanaf de lokatie van het .tex bestand.