elteikthesis/elteikthesis_minted.tex
Máté Cserép 08f589a831 Merge remote-tracking branch 'origin/ctan'
# Conflicts:
#	.github/workflows/ci.yml
#	README.md
#	README_en.md
#	elteikthesis.cls
#	elteikthesis.tex
#	samples_en/impl.tex
#	thesis_hu.pdf
2022-04-30 14:10:26 +02:00

33 lines
528 B
TeX

\documentclass{elteikthesis}[2022/04/30]
\usepackage[newfloat]{minted}
\begin{document}
\documentlang{english}
\chapter{Minted source code example}
\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}