📚 The CoCalc Library - books, templates and other resources
cocalc-examples / martinthoma-latex-examples / presentations / Proseminar-Netzwerkanalyse / Hauptpresentation / 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}26\usepackage[binary-units=true]{siunitx}2728% Define some styles for graphs29\tikzstyle{vertex}=[circle,fill=black!25,minimum size=20pt,inner sep=0pt]30\tikzstyle{selected vertex} = [vertex, fill=red!24]31\tikzstyle{blue vertex} = [vertex, fill=blue!24]32\tikzstyle{edge} = [draw,thick,-]33\tikzstyle{weight} = [font=\small]34\tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]35\tikzstyle{ignored edge} = [draw,line width=5pt,-,black!20]3637%\algdef{SE}[IF]{NoThenIf}{EndIf}[1]{\algorithmicif\ #1\textbf{:}}{\algorithmicend\ \algorithmicif}%38\algtext*{EndIf} % Remove "end if" text39\algtext*{EndWhile} % Remove "end while" text40\algtext*{EndFunction} % Remove "end while" text41\algnewcommand\Global{\textbf{global }}4243% http://tex.stackexchange.com/a/8388/564544\newcommand{\alertline}{%45\usebeamercolor[fg]{normal text}%46\only{\usebeamercolor[fg]{alerted text}}}4748\newcommand {\framedgraphic}[2] {49\begin{frame}{#1}50\begin{center}51\includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#2}52\end{center}53\end{frame}54}5556\hypersetup{%57breaklinks=true,58linktocpage=false,59colorlinks=true,60urlcolor=blue,61linkcolor=blue,62citecolor=black63}6465\newcommand{\myCode}[1]{\colorbox{gray!30}{#1}}6667%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%68% Make source code easier to copy %69%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%70% from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref71\usepackage{accsupp}72\newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}737475%default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}}76\let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version77\def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}}7879%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%80% Add some shortcuts %81%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%82\newcommand{\cmark}{\ding{51}}% a checkmark83\newcommand{\xmark}{\ding{55}}% a cross8485%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%86% Set some template options - other tutors will have to adjust this %87%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%88\newcommand\tutor{Martin Thoma}89\newcommand\titleText{Knotenklassifikation in dynamischen Graphen mit Texten}%On Node Classification in Dynamic Content-based Networks90\institute{Institut für Programmstrukturen und Datenorganisation}91\titleimage{graph-titleimage}9293\hypersetup{pdftitle={\titleText}}94\beamertemplatenavigationsymbolsempty9596\newcommand\InsertToC[1][]{97\begin{frame}{Outline}98\tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=show/show/show, #1]99\end{frame}100}101102%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%103% Gallery %104%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%105\usepackage{adjustbox}106\usepackage{xcolor}107\definecolor{myLightGray}{HTML}{F9F9F9}108\definecolor{borderColor}{HTML}{CCCCCC}109110\usepackage{standalone} % needed for includestandalone111\usepackage{tikz} % needed for includestandalone112\usetikzlibrary{arrows,positioning, calc}113114\tikzset{115pil/.style={->,thick}116}117118\newenvironment{gallery}{%119\center120}{%121\par\endcenter122}123124\newcommand{\galleryimage}[2][borderColor]{125\adjustbox{width=2cm,height=2cm,keepaspectratio, center=2cm,126valign=M, set vsize={1cm}{1cm},127bgcolor=myLightGray,cfbox=#1 1px 0px 2px}128{\includestandalone{#2}}%129\space\ignorespaces130}%131132\definecolor{Green}{HTML}{BEF781}133134\tikzstyle{vertex}=[draw,fill=black,circle,minimum size=10pt,inner sep=0pt]135\tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]136\def\TCop{\textsuperscript{\textcopyright}} % Copyright-sign137\usepackage{mathtools}138139\usepackage{csquotes}140141142