minted-code-inclusion.tex 532 B

1234567891011121314
  1. \documentclass{beamer}
  2. \usepackage[utf8]{inputenc} % this is needed for german umlauts
  3. \usepackage[ngerman]{babel} % this is needed for german umlauts
  4. \usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
  5. \usepackage{minted} % needed for the inclusion of source code
  6. \begin{document}
  7. \section{Section}
  8. \subsection{MySubSection}
  9. \begin{frame}{Blubtitle}
  10. \inputminted[linenos=true, numbersep=5pt, tabsize=4, fontsize=\small]{java}{IataCode.java}
  11. \end{frame}
  12. \end{document}