forked from MartinThoma/LaTeX-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDocumentation.tex
29 lines (27 loc) · 1.02 KB
/
Documentation.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
\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}