Add source code rendering

This commit is contained in:
Emil Miler
2024-02-15 17:37:28 +01:00
parent ac373d1bad
commit adfa115e8f
3 changed files with 28 additions and 6 deletions

View File

@ -1,3 +1,14 @@
\chapter{Ipsum}
...
\begin{listing}[!ht]
\caption{Code example}
\label{lst:example}
\begin{minted}{c}
#include<stdio.h>
int main(void) {
printf("Hello World\n");
return 0;
}
\end{minted}
\end{listing}