elteikthesis/elteikthesis-minted.tex
2021-09-20 16:18:53 +02:00

33 lines
519 B
TeX

\documentclass{elteikthesis}[2021/09/20]
\usepackage[newfloat]{minted}
\begin{document}
\documentlang{magyar}
\chapter{Minted forráskód}
\label{ch:chapter}
\begin{listing}[H]
\begin{minted}{cpp}
#include <stdio>
int main()
{
int c;
std::cout << "Hello World!" << std::endl;
std::cout << "Press any key to exit." << std::endl;
std::cin >> c;
return 0;
}
\end{minted}
\caption{Hello World in C++}
\end{listing}
\phantomsection
\addcontentsline{toc}{chapter}{\lstcodelabel}
\listoflistings
\end{document}