myStyle.sty 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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{tikz}
  15. \usetikzlibrary{arrows,shapes}
  16. \usepackage{relsize}
  17. \usepackage{subfigure}
  18. \usepackage{algorithm,algpseudocode}
  19. \usepackage{minted} % needed for the inclusion of source code
  20. \usepackage{menukeys}
  21. \usepackage{xcolor}
  22. \usepackage{pifont}% http://ctan.org/pkg/pifont
  23. \usepackage{soul}
  24. \usepackage{algorithm,algpseudocode}
  25. % Define some styles for graphs
  26. \tikzstyle{vertex}=[circle,fill=black!25,minimum size=20pt,inner sep=0pt]
  27. \tikzstyle{selected vertex} = [vertex, fill=red!24]
  28. \tikzstyle{blue vertex} = [vertex, fill=blue!24]
  29. \tikzstyle{edge} = [draw,thick,-]
  30. \tikzstyle{weight} = [font=\small]
  31. \tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]
  32. \tikzstyle{ignored edge} = [draw,line width=5pt,-,black!20]
  33. %\algdef{SE}[IF]{NoThenIf}{EndIf}[1]{\algorithmicif\ #1\textbf{:}}{\algorithmicend\ \algorithmicif}%
  34. \algtext*{EndIf} % Remove "end if" text
  35. \algtext*{EndWhile} % Remove "end while" text
  36. \algtext*{EndFunction} % Remove "end while" text
  37. \algnewcommand\Global{\textbf{global }}
  38. % http://tex.stackexchange.com/a/8388/5645
  39. \newcommand{\alertline}{%
  40. \usebeamercolor[fg]{normal text}%
  41. \only{\usebeamercolor[fg]{alerted text}}}
  42. \newcommand {\framedgraphic}[2] {
  43. \begin{frame}{#1}
  44. \begin{center}
  45. \includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#2}
  46. \end{center}
  47. \end{frame}
  48. }
  49. \hypersetup{%
  50. breaklinks=true,
  51. linktocpage=false,
  52. colorlinks=true,
  53. urlcolor=blue,
  54. linkcolor=blue,
  55. citecolor=black
  56. }
  57. \newcommand{\myCode}[1]{\colorbox{gray!30}{#1}}
  58. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  59. % Make source code easier to copy %
  60. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  61. % from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref
  62. \usepackage{accsupp}
  63. \newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}
  64. %default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}}
  65. \let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version
  66. \def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}}
  67. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  68. % Add some shortcuts %
  69. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  70. \newcommand{\cmark}{\ding{51}}% a checkmark
  71. \newcommand{\xmark}{\ding{55}}% a cross
  72. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  73. % Set some template options - other tutors will have to adjust this %
  74. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  75. \newcommand\tutor{Martin Thoma, Benjamin Lipp}
  76. \newcommand\titleText{How Google Searches Work}
  77. \institute{Sprachenzentrum}
  78. \titleimage{pagerank}
  79. \hypersetup{pdftitle={\titleText}}
  80. \beamertemplatenavigationsymbolsempty
  81. \newcommand\InsertToC[1][]{
  82. \begin{frame}{Outline}
  83. \tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=show/show/show, #1]
  84. \end{frame}
  85. }