📚 The CoCalc Library - books, templates and other resources
License: OTHER
% use KIT-Theme1% see http://sdqweb.ipd.kit.edu/wiki/Dokumentvorlagen2%\usetheme{Frankfurt} % see http://deic.uab.es/~iblanes/beamer_gallery/index_by_theme.html as fallback3\InputIfFileExists{../templates/beamerthemekit.sty}{\usepackage{../templates/beamerthemekit}}{\usetheme{Frankfurt}}4\usefonttheme{professionalfonts}56\usepackage{hyperref}7\usepackage{lmodern}8\usepackage{listings}9\usepackage{wrapfig} % see http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions10\usepackage[utf8]{inputenc} % this is needed for german umlauts11\usepackage[english]{babel} % this is needed for german umlauts12\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf13\usepackage{verbatim}14\usepackage{tikz}15\usetikzlibrary{arrows,shapes}16\usepackage{relsize}17\usepackage{subfigure}18\usepackage{algorithm,algpseudocode}19\usepackage{minted} % needed for the inclusion of source code20\usepackage{menukeys}21\usepackage{xcolor}22\usepackage{pifont}% http://ctan.org/pkg/pifont23\usepackage{soul}24\usepackage{algorithm,algpseudocode}2526% Define some styles for graphs27\tikzstyle{vertex}=[circle,fill=black!25,minimum size=20pt,inner sep=0pt]28\tikzstyle{selected vertex} = [vertex, fill=red!24]29\tikzstyle{blue vertex} = [vertex, fill=blue!24]30\tikzstyle{edge} = [draw,thick,-]31\tikzstyle{weight} = [font=\small]32\tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]33\tikzstyle{ignored edge} = [draw,line width=5pt,-,black!20]3435%\algdef{SE}[IF]{NoThenIf}{EndIf}[1]{\algorithmicif\ #1\textbf{:}}{\algorithmicend\ \algorithmicif}%36\algtext*{EndIf} % Remove "end if" text37\algtext*{EndWhile} % Remove "end while" text38\algtext*{EndFunction} % Remove "end while" text39\algnewcommand\Global{\textbf{global }}4041% http://tex.stackexchange.com/a/8388/564542\newcommand{\alertline}{%43\usebeamercolor[fg]{normal text}%44\only{\usebeamercolor[fg]{alerted text}}}4546\newcommand {\framedgraphic}[2] {47\begin{frame}{#1}48\begin{center}49\includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#2}50\end{center}51\end{frame}52}5354\hypersetup{%55breaklinks=true,56linktocpage=false,57colorlinks=true,58urlcolor=blue,59linkcolor=blue,60citecolor=black61}6263\newcommand{\myCode}[1]{\colorbox{gray!30}{#1}}6465%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%66% Make source code easier to copy %67%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%68% from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref69\usepackage{accsupp}70\newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}717273%default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}}74\let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version75\def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}}7677%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%78% Add some shortcuts %79%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%80\newcommand{\cmark}{\ding{51}}% a checkmark81\newcommand{\xmark}{\ding{55}}% a cross8283%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%84% Set some template options - other tutors will have to adjust this %85%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%86\newcommand\tutor{Martin Thoma, Benjamin Lipp}87\newcommand\titleText{How Google Searches Work}88\institute{Sprachenzentrum}89\titleimage{pagerank}9091\hypersetup{pdftitle={\titleText}}92\beamertemplatenavigationsymbolsempty9394\newcommand\InsertToC[1][]{95\begin{frame}{Outline}96\tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=show/show/show, #1]97\end{frame}98}99100101