Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

πŸ“š The CoCalc Library - books, templates and other resources

132932 views
License: OTHER
1
% use KIT-Theme
2
% see http://sdqweb.ipd.kit.edu/wiki/Dokumentvorlagen
3
%\usetheme{Frankfurt} % see http://deic.uab.es/~iblanes/beamer_gallery/index_by_theme.html as fallback
4
\InputIfFileExists{../templates/beamerthemekit.sty}{\usepackage{../templates/beamerthemekit}}{\usetheme{Frankfurt}}
5
\usefonttheme{professionalfonts}
6
7
\usepackage{hyperref}
8
\usepackage{lmodern}
9
\usepackage{listings}
10
\usepackage{wrapfig} % see http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions
11
\usepackage[utf8]{inputenc} % this is needed for german umlauts
12
\usepackage[english]{babel} % this is needed for german umlauts
13
\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
14
\usepackage{verbatim}
15
\usepackage{tikz}
16
\usetikzlibrary{arrows,shapes,decorations.pathmorphing}
17
\usepackage{relsize}
18
\usepackage{subfigure}
19
\usepackage[Algorithmus]{algorithm}
20
\usepackage{algpseudocode}
21
\usepackage{minted} % needed for the inclusion of source code
22
\usepackage{menukeys}
23
\usepackage{xcolor}
24
\usepackage{pifont}% http://ctan.org/pkg/pifont
25
\usepackage{soul}
26
\usepackage{braket}
27
28
% Define some styles for graphs
29
\tikzstyle{vertex}=[circle,fill=black!25,minimum size=20pt,inner sep=0pt]
30
\tikzstyle{selected vertex} = [vertex, fill=red!24]
31
\tikzstyle{blue vertex} = [vertex, fill=blue!24]
32
\tikzstyle{edge} = [draw,thick,-]
33
\tikzstyle{weight} = [font=\small]
34
\tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]
35
\tikzstyle{ignored edge} = [draw,line width=5pt,-,black!20]
36
37
%\algdef{SE}[IF]{NoThenIf}{EndIf}[1]{\algorithmicif\ #1\textbf{:}}{\algorithmicend\ \algorithmicif}%
38
\algtext*{EndIf} % Remove "end if" text
39
\algtext*{EndWhile} % Remove "end while" text
40
\algtext*{EndFunction} % Remove "end while" text
41
\algnewcommand\Global{\textbf{global }}
42
43
% http://tex.stackexchange.com/a/8388/5645
44
\newcommand{\alertline}{%
45
\usebeamercolor[fg]{normal text}%
46
\only{\usebeamercolor[fg]{alerted text}}}
47
48
\newcommand {\framedgraphic}[2] {
49
\begin{frame}{#1}
50
\begin{center}
51
\includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#2}
52
\end{center}
53
\end{frame}
54
}
55
56
\hypersetup{%
57
breaklinks=true,
58
linktocpage=false,
59
colorlinks=true,
60
urlcolor=blue,
61
linkcolor=blue,
62
citecolor=black
63
}
64
65
\newcommand{\myCode}[1]{\colorbox{gray!30}{#1}}
66
67
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
68
% Make source code easier to copy %
69
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
70
% from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref
71
\usepackage{accsupp}
72
\newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}
73
74
75
%default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}}
76
\let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version
77
\def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}}
78
79
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
80
% Add some shortcuts %
81
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
82
\newcommand{\cmark}{\ding{51}}% a checkmark
83
\newcommand{\xmark}{\ding{55}}% a cross
84
85
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
86
% Set some template options - other tutors will have to adjust this %
87
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
88
\newcommand\tutor{Martin Thoma}
89
\newcommand\titleText{Graphentheorie I}
90
\institute{Institut fΓΌr Stochastik}
91
\titleimage{graph-titleimage}
92
93
\hypersetup{pdftitle={\titleText}}
94
\beamertemplatenavigationsymbolsempty
95
96
\newcommand\InsertToC[1][]{
97
\begin{frame}{Outline}
98
\tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=show/show/show, #1]
99
\end{frame}
100
}
101
102
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
103
% Gallery %
104
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
105
\usepackage{adjustbox}
106
\usepackage{xcolor}
107
\definecolor{myLightGray}{HTML}{F9F9F9}
108
\definecolor{borderColor}{HTML}{CCCCCC}
109
110
\usepackage{standalone} % needed for includestandalone
111
\usepackage{tikz} % needed for includestandalone
112
\usetikzlibrary{arrows,positioning, calc}
113
114
\tikzset{
115
pil/.style={->,thick}
116
}
117
118
\newenvironment{gallery}{%
119
\center
120
}{%
121
\par\endcenter
122
}
123
124
\newcommand{\galleryimage}[2][borderColor]{
125
\adjustbox{width=2cm,height=2cm,keepaspectratio, center=2cm,
126
valign=M, set vsize={1cm}{1cm},
127
bgcolor=myLightGray,cfbox=#1 1px 0px 2px}
128
{\includestandalone{#2}}%
129
\space\ignorespaces
130
}%
131
132
\definecolor{Green}{HTML}{BEF781}
133
134
\tikzstyle{vertex}=[draw,fill=black,circle,minimum size=10pt,inner sep=0pt]
135
\tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]
136
\def\TCop{\textsuperscript{\textcopyright}} % Copyright-sign
137
\usepackage{mathtools}
138
139
\usepackage{csquotes}
140
141