myStyle.sty 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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,decorations.pathmorphing}
  16. \usepackage{relsize}
  17. \usepackage{subfigure}
  18. \usepackage[Algorithmus]{algorithm}
  19. \usepackage{algpseudocode}
  20. \usepackage{minted} % needed for the inclusion of source code
  21. \usepackage{menukeys}
  22. \usepackage{xcolor}
  23. \usepackage{pifont}% http://ctan.org/pkg/pifont
  24. \usepackage{soul}
  25. \usepackage{braket}
  26. % Define some styles for graphs
  27. \tikzstyle{vertex}=[circle,fill=black!25,minimum size=20pt,inner sep=0pt]
  28. \tikzstyle{selected vertex} = [vertex, fill=red!24]
  29. \tikzstyle{blue vertex} = [vertex, fill=blue!24]
  30. \tikzstyle{edge} = [draw,thick,-]
  31. \tikzstyle{weight} = [font=\small]
  32. \tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]
  33. \tikzstyle{ignored edge} = [draw,line width=5pt,-,black!20]
  34. %\algdef{SE}[IF]{NoThenIf}{EndIf}[1]{\algorithmicif\ #1\textbf{:}}{\algorithmicend\ \algorithmicif}%
  35. \algtext*{EndIf} % Remove "end if" text
  36. \algtext*{EndWhile} % Remove "end while" text
  37. \algtext*{EndFunction} % Remove "end while" text
  38. \algnewcommand\Global{\textbf{global }}
  39. % http://tex.stackexchange.com/a/8388/5645
  40. \newcommand{\alertline}{%
  41. \usebeamercolor[fg]{normal text}%
  42. \only{\usebeamercolor[fg]{alerted text}}}
  43. \newcommand {\framedgraphic}[2] {
  44. \begin{frame}{#1}
  45. \begin{center}
  46. \includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#2}
  47. \end{center}
  48. \end{frame}
  49. }
  50. \hypersetup{%
  51. breaklinks=true,
  52. linktocpage=false,
  53. colorlinks=true,
  54. urlcolor=blue,
  55. linkcolor=blue,
  56. citecolor=black
  57. }
  58. \newcommand{\myCode}[1]{\colorbox{gray!30}{#1}}
  59. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  60. % Make source code easier to copy %
  61. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  62. % from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref
  63. \usepackage{accsupp}
  64. \newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}
  65. %default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}}
  66. \let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version
  67. \def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}}
  68. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  69. % Add some shortcuts %
  70. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  71. \newcommand{\cmark}{\ding{51}}% a checkmark
  72. \newcommand{\xmark}{\ding{55}}% a cross
  73. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  74. % Set some template options - other tutors will have to adjust this %
  75. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  76. \newcommand\tutor{Martin Thoma}
  77. \newcommand\titleText{Graphentheorie I}
  78. \institute{Institut für Stochastik}
  79. \titleimage{graph-titleimage}
  80. \hypersetup{pdftitle={\titleText}}
  81. \beamertemplatenavigationsymbolsempty
  82. \newcommand\InsertToC[1][]{
  83. \begin{frame}{Outline}
  84. \tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=show/show/show, #1]
  85. \end{frame}
  86. }
  87. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  88. % Gallery %
  89. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  90. \usepackage{adjustbox}
  91. \usepackage{xcolor}
  92. \definecolor{myLightGray}{HTML}{F9F9F9}
  93. \definecolor{borderColor}{HTML}{CCCCCC}
  94. \usepackage{standalone} % needed for includestandalone
  95. \usepackage{tikz} % needed for includestandalone
  96. \usetikzlibrary{arrows,positioning, calc}
  97. \tikzset{
  98. pil/.style={->,thick}
  99. }
  100. \newenvironment{gallery}{%
  101. \center
  102. }{%
  103. \par\endcenter
  104. }
  105. \newcommand{\galleryimage}[2][borderColor]{
  106. \adjustbox{width=2cm,height=2cm,keepaspectratio, center=2cm,
  107. valign=M, set vsize={1cm}{1cm},
  108. bgcolor=myLightGray,cfbox=#1 1px 0px 2px}
  109. {\includestandalone{#2}}%
  110. \space\ignorespaces
  111. }%
  112. \definecolor{Green}{HTML}{BEF781}
  113. \tikzstyle{vertex}=[draw,fill=black,circle,minimum size=10pt,inner sep=0pt]
  114. \tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]
  115. \def\TCop{\textsuperscript{\textcopyright}} % Copyright-sign
  116. \usepackage{mathtools}
  117. \usepackage{csquotes}