📚 The CoCalc Library - books, templates and other resources
cocalc-examples / martinthoma-latex-examples / presentations / Gute-Frage-Schluesselqualifikation / 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\usepackage{/home/moose/GitHub/LaTeX-examples/presentations/Gute-Frage-Schluesselqualifikation/templates/beamerthemekit}4\usefonttheme{professionalfonts}56\usepackage{tabto}7\usepackage{multirow}8\usepackage{hyperref}9\usepackage{esint}10\usepackage{dsfont}11\usepackage{mathrsfs}12\usepackage{lmodern}13\usepackage{listings}14\usepackage{siunitx}15\DeclareSIUnit\pixel{px}16\usepackage{wasysym}17\usepackage{booktabs}18\usepackage{wrapfig} % see http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions19\usepackage[utf8]{inputenc} % this is needed for german umlauts20\usepackage[english]{babel} % this is needed for german umlauts21\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf22\usepackage{verbatim}23\usepackage{tikz}24\usepackage{pgf-pie}25\usetikzlibrary{arrows,shapes}26\usepackage{relsize}27\usepackage{subfig}28\usepackage{algorithm,algpseudocode}29\usepackage{minted} % needed for the inclusion of source code30\usepackage{menukeys}31\usepackage{xcolor}32\usepackage{pifont}% http://ctan.org/pkg/pifont33\usepackage{soul}34\usepackage[babel]{csquotes}35\usepackage{algorithm,algpseudocode}3637% Define some styles for graphs38\tikzstyle{vertex}=[circle,fill=black!25,minimum size=20pt,inner sep=0pt]39\tikzstyle{selected vertex} = [vertex, fill=red!24]40\tikzstyle{blue vertex} = [vertex, fill=blue!24]41\tikzstyle{edge} = [draw,thick,-]42\tikzstyle{weight} = [font=\small]43\tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]44\tikzstyle{ignored edge} = [draw,line width=5pt,-,black!20]4546%\algdef{SE}[IF]{NoThenIf}{EndIf}[1]{\algorithmicif\ #1\textbf{:}}{\algorithmicend\ \algorithmicif}%47\algtext*{EndIf} % Remove "end if" text48\algtext*{EndWhile} % Remove "end while" text49\algtext*{EndFunction} % Remove "end while" text50\algnewcommand\Global{\textbf{global }}5152% http://tex.stackexchange.com/a/8388/564553\newcommand{\alertline}{%54\usebeamercolor[fg]{normal text}%55\only{\usebeamercolor[fg]{alerted text}}}5657\newcommand {\framedgraphic}[2] {58\begin{frame}{#1}59\begin{center}60\includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#2}61\end{center}62\end{frame}63}6465\hypersetup{%66breaklinks=true,67linktocpage=false,68colorlinks=true,69urlcolor=blue,70linkcolor=blue,71citecolor=black72}7374\newcommand{\myCode}[1]{\colorbox{gray!30}{#1}}7576%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%77% Make source code easier to copy %78%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%79% from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref80\usepackage{accsupp}81\newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}828384%default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}}85\let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version86\def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}}8788%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%89% Add some shortcuts %90%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%91\newcommand{\cmark}{\ding{51}}% a checkmark92\newcommand{\xmark}{\ding{55}}% a cross9394%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%95% Set some template options - other tutors will have to adjust this %96%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%97\newcommand\tutor{Martin Thoma}98\newcommand\titleText{Das ist eine gute Frage!}99\institute{}100\titleimage{formula-recognition-logo}101102\hypersetup{pdftitle={\titleText}}103\beamertemplatenavigationsymbolsempty104105\newcommand\InsertToC[1][]{106\begin{frame}{Outline}107\tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=show/show/show, #1]108\end{frame}109}110111112