myStyle.sty 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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[english]{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{algorithm,algpseudocode}
  23. %\algdef{SE}[IF]{NoThenIf}{EndIf}[1]{\algorithmicif\ #1\textbf{:}}{\algorithmicend\ \algorithmicif}%
  24. \algtext*{EndIf} % Remove "end if" text
  25. \algtext*{EndWhile} % Remove "end while" text
  26. \algtext*{EndFunction} % Remove "end while" text
  27. \algnewcommand\Global{\textbf{global }}
  28. % http://tex.stackexchange.com/a/8388/5645
  29. \newcommand{\alertline}{%
  30. \usebeamercolor[fg]{normal text}%
  31. \only{\usebeamercolor[fg]{alerted text}}}
  32. \newcommand {\framedgraphic}[2] {
  33. \begin{frame}{#1}
  34. \begin{center}
  35. \includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#2}
  36. \end{center}
  37. \end{frame}
  38. }
  39. \hypersetup{%
  40. breaklinks=true,
  41. linktocpage=false,
  42. colorlinks=true,
  43. urlcolor=blue,
  44. linkcolor=blue,
  45. citecolor=black
  46. }
  47. \newcommand{\myCode}[1]{\colorbox{gray!30}{#1}}
  48. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  49. % Make source code easier to copy %
  50. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  51. % from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref
  52. \usepackage{accsupp}
  53. \newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}
  54. %default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}}
  55. \let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version
  56. \def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}}
  57. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  58. % Add some shortcuts %
  59. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  60. \newcommand{\cmark}{\ding{51}}% a checkmark
  61. \newcommand{\xmark}{\ding{55}}% a cross
  62. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  63. % Set some template options - other tutors will have to adjust this %
  64. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  65. \newcommand\tutor{Martin Thoma, Benjamin Lipp}
  66. \newcommand\titleText{How Google Searches Work}
  67. \institute{Sprachenzentrum}
  68. \titleimage{pagerank}
  69. \hypersetup{pdftitle={\titleText}}
  70. \beamertemplatenavigationsymbolsempty
  71. \newcommand\InsertToC[1][]{
  72. \begin{frame}{Outline}
  73. \tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=show/show/show, #1]
  74. \end{frame}
  75. }