Graphentheorie-2.tex 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. \documentclass[usepdftitle=false,hyperref={pdfpagelabels=false}]{beamer}
  2. % use KIT-Theme
  3. % see http://sdqweb.ipd.kit.edu/wiki/Dokumentvorlagen
  4. %\usetheme{Frankfurt} % see http://deic.uab.es/~iblanes/beamer_gallery/index_by_theme.html
  5. \InputIfFileExists{templates/beamerthemekit.sty}{\usepackage{templates/beamerthemekit}}{\usetheme{Frankfurt}}
  6. \usefonttheme{professionalfonts}
  7. \usepackage{hyperref}
  8. \usepackage{lmodern}
  9. \usepackage{listings}
  10. \usepackage{wrapfig} % see http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions
  11. \usepackage[utf8]{inputenc} % this is needed for german umlauts
  12. \usepackage[ngerman]{babel} % this is needed for german umlauts
  13. \usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
  14. \usepackage{verbatim}
  15. \usepackage{relsize}
  16. \usepackage{subfigure}
  17. % http://en.wikibooks.org/wiki/LaTeX/Algorithms_and_Pseudocode
  18. % http://tex.stackexchange.com/questions/1375/what-is-a-good-package-for-displaying-algorithms
  19. % http://tex.stackexchange.com/questions/26539/beamer-and-pseudocode
  20. % http://www.jkrieger.de/tools/latex/informatik.html
  21. % http://ctan.mackichan.com/macros/latex/contrib/algorithmicx/algorithmicx.pdf
  22. % http://ctan.mackichan.com/macros/latex/contrib/algorithms/algorithms.pdf
  23. % http://www.cs.brown.edu/system/software/latex/doc/algodoc.pdf
  24. % http://www.cs.utexas.edu/~shan/doc/algorithms.pdf
  25. \usepackage{algorithm,algpseudocode}
  26. \usepackage{tikz}
  27. \usetikzlibrary{arrows,shapes,positioning,shadows,calc}
  28. \usepackage{tkz-berge}
  29. \usepackage{xcolor}
  30. \makeatletter
  31. % to change colors
  32. \newcommand{\fillcol}{green!20}
  33. \newcommand{\bordercol}{black}
  34. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  35. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  36. % code from Andrew Stacey (with small adjustment to the border color)
  37. % http://tex.stackexchange.com/questions/51582/background-coloring-with-overlay-specification-in-algorithm2e-beamer-package
  38. \newcounter{jumping}
  39. \resetcounteronoverlays{jumping}
  40. \def\jump@setbb#1#2#3{%
  41. \@ifundefined{jump@#1@maxbb}{%
  42. \expandafter\gdef\csname jump@#1@maxbb\endcsname{#3}%
  43. }{%
  44. \csname jump@#1@maxbb\endcsname
  45. \pgf@xa=\pgf@x
  46. \pgf@ya=\pgf@y
  47. #3
  48. \pgfmathsetlength\pgf@x{max(\pgf@x,\pgf@xa)}%
  49. \pgfmathsetlength\pgf@y{max(\pgf@y,\pgf@ya)}%
  50. \expandafter\xdef\csname jump@#1@maxbb\endcsname{\noexpand\pgfpoint{\the\pgf@x}{\the\pgf@y}}%
  51. }
  52. \@ifundefined{jump@#1@minbb}{%
  53. \expandafter\gdef\csname jump@#1@minbb\endcsname{#2}%
  54. }{%
  55. \csname jump@#1@minbb\endcsname
  56. \pgf@xa=\pgf@x
  57. \pgf@ya=\pgf@y
  58. #2
  59. \pgfmathsetlength\pgf@x{min(\pgf@x,\pgf@xa)}%
  60. \pgfmathsetlength\pgf@y{min(\pgf@y,\pgf@ya)}%
  61. \expandafter\xdef\csname jump@#1@minbb\endcsname{\noexpand\pgfpoint{\the\pgf@x}{\the\pgf@y}}%
  62. }
  63. }
  64. \tikzset{%
  65. remember picture with id/.style={%
  66. remember picture,
  67. overlay,
  68. draw=\bordercol,
  69. save picture id=#1,
  70. },
  71. save picture id/.code={%
  72. \edef\pgf@temp{#1}%
  73. \immediate\write\pgfutil@auxout{%
  74. \noexpand\savepointas{\pgf@temp}{\pgfpictureid}}%
  75. },
  76. if picture id/.code args={#1#2#3}{%
  77. \@ifundefined{save@pt@#1}{%
  78. \pgfkeysalso{#3}%
  79. }{
  80. \pgfkeysalso{#2}%
  81. }
  82. },
  83. onslide/.code args={<#1>#2}{%
  84. \only<#1>{\pgfkeysalso{#2}}%
  85. },
  86. alt/.code args={<#1>#2#3}{%
  87. \alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}%
  88. },
  89. stop jumping/.style={
  90. execute at end picture={%
  91. \stepcounter{jumping}%
  92. \immediate\write\pgfutil@auxout{%
  93. \noexpand\jump@setbb{\the\value{jumping}}{\noexpand\pgfpoint{\the\pgf@picminx}{\the\pgf@picminy}}{\noexpand\pgfpoint{\the\pgf@picmaxx}{\the\pgf@picmaxy}}
  94. },
  95. \csname jump@\the\value{jumping}@maxbb\endcsname
  96. \path (\the\pgf@x,\the\pgf@y);
  97. \csname jump@\the\value{jumping}@minbb\endcsname
  98. \path (\the\pgf@x,\the\pgf@y);
  99. },
  100. }
  101. }
  102. \def\savepointas#1#2{%
  103. \expandafter\gdef\csname save@pt@#1\endcsname{#2}%
  104. }
  105. \def\tmk@labeldef#1,#2\@nil{%
  106. \def\tmk@label{#1}%
  107. \def\tmk@def{#2}%
  108. }
  109. \tikzdeclarecoordinatesystem{pic}{%
  110. \pgfutil@in@,{#1}%
  111. \ifpgfutil@in@%
  112. \tmk@labeldef#1\@nil
  113. \else
  114. \tmk@labeldef#1,\pgfpointorigin\@nil
  115. \fi
  116. \@ifundefined{save@pt@\tmk@label}{%
  117. \tikz@scan@one@point\pgfutil@firstofone\tmk@def
  118. }{%
  119. \pgfsys@getposition{\csname save@pt@\tmk@label\endcsname}\save@orig@pic%
  120. \pgfsys@getposition{\pgfpictureid}\save@this@pic%
  121. \pgf@process{\pgfpointorigin\save@this@pic}%
  122. \pgf@xa=\pgf@x
  123. \pgf@ya=\pgf@y
  124. \pgf@process{\pgfpointorigin\save@orig@pic}%
  125. \advance\pgf@x by -\pgf@xa
  126. \advance\pgf@y by -\pgf@ya
  127. }%
  128. }
  129. \newcommand\tikzmark[2][]{%
  130. \tikz[remember picture with id=#2] #1;}
  131. \makeatother
  132. \resetcounteronoverlays{algocf}
  133. \newcommand<>{\boxto}[1]{%
  134. \only#2{\tikz[remember picture with id=#1]
  135. \draw[line width=1pt,fill=\fillcol,rectangle,rounded corners]
  136. (pic cs:#1) ++(5.2,-.1) rectangle (-0.4,0)
  137. ;\tikz\node [anchor=base] (#1){};}% <= insertion to store the anchor to be used as based for the annotation
  138. }
  139. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  140. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  141. % Define some styles for graphs
  142. \tikzstyle{vertex}=[circle,fill=black!25,minimum size=20pt,inner sep=0pt]
  143. \tikzstyle{selected vertex} = [vertex, fill=red!24]
  144. \tikzstyle{blue vertex} = [vertex, fill=blue!24]
  145. \tikzstyle{yellow vertex} = [vertex, fill=yellow!24]
  146. \tikzstyle{edge} = [draw,thick,-]
  147. \tikzstyle{weight} = [font=\small]
  148. \tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]
  149. \tikzstyle{ignored edge} = [draw,line width=5pt,-,black!20]
  150. \hypersetup{pdftitle={Graphentheorie II}}
  151. \beamertemplatenavigationsymbolsempty
  152. \newcommand\InsertToC[1][]{
  153. \begin{frame}{Outline}
  154. \tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=show/show/show, #1]
  155. \end{frame}
  156. }
  157. \begin{document}
  158. \title{Graphentheorie II}
  159. \author{Tobias Sturm, Martin Thoma, Max Wagner, Thomas Krings}
  160. \date{\today}
  161. \subject{Graphentheorie-Referat fur ICPC}
  162. \frame{\titlepage}
  163. \frame{
  164. \frametitle{Inhaltsverzeichnis}
  165. \setcounter{tocdepth}{1}
  166. \tableofcontents
  167. \setcounter{tocdepth}{2}
  168. }
  169. \AtBeginSection[]{
  170. \InsertToC[sections={\thesection}] % shows only subsubsections of one subsection
  171. }
  172. \input{MinimaleSpannbaume} % Minimale Spannbäume
  173. \input{SCC} % Starke zusammenhangskomponenten
  174. \input{GraphColoring} % Färbung von Graphen
  175. \input{Kreise} % Euler- und Hamilton-Kreise
  176. \section{Abspann}
  177. \subsection{Abspann}
  178. \begin{frame}{}
  179. Vielen Dank für eure Aufmerksamkeit!
  180. \end{frame}
  181. \input{Literatur} % Quellen und weitere Infos
  182. \input{Quellen}
  183. \end{document}