beamerouterthemeal.sty 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. % File created by Daniel Haase based on 'beamerouterthemeinfolines.sty' by Till Tantau
  2. %
  3. % This file may be distributed and/or modified
  4. %
  5. % 1. under the LaTeX Project Public License and/or
  6. % 2. under the GNU Public License.
  7. %
  8. % See the file doc/licenses/LICENSE for more details.
  9. % translation for slide numbers shown in the footer, e.g. "7 of 18"
  10. \usepackage{translator}
  11. \deftranslation[to=English]{of}{of}
  12. \deftranslation[to=German]{of}{von}
  13. \setbeamertemplate{navigation symbols}{}
  14. \mode<presentation>
  15. % set some colors
  16. % \setbeamercolor*{author in head/foot}{parent=palette tertiary}
  17. % \setbeamercolor*{title in head/foot}{parent=palette secondary}
  18. % \setbeamercolor*{date in head/foot}{parent=palette primary}
  19. %
  20. % \setbeamercolor*{section in head/foot}{parent=palette tertiary}
  21. % \setbeamercolor*{subsection in head/foot}{parent=palette primary}
  22. % headline
  23. \defbeamertemplate*{headline}{al theme}{%
  24. \insertlogo%
  25. }
  26. % frame title
  27. \defbeamertemplate*{frametitle}{al theme}[1][center]{%
  28. \vspace{2ex}%
  29. \hbox{%
  30. \begin{beamercolorbox}[wd=0.09\paperwidth]{}%
  31. \end{beamercolorbox}%
  32. \begin{beamercolorbox}[wd=0.55\paperwidth]{palette secondary}%
  33. \usebeamerfont{headline}\insertsectionhead%
  34. \ifx\insertsubsectionhead\@empty%
  35. \else%
  36. :~\insertsubsectionhead%
  37. \fi%
  38. \\[-1ex]%
  39. {\usebeamerfont{frametitle}\insertframetitle\strut\par}%
  40. \ifx\insertframesubtitle\@empty%
  41. \else%
  42. {\usebeamerfont{framesubtitle}\usebeamercolor{framesubtitle}\insertframesubtitle\\[-2.5em]\strut\par}%
  43. \fi%
  44. \end{beamercolorbox}
  45. }%
  46. \leavevmode\\[-0.5em]%
  47. }
  48. % right sidebar
  49. % is necessary, as this is the original position of the logo (see default outer theme)
  50. \defbeamertemplate*{sidebar right}{al theme}{}
  51. % footline
  52. \defbeamertemplate*{footline}{al theme}{%
  53. \leavevmode%
  54. \hbox{%
  55. \begin{beamercolorbox}[wd=.4\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
  56. \usebeamerfont{author in head/foot}\insertshortauthor~~%(\insertshortinstitute)
  57. \end{beamercolorbox}%
  58. \begin{beamercolorbox}[wd=.535\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
  59. \usebeamerfont{title in head/foot}\insertshorttitle
  60. \end{beamercolorbox}%
  61. %
  62. \begin{picture}(0,0)
  63. % \@ifundefined{maskottchen}{}{
  64. % \put(0,7){\includegraphics[width=.065\paperwidth]{\maskottchen}}}
  65. \put(-2,0){
  66. \begin{beamercolorbox}[wd=.065\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
  67. %SHOW CURRENT DATE
  68. % \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
  69. %SHOW CURRENT NUMBER OF FRAME
  70. \insertframenumber{}
  71. %SHOW TOTAL NUMBER OF FRAMES
  72. \hspace*{2ex}
  73. \end{beamercolorbox}%
  74. }
  75. \end{picture}
  76. }
  77. \vskip0pt%
  78. }
  79. \setbeamersize{text margin left=1em,text margin right=1em}
  80. % we don't want no icon bar
  81. \defbeamertemplate*{sidebar right}{masl theme} {}
  82. \beamertemplatenavigationsymbolsempty % deaktivieren der Navigationsleiste
  83. \mode
  84. <all>