myStyle.sty 4.0 KB

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