📚 The CoCalc Library - books, templates and other resources
cocalc-examples / martinthoma-latex-examples / presentations / Programmieren-Tutorium / templates / myStyle.sty
132930 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[ngerman]{babel} % this is needed for german umlauts12\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf13\usepackage{verbatim}14\usepackage{relsize}15\usepackage{subfigure}16\usepackage{algorithm,algpseudocode}17\usepackage{minted} % needed for the inclusion of source code18\usepackage{menukeys}19\usepackage{xcolor}20\usepackage{pifont}% http://ctan.org/pkg/pifont21\usepackage{soul}22\usepackage{braket} % needed for \Set2324\newcommand {\framedgraphic}[2] {25\begin{frame}{#1}26\begin{center}27\includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#2}28\end{center}29\end{frame}30}3132\hypersetup{%33breaklinks=true,34linktocpage=false,35colorlinks=true,36urlcolor=blue,37linkcolor=blue,38citecolor=black39}4041\newcommand{\myCode}[1]{\colorbox{gray!30}{#1}}4243%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%44% Make source code easier to copy %45%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%46% from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref47\usepackage{accsupp}48\newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}495051%default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}}52\let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version53\def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}}5455%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%56% Add some shortcuts %57%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%58\newcommand{\cmark}{\ding{51}}% a checkmark59\newcommand{\xmark}{\ding{55}}% a cross6061%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%62% Set some template options - other tutors will have to adjust this %63%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%64\newcommand\tutor{Martin Thoma}65\newcommand\tutNR{10}66\newcommand\titleText{Programmieren-Tutorium Nr. \tutNR{} bei \tutor}67\institute{Fakultät für Informatik}6869\hypersetup{pdftitle={\titleText}}70\beamertemplatenavigationsymbolsempty7172\newcommand\InsertToC[1][]{73\begin{frame}{Outline}74\tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=show/show/show, #1]75\end{frame}76}777879