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