myStyle.sty 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. % use KIT-Theme
  2. % see http://sdqweb.ipd.kit.edu/wiki/Dokumentvorlagen
  3. %\usetheme{Frankfurt} % see http://deic.uab.es/~iblanes/beamer_gallery/index_by_theme.html as fallback
  4. \InputIfFileExists{../templates/beamerthemekit.sty}{\usepackage{../templates/beamerthemekit}}{\usetheme{Frankfurt}}
  5. \usefonttheme{professionalfonts}
  6. \usepackage{hyperref}
  7. \usepackage{lmodern}
  8. \usepackage{listings}
  9. \usepackage{wrapfig} % see http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions
  10. \usepackage[utf8]{inputenc} % this is needed for german umlauts
  11. \usepackage[ngerman]{babel} % this is needed for german umlauts
  12. \usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
  13. \usepackage{verbatim}
  14. \usepackage{relsize}
  15. \usepackage{subfigure}
  16. \usepackage{algorithm,algpseudocode}
  17. \usepackage{minted} % needed for the inclusion of source code
  18. \usepackage{menukeys}
  19. \usepackage{xcolor}
  20. \usepackage{pifont}% http://ctan.org/pkg/pifont
  21. \usepackage{soul}
  22. \usepackage{braket} % needed for \Set
  23. \newcommand {\framedgraphic}[2] {
  24. \begin{frame}{#1}
  25. \begin{center}
  26. \includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#2}
  27. \end{center}
  28. \end{frame}
  29. }
  30. \hypersetup{%
  31. breaklinks=true,
  32. linktocpage=false,
  33. colorlinks=true,
  34. urlcolor=blue,
  35. linkcolor=blue,
  36. citecolor=black
  37. }
  38. \newcommand{\myCode}[1]{\colorbox{gray!30}{#1}}
  39. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  40. % Make source code easier to copy %
  41. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  42. % from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref
  43. \usepackage{accsupp}
  44. \newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}
  45. %default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}}
  46. \let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version
  47. \def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}}
  48. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  49. % Add some shortcuts %
  50. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  51. \newcommand{\cmark}{\ding{51}}% a checkmark
  52. \newcommand{\xmark}{\ding{55}}% a cross
  53. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  54. % Set some template options - other tutors will have to adjust this %
  55. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  56. \newcommand\tutor{Martin Thoma}
  57. \newcommand\tutNR{10}
  58. \newcommand\titleText{Programmieren-Tutorium Nr. \tutNR{} bei \tutor}
  59. \institute{Fakultät für Informatik}
  60. \hypersetup{pdftitle={\titleText}}
  61. \beamertemplatenavigationsymbolsempty
  62. \newcommand\InsertToC[1][]{
  63. \begin{frame}{Outline}
  64. \tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=show/show/show, #1]
  65. \end{frame}
  66. }