myStyle.sty 5.0 KB

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