📚 The CoCalc Library - books, templates and other resources
cocalc-examples / martinthoma-latex-examples / presentations / Bachelor-Short / templates / myStyle.sty
132934 viewsLicense: 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{tabto}7\usepackage{hyperref}8\usepackage{lmodern}9\usepackage{listings}10\usepackage{siunitx}11\usepackage{wasysym}12\usepackage{booktabs}13\usepackage{wrapfig} % see http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions14\usepackage[utf8]{inputenc} % this is needed for german umlauts15\usepackage[english]{babel} % this is needed for german umlauts16\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf17\usepackage{verbatim}18\usepackage{tikz}19\usetikzlibrary{arrows,shapes}20\usepackage{relsize}21\usepackage{subfig}22\usepackage{algorithm,algpseudocode}23\usepackage{minted} % needed for the inclusion of source code24\usepackage{menukeys}25\usepackage{xcolor}26\usepackage{pifont}% http://ctan.org/pkg/pifont27\usepackage{soul}28\usepackage[babel]{csquotes}29\usepackage{algorithm,algpseudocode}3031% Define some styles for graphs32\tikzstyle{vertex}=[circle,fill=black!25,minimum size=20pt,inner sep=0pt]33\tikzstyle{selected vertex} = [vertex, fill=red!24]34\tikzstyle{blue vertex} = [vertex, fill=blue!24]35\tikzstyle{edge} = [draw,thick,-]36\tikzstyle{weight} = [font=\small]37\tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]38\tikzstyle{ignored edge} = [draw,line width=5pt,-,black!20]3940%\algdef{SE}[IF]{NoThenIf}{EndIf}[1]{\algorithmicif\ #1\textbf{:}}{\algorithmicend\ \algorithmicif}%41\algtext*{EndIf} % Remove "end if" text42\algtext*{EndWhile} % Remove "end while" text43\algtext*{EndFunction} % Remove "end while" text44\algnewcommand\Global{\textbf{global }}4546% http://tex.stackexchange.com/a/8388/564547\newcommand{\alertline}{%48\usebeamercolor[fg]{normal text}%49\only{\usebeamercolor[fg]{alerted text}}}5051\newcommand {\framedgraphic}[2] {52\begin{frame}{#1}53\begin{center}54\includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#2}55\end{center}56\end{frame}57}5859\hypersetup{%60breaklinks=true,61linktocpage=false,62colorlinks=true,63urlcolor=blue,64linkcolor=blue,65citecolor=black66}6768\newcommand{\myCode}[1]{\colorbox{gray!30}{#1}}6970%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%71% Make source code easier to copy %72%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%73% from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref74\usepackage{accsupp}75\newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}767778%default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}}79\let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version80\def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}}8182%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%83% Add some shortcuts %84%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%85\newcommand{\cmark}{\ding{51}}% a checkmark86\newcommand{\xmark}{\ding{55}}% a cross8788%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%89% Set some template options - other tutors will have to adjust this %90%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%91\newcommand\tutor{Martin Thoma}92\newcommand\titleText{On-line recognition of handwritten mathematical symbols}93\institute{}94\titleimage{formula-recognition-logo}9596\hypersetup{pdftitle={\titleText}}97\beamertemplatenavigationsymbolsempty9899\newcommand\InsertToC[1][]{100\begin{frame}{Outline}101\tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=show/show/show, #1]102\end{frame}103}104105106