beamerthemekitwide.sty 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. %% LaTeX-Beamer template for KIT design
  2. %% Widescreen
  3. %% by Erik Burger, Christian Hammer, David Dauer
  4. %% title picture by Klaus Krogmann
  5. %%
  6. %% version 2.2 for Beamer v3.30
  7. %%
  8. %% mostly compatible to KIT corporate design v2.0
  9. %% http://intranet.kit.edu/gestaltungsrichtlinien.php
  10. %%
  11. %% Problems, bugs and comments to
  12. %% burger@kit.edu
  13. \usepackage{../templates/beamerthemekitbase}
  14. \usepackage{geometry}
  15. \geometry{papersize={15.36cm,9.6cm}}
  16. \setlength{\unitlength}{1mm}
  17. \useoutertheme[height=0pt,width=2.57cm,left]{sidebar}
  18. \setbeamertemplate{title page}
  19. {
  20. \thispagestyle{empty}
  21. %middle block with name of institute
  22. \begin{textblock*}{\paperwidth}(1mm,47mm)
  23. \begin{pgfpicture}{0mm}{0mm}{\paperwidth-2mm}{6mm}
  24. \color{black!50}
  25. \pgfpathrectangle{\pgfpoint{0mm}{0mm}}{\pgfpoint{\paperwidth-2mm}{6mm}}
  26. \pgfusepath{fill}
  27. \pgftext[at=\pgfpoint{5mm}{3mm},left]{\textcolor{white}{\tiny\uppercase\expandafter{\insertinstitute}}}
  28. \end{pgfpicture}
  29. \end{textblock*}
  30. %elements on title page
  31. %KIT logo
  32. \begin{textblock*}{24mm}(6mm,5mm)
  33. \iflanguage{english}{%
  34. \includegraphics[width=23mm]{logos/kitlogo_en_rgb}
  35. }{%
  36. \includegraphics[width=23mm]{logos/kitlogo_de_rgb}
  37. }%
  38. \end{textblock*}
  39. %institute logo
  40. \begin{textblock*}{20mm}(127mm,4mm)
  41. \includegraphics[width=20mm]{logos/\@titlelogo}
  42. \end{textblock*}
  43. %title
  44. \begin{textblock*}{143mm}(6mm,19mm)
  45. \begin{beamercolorbox}[wd=118mm,ht=14mm,dp=3mm]{white}%
  46. \Large\textbf{\inserttitle}
  47. \end{beamercolorbox}
  48. \end{textblock*}
  49. %subtitle
  50. \begin{textblock*}{143mm}(6mm,36mm)
  51. \scriptsize \insertsubtitle
  52. \end{textblock*}
  53. %author
  54. \begin{textblock*}{143mm}(6mm,40mm)
  55. \scriptsize\insertauthor~\textbar~\insertshortdate
  56. \end{textblock*}
  57. %legal KIT text
  58. \begin{textblock*}{70mm}[0,1](6mm,94.5mm)
  59. \fontsize{4pt}{6pt}\selectfont
  60. \iflanguage{english}{
  61. KIT -- University of the State of Baden-Wuerttemberg and National Laboratory of the Helmholtz Association}
  62. {KIT -- Universit{\"a}t des Landes Baden-W{\"u}rttemberg und nationales Forschungszentrum in der Helmholtz-Gemeinschaft}
  63. \end{textblock*}
  64. \begin{textblock*}{16mm}(120mm,90mm)
  65. \fontsize{8pt}{8pt}\selectfont
  66. \bfseries
  67. \textcolor{white}{
  68. \href{http://www.kit.edu}{www.kit.edu}
  69. }
  70. \end{textblock*}
  71. % title image
  72. \begin{textblock*}{\paperwidth}(1mm,53.5mm)
  73. \begin{overpic}[width=151.6mm,height=40mm]{logos/\@titleimage}
  74. \put(-2,-1){
  75. %mask curve for lower left corner of title image
  76. \begin{pgfpicture}{0mm}{0mm}{3mm}{3mm}
  77. \pgfpathqmoveto{0mm}{0mm}
  78. \pgfpathlineto{\pgfpoint{3mm}{0mm}}
  79. \pgfpathlineto{\pgfpoint{3mm}{1mm}}
  80. {\pgfsetcornersarced{\pgfpoint{2mm}{2mm}}
  81. \pgfpathlineto{\pgfpoint{1mm}{1mm}}
  82. \pgfpathlineto{\pgfpoint{1mm}{3mm}}}
  83. \pgfpathmoveto{\pgfpoint{1mm}{3mm}}
  84. \pgfpathlineto{\pgfpoint{0mm}{3mm}}
  85. \pgfpathlineto{\pgfpoint{0mm}{0mm}}
  86. \pgfpathclose
  87. \color{black!15}
  88. \pgfusepath{fill}
  89. \end{pgfpicture}
  90. }
  91. \end{overpic}
  92. \end{textblock*}
  93. }
  94. %background for pages
  95. %CH: for plain frames
  96. \newlength{\kitbottom}
  97. \usebackgroundtemplate{
  98. \setlength{\kitbottom}{\ifbeamer@plainframe1mm\else4mm\fi}%
  99. \begin{pgfpicture}{0mm}{0mm}{\paperwidth}{\paperheight}
  100. {\pgfsetcornersarced{\pgfpoint{2mm}{2mm}}
  101. \pgfpathmoveto{\pgfpoint{\paperwidth-1mm}{\kitbottom}}
  102. \pgfpathlineto{\pgfpoint{1mm}{\kitbottom}}
  103. \pgfpathlineto{\pgfpoint{1mm}{\paperheight-1mm}}}
  104. {\pgfsetcornersarced{\pgfpoint{2mm}{2mm}}
  105. \pgfpathmoveto{\pgfpoint{1mm}{\paperheight-1mm}}
  106. \pgfpathlineto{\pgfpoint{\paperwidth-1mm}{\paperheight-1mm}}
  107. \pgfpathlineto{\pgfpoint{\paperwidth-1mm}{\kitbottom}}}
  108. \color{white}
  109. \pgfusepath{fill}
  110. \end{pgfpicture}%
  111. }
  112. %frametitle
  113. \setbeamertemplate{frametitle}
  114. {
  115. \vspace{2mm} %\hspace*{-4mm}
  116. \vbox{\hsize=9cm\bfseries\insertframetitle}
  117. \begin{textblock*}{15mm}(133.6mm,4mm)
  118. \iflanguage{english}{%
  119. \includegraphics[width=14mm]{logos/kitlogo_en_rgb}
  120. }{%
  121. \includegraphics[width=14mm]{logos/kitlogo_de_rgb}
  122. }%
  123. \end{textblock*}
  124. % obsolete as of KIT-CD v2.0
  125. %\begin{textblock*}{1.5mm}(1mm,1mm)
  126. %\begin{pgfpicture}{0mm}{0mm}{1.5mm}{9mm}
  127. %\color{kit-green100}
  128. %\pgfpathrectangle{\pgfpoint{0mm}{0mm}}{\pgfpoint{1.5mm}{9mm}}
  129. %\pgfusepath{fill}
  130. %\end{pgfpicture}%
  131. %\end{textblock*}
  132. }
  133. \setbeamertemplate{headline}
  134. {
  135. }
  136. %footer
  137. \setbeamertemplate{footline}
  138. {
  139. \hbox{
  140. \begin{beamercolorbox}[wd=0.7\textwidth,ht=2.2mm,dp=2mm,leftskip=1.3em]{author in head/foot}%
  141. \usebeamerfont{author in head/foot}%
  142. \fontsize{4pt}{6pt}\selectfont
  143. \iflanguage{english}{
  144. KIT -- University of the State of Baden-Wuerttemberg and National Laboratory of the Helmholtz Association}
  145. {KIT -- Universit{\"a}t des Landes Baden-W{\"u}rttemberg und nationales Forschungszentrum in der Helmholtz-Gemeinschaft}
  146. \end{beamercolorbox}%
  147. \vspace*{-4mm}\hspace*{0.8\textwidth}%
  148. \begin{beamercolorbox}[wd=0.2\textwidth,ht=2.2mm,dp=1.5mm,left,leftskip=.5em]{title in head/foot}%
  149. \usebeamerfont{title in head/foot}%
  150. \insertshortdate
  151. \end{beamercolorbox}%
  152. \begin{beamercolorbox}[wd=0.05\paperwidth,ht=2.2mm,dp=2mm,right]{date in head/foot}%
  153. \usebeamerfont{date in head/foot}%
  154. \insertframenumber{}/\inserttotalframenumber
  155. \end{beamercolorbox}%
  156. }
  157. \vskip -0.75mm
  158. }
  159. \setbeamerfont{title in sidebar}{family=\sffamily,series=\mdseries,size={\fontsize{10}{12}}}
  160. \setbeamerfont{section in sidebar}{family=\sffamily,series=\mdseries,size={\fontsize{9}{12}}}
  161. \setbeamerfont{subsection in sidebar}{family=\sffamily,series=\mdseries,size={\fontsize{8}{12}}}
  162. \setbeamertemplate{sidebar \beamer@sidebarside}
  163. {
  164. \beamer@tempdim=\beamer@sidebarwidth%
  165. \advance\beamer@tempdim by -6pt%
  166. {\usebeamerfont{title in sidebar}%
  167. \vskip1.5em%
  168. \hskip3mm%
  169. \usebeamercolor[fg]{title in sidebar}%
  170. \insertshorttitle[width=\beamer@tempdim,respectlinebreaks]\par%
  171. \vskip1.25em%
  172. }%
  173. {%
  174. \hskip3mm%
  175. \usebeamercolor[fg]{author in sidebar}%
  176. \usebeamerfont{author in sidebar}%
  177. \insertshortauthor[width=\beamer@tempdim,respectlinebreaks]\par%
  178. \vskip1.25em%
  179. }%
  180. \hskip3mm\insertverticalnavigation{\beamer@sidebarwidth}%
  181. \vfill
  182. \ifx\beamer@sidebarside\beamer@lefttext%
  183. \else%
  184. \usebeamercolor{normal text}%
  185. \llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
  186. \vskip2pt%
  187. \fi%
  188. }%