Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
| Download

📚 The CoCalc Library - books, templates and other resources

Views: 96145
License: OTHER
1
\documentclass[a4paper,12pt]{article}
2
\usepackage{amssymb} % needed for math
3
\usepackage{amsmath} % needed for math
4
\usepackage[utf8]{inputenc} % this is needed for german umlauts
5
\usepackage[ngerman]{babel} % this is needed for german umlauts
6
\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
7
\usepackage[margin=2cm]{geometry} %layout
8
\usepackage{minted} % needed for the inclusion of source code
9
10
\begin{document}
11
\renewcommand{\theFancyVerbLine}{
12
\sffamily\textcolor[rgb]{0.5,0.5,0.5}{\scriptsize\arabic{FancyVerbLine}}}
13
\inputminted[linenos,
14
numbersep=7pt,
15
gobble=0,
16
frame=lines,
17
framesep=2mm,
18
label=AbstractClass.java,
19
fontsize=\footnotesize, tabsize=4]{java}{AbstractClass.java}
20
\clearpage
21
\inputminted[linenos,
22
numbersep=7pt,
23
gobble=0,
24
frame=lines,
25
framesep=2mm,
26
label=ConcreteClass.java,
27
fontsize=\footnotesize, tabsize=4]{java}{ConcreteClass.java}
28
29
\end{document}
30
31