myStyle.sty 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. \newcommand {\framedgraphic}[2] {
  23. \begin{frame}{#1}
  24. \begin{center}
  25. \includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#2}
  26. \end{center}
  27. \end{frame}
  28. }
  29. \hypersetup{%
  30. breaklinks=true,
  31. linktocpage=false,
  32. colorlinks=true,
  33. urlcolor=blue,
  34. linkcolor=blue,
  35. citecolor=black
  36. }
  37. \newcommand{\myCode}[1]{\colorbox{gray!30}{#1}}
  38. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  39. % Make source code easier to copy %
  40. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  41. % from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref
  42. \usepackage{accsupp}
  43. \newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}
  44. %default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}}
  45. \let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version
  46. \def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}}
  47. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  48. % Add some shortcuts %
  49. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  50. \newcommand{\cmark}{\ding{51}}% a checkmark
  51. \newcommand{\xmark}{\ding{55}}% a cross
  52. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  53. % Set some template options - other tutors will have to adjust this %
  54. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  55. \newcommand\tutor{Martin Thoma, Benjamin}
  56. \newcommand\titleText{How Google searches work}
  57. \institute{Fakultät für Informatik}
  58. \hypersetup{pdftitle={\titleText}}
  59. \beamertemplatenavigationsymbolsempty
  60. \newcommand\InsertToC[1][]{
  61. \begin{frame}{Outline}
  62. \tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=show/show/show, #1]
  63. \end{frame}
  64. }