Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132941 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}
17
\usepackage{relsize}
18
\usepackage{subfigure}
19
\usepackage{algorithm,algpseudocode}
20
\usepackage{minted} % needed for the inclusion of source code
21
\usepackage{menukeys}
22
\usepackage{xcolor}
23
\usepackage{pifont}% http://ctan.org/pkg/pifont
24
\usepackage{soul}
25
\usepackage{algorithm,algpseudocode}
26
27
% Define some styles for graphs
28
\tikzstyle{vertex}=[circle,fill=black!25,minimum size=20pt,inner sep=0pt]
29
\tikzstyle{selected vertex} = [vertex, fill=red!24]
30
\tikzstyle{blue vertex} = [vertex, fill=blue!24]
31
\tikzstyle{edge} = [draw,thick,-]
32
\tikzstyle{weight} = [font=\small]
33
\tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]
34
\tikzstyle{ignored edge} = [draw,line width=5pt,-,black!20]
35
36
%\algdef{SE}[IF]{NoThenIf}{EndIf}[1]{\algorithmicif\ #1\textbf{:}}{\algorithmicend\ \algorithmicif}%
37
\algtext*{EndIf} % Remove "end if" text
38
\algtext*{EndWhile} % Remove "end while" text
39
\algtext*{EndFunction} % Remove "end while" text
40
\algnewcommand\Global{\textbf{global }}
41
42
% http://tex.stackexchange.com/a/8388/5645
43
\newcommand{\alertline}{%
44
\usebeamercolor[fg]{normal text}%
45
\only{\usebeamercolor[fg]{alerted text}}}
46
47
\newcommand {\framedgraphic}[2] {
48
\begin{frame}{#1}
49
\begin{center}
50
\includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#2}
51
\end{center}
52
\end{frame}
53
}
54
55
\hypersetup{%
56
breaklinks=true,
57
linktocpage=false,
58
colorlinks=true,
59
urlcolor=blue,
60
linkcolor=blue,
61
citecolor=black
62
}
63
64
\newcommand{\myCode}[1]{\colorbox{gray!30}{#1}}
65
66
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
67
% Make source code easier to copy %
68
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
69
% from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref
70
\usepackage{accsupp}
71
\newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}
72
73
74
%default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}}
75
\let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version
76
\def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}}
77
78
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
79
% Add some shortcuts %
80
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
81
\newcommand{\cmark}{\ding{51}}% a checkmark
82
\newcommand{\xmark}{\ding{55}}% a cross
83
84
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
85
% Set some template options - other tutors will have to adjust this %
86
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
87
\newcommand\tutor{Martin Thoma, Benjamin Lipp}
88
\newcommand\titleText{How Google Searches Work}
89
\institute{Sprachenzentrum}
90
\titleimage{pagerank}
91
92
\hypersetup{pdftitle={\titleText}}
93
\beamertemplatenavigationsymbolsempty
94
95
\newcommand\InsertToC[1][]{
96
\begin{frame}{Outline}
97
\tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=show/show/show, #1]
98
\end{frame}
99
}
100
101