Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132928 views
License: OTHER
1
\documentclass[usepdftitle=false,hyperref={pdfpagelabels=false}]{beamer}
2
3
% use KIT-Theme
4
% see http://sdqweb.ipd.kit.edu/wiki/Dokumentvorlagen
5
%\usetheme{Frankfurt} % see http://deic.uab.es/~iblanes/beamer_gallery/index_by_theme.html
6
\InputIfFileExists{templates/beamerthemekit.sty}{\usepackage{templates/beamerthemekit}}{\usetheme{Frankfurt}}
7
\usefonttheme{professionalfonts}
8
9
10
\usepackage{hyperref}
11
\usepackage{lmodern}
12
\usepackage{listings}
13
\usepackage{wrapfig} % see http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions
14
15
\usepackage[utf8]{inputenc} % this is needed for german umlauts
16
\usepackage[ngerman]{babel} % this is needed for german umlauts
17
\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
18
19
\usepackage{verbatim}
20
\usepackage{relsize}
21
\usepackage{subfigure}
22
23
% http://en.wikibooks.org/wiki/LaTeX/Algorithms_and_Pseudocode
24
% http://tex.stackexchange.com/questions/1375/what-is-a-good-package-for-displaying-algorithms
25
% http://tex.stackexchange.com/questions/26539/beamer-and-pseudocode
26
% http://www.jkrieger.de/tools/latex/informatik.html
27
% http://ctan.mackichan.com/macros/latex/contrib/algorithmicx/algorithmicx.pdf
28
% http://ctan.mackichan.com/macros/latex/contrib/algorithms/algorithms.pdf
29
% http://www.cs.brown.edu/system/software/latex/doc/algodoc.pdf
30
% http://www.cs.utexas.edu/~shan/doc/algorithms.pdf
31
\usepackage{algorithm,algpseudocode}
32
\usepackage{tikz}
33
\usetikzlibrary{arrows,shapes,positioning,shadows,calc}
34
\usepackage{tkz-berge}
35
\usepackage{xcolor}
36
\makeatletter
37
38
% to change colors
39
\newcommand{\fillcol}{green!20}
40
\newcommand{\bordercol}{black}
41
42
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
43
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
44
% code from Andrew Stacey (with small adjustment to the border color)
45
% http://tex.stackexchange.com/questions/51582/background-coloring-with-overlay-specification-in-algorithm2e-beamer-package
46
\newcounter{jumping}
47
\resetcounteronoverlays{jumping}
48
49
\def\jump@setbb#1#2#3{%
50
\@ifundefined{jump@#1@maxbb}{%
51
\expandafter\gdef\csname jump@#1@maxbb\endcsname{#3}%
52
}{%
53
\csname jump@#1@maxbb\endcsname
54
\pgf@xa=\pgf@x
55
\pgf@ya=\pgf@y
56
#3
57
\pgfmathsetlength\pgf@x{max(\pgf@x,\pgf@xa)}%
58
\pgfmathsetlength\pgf@y{max(\pgf@y,\pgf@ya)}%
59
\expandafter\xdef\csname jump@#1@maxbb\endcsname{\noexpand\pgfpoint{\the\pgf@x}{\the\pgf@y}}%
60
}
61
\@ifundefined{jump@#1@minbb}{%
62
\expandafter\gdef\csname jump@#1@minbb\endcsname{#2}%
63
}{%
64
\csname jump@#1@minbb\endcsname
65
\pgf@xa=\pgf@x
66
\pgf@ya=\pgf@y
67
#2
68
\pgfmathsetlength\pgf@x{min(\pgf@x,\pgf@xa)}%
69
\pgfmathsetlength\pgf@y{min(\pgf@y,\pgf@ya)}%
70
\expandafter\xdef\csname jump@#1@minbb\endcsname{\noexpand\pgfpoint{\the\pgf@x}{\the\pgf@y}}%
71
}
72
}
73
74
\tikzset{%
75
remember picture with id/.style={%
76
remember picture,
77
overlay,
78
draw=\bordercol,
79
save picture id=#1,
80
},
81
save picture id/.code={%
82
\edef\pgf@temp{#1}%
83
\immediate\write\pgfutil@auxout{%
84
\noexpand\savepointas{\pgf@temp}{\pgfpictureid}}%
85
},
86
if picture id/.code args={#1#2#3}{%
87
\@ifundefined{save@pt@#1}{%
88
\pgfkeysalso{#3}%
89
}{
90
\pgfkeysalso{#2}%
91
}
92
},
93
onslide/.code args={<#1>#2}{%
94
\only<#1>{\pgfkeysalso{#2}}%
95
},
96
alt/.code args={<#1>#2#3}{%
97
\alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}%
98
},
99
stop jumping/.style={
100
execute at end picture={%
101
\stepcounter{jumping}%
102
\immediate\write\pgfutil@auxout{%
103
\noexpand\jump@setbb{\the\value{jumping}}{\noexpand\pgfpoint{\the\pgf@picminx}{\the\pgf@picminy}}{\noexpand\pgfpoint{\the\pgf@picmaxx}{\the\pgf@picmaxy}}
104
},
105
\csname jump@\the\value{jumping}@maxbb\endcsname
106
\path (\the\pgf@x,\the\pgf@y);
107
\csname jump@\the\value{jumping}@minbb\endcsname
108
\path (\the\pgf@x,\the\pgf@y);
109
},
110
}
111
}
112
113
114
\def\savepointas#1#2{%
115
\expandafter\gdef\csname save@pt@#1\endcsname{#2}%
116
}
117
118
\def\tmk@labeldef#1,#2\@nil{%
119
\def\tmk@label{#1}%
120
\def\tmk@def{#2}%
121
}
122
123
\tikzdeclarecoordinatesystem{pic}{%
124
\pgfutil@in@,{#1}%
125
\ifpgfutil@in@%
126
\tmk@labeldef#1\@nil
127
\else
128
\tmk@labeldef#1,\pgfpointorigin\@nil
129
\fi
130
\@ifundefined{save@pt@\tmk@label}{%
131
\tikz@scan@one@point\pgfutil@firstofone\tmk@def
132
}{%
133
\pgfsys@getposition{\csname save@pt@\tmk@label\endcsname}\save@orig@pic%
134
\pgfsys@getposition{\pgfpictureid}\save@this@pic%
135
\pgf@process{\pgfpointorigin\save@this@pic}%
136
\pgf@xa=\pgf@x
137
\pgf@ya=\pgf@y
138
\pgf@process{\pgfpointorigin\save@orig@pic}%
139
\advance\pgf@x by -\pgf@xa
140
\advance\pgf@y by -\pgf@ya
141
}%
142
}
143
\newcommand\tikzmark[2][]{%
144
\tikz[remember picture with id=#2] #1;}
145
\makeatother
146
147
\resetcounteronoverlays{algocf}
148
149
\newcommand<>{\boxto}[1]{%
150
\only#2{\tikz[remember picture with id=#1]
151
\draw[line width=1pt,fill=\fillcol,rectangle,rounded corners]
152
(pic cs:#1) ++(5.2,-.1) rectangle (-0.4,0)
153
;\tikz\node [anchor=base] (#1){};}% <= insertion to store the anchor to be used as based for the annotation
154
}
155
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
156
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
157
158
% Define some styles for graphs
159
\tikzstyle{vertex}=[circle,fill=black!25,minimum size=20pt,inner sep=0pt]
160
\tikzstyle{selected vertex} = [vertex, fill=red!24]
161
\tikzstyle{blue vertex} = [vertex, fill=blue!24]
162
\tikzstyle{yellow vertex} = [vertex, fill=yellow!24]
163
\tikzstyle{edge} = [draw,thick,-]
164
\tikzstyle{weight} = [font=\small]
165
\tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]
166
\tikzstyle{ignored edge} = [draw,line width=5pt,-,black!20]
167
168
\hypersetup{pdftitle={Graphentheorie II}}
169
\beamertemplatenavigationsymbolsempty
170
171
\newcommand\InsertToC[1][]{
172
\begin{frame}{Outline}
173
\tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=show/show/show, #1]
174
\end{frame}
175
}
176
177
\begin{document}
178
\title{Graphentheorie II}
179
\author{Tobias Sturm, Martin Thoma, Max Wagner, Thomas Krings}
180
\date{\today}
181
\subject{Graphentheorie-Referat fur ICPC}
182
183
\frame{\titlepage}
184
185
\frame{
186
\frametitle{Inhaltsverzeichnis}
187
\setcounter{tocdepth}{1}
188
\tableofcontents
189
\setcounter{tocdepth}{2}
190
}
191
192
\AtBeginSection[]{
193
\InsertToC[sections={\thesection}] % shows only subsubsections of one subsection
194
}
195
196
\input{MinimaleSpannbaume} % Minimale Spannbäume
197
\input{SCC} % Starke zusammenhangskomponenten
198
\input{GraphColoring} % Färbung von Graphen
199
\input{Kreise} % Euler- und Hamilton-Kreise
200
201
\section{Abspann}
202
\subsection{Abspann}
203
204
\begin{frame}{}
205
Vielen Dank für eure Aufmerksamkeit!
206
\end{frame}
207
\input{Literatur} % Quellen und weitere Infos
208
\input{Quellen}
209
210
\end{document}
211
212