myStyle.sty 3.9 KB

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