π The CoCalc Library - books, templates and other resources
cocalc-examples / martinthoma-latex-examples / presentations / Diskrete-Mathematik / templates / myStyle.sty
132941 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{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,decorations.pathmorphing}16\usepackage{relsize}17\usepackage{subfigure}18\usepackage[Algorithmus]{algorithm}19\usepackage{algpseudocode}20\usepackage{minted} % needed for the inclusion of source code21\usepackage{menukeys}22\usepackage{xcolor}23\usepackage{pifont}% http://ctan.org/pkg/pifont24\usepackage{soul}25\usepackage{braket}2627% Define some styles for graphs28\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]3536%\algdef{SE}[IF]{NoThenIf}{EndIf}[1]{\algorithmicif\ #1\textbf{:}}{\algorithmicend\ \algorithmicif}%37\algtext*{EndIf} % Remove "end if" text38\algtext*{EndWhile} % Remove "end while" text39\algtext*{EndFunction} % Remove "end while" text40\algnewcommand\Global{\textbf{global }}4142% http://tex.stackexchange.com/a/8388/564543\newcommand{\alertline}{%44\usebeamercolor[fg]{normal text}%45\only{\usebeamercolor[fg]{alerted text}}}4647\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}5455\hypersetup{%56breaklinks=true,57linktocpage=false,58colorlinks=true,59urlcolor=blue,60linkcolor=blue,61citecolor=black62}6364\newcommand{\myCode}[1]{\colorbox{gray!30}{#1}}6566%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%67% Make source code easier to copy %68%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%69% from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref70\usepackage{accsupp}71\newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}727374%default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}}75\let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version76\def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}}7778%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%79% Add some shortcuts %80%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%81\newcommand{\cmark}{\ding{51}}% a checkmark82\newcommand{\xmark}{\ding{55}}% a cross8384%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%85% Set some template options - other tutors will have to adjust this %86%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%87\newcommand\tutor{Martin Thoma}88\newcommand\titleText{Graphentheorie I}89\institute{Institut fΓΌr Stochastik}90\titleimage{graph-titleimage}9192\hypersetup{pdftitle={\titleText}}93\beamertemplatenavigationsymbolsempty9495\newcommand\InsertToC[1][]{96\begin{frame}{Outline}97\tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=show/show/show, #1]98\end{frame}99}100101%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%102% Gallery %103%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%104\usepackage{adjustbox}105\usepackage{xcolor}106\definecolor{myLightGray}{HTML}{F9F9F9}107\definecolor{borderColor}{HTML}{CCCCCC}108109\usepackage{standalone} % needed for includestandalone110\usepackage{tikz} % needed for includestandalone111\usetikzlibrary{arrows,positioning, calc}112113\tikzset{114pil/.style={->,thick}115}116117\newenvironment{gallery}{%118\center119}{%120\par\endcenter121}122123\newcommand{\galleryimage}[2][borderColor]{124\adjustbox{width=2cm,height=2cm,keepaspectratio, center=2cm,125valign=M, set vsize={1cm}{1cm},126bgcolor=myLightGray,cfbox=#1 1px 0px 2px}127{\includestandalone{#2}}%128\space\ignorespaces129}%130131\definecolor{Green}{HTML}{BEF781}132133\tikzstyle{vertex}=[draw,fill=black,circle,minimum size=10pt,inner sep=0pt]134\tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]135\def\TCop{\textsuperscript{\textcopyright}} % Copyright-sign136\usepackage{mathtools}137138\usepackage{csquotes}139140141