2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-25 14:28:05 +02:00
LaTeX-examples/source-code/Documentation.tex
2012-08-10 10:56:38 +02:00

29 lines
1 KiB
TeX

\documentclass[a4paper,12pt]{article}
\usepackage{amssymb} % needed for math
\usepackage{amsmath} % needed for math
\usepackage[utf8]{inputenc} % this is needed for german umlauts
\usepackage[ngerman]{babel} % this is needed for german umlauts
\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
\usepackage[margin=2cm]{geometry} %layout
\usepackage{minted} % needed for the inclusion of source code
\begin{document}
\renewcommand{\theFancyVerbLine}{
\sffamily\textcolor[rgb]{0.5,0.5,0.5}{\scriptsize\arabic{FancyVerbLine}}}
\inputminted[linenos,
numbersep=7pt,
gobble=0,
frame=lines,
framesep=2mm,
label=AbstractClass.java,
fontsize=\footnotesize, tabsize=4]{java}{AbstractClass.java}
\clearpage
\inputminted[linenos,
numbersep=7pt,
gobble=0,
frame=lines,
framesep=2mm,
label=ConcreteClass.java,
fontsize=\footnotesize, tabsize=4]{java}{ConcreteClass.java}
\end{document}