Newer
Older
LaTeX / beamerthemes / beamerthemeOtago / beamerouterthemeOtago.sty
Nigel Stanger on 12 Sep 2016 3 KB Merge commit '75f193f' as 'beamerthemes'
  1. \ProvidesPackage{beamerouterthemeOtago}[2005/02/07 ver 3.01.003]
  2.  
  3.  
  4. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  5. %
  6. % Copyright 2005 by Nigel Stanger <nstanger@infoscience.otago.ac.nz>
  7. %
  8. % This program can be redistributed and/or modified under the terms
  9. % of the GNU Public License, version 2.
  10. %
  11. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  12.  
  13.  
  14. \mode<presentation>
  15.  
  16.  
  17. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  18. %
  19. % Right sidebar (same as default, but without logo).
  20. %
  21. \defbeamertemplate*{sidebar right}{Otago theme}
  22. {
  23. \vfill%
  24. \llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
  25. \vskip2pt%
  26. }
  27.  
  28.  
  29. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  30. %
  31. % Otago logo. Fill rectangle with white first to stop the background from
  32. % bleeding through.
  33. %
  34. \pgfdeclareimage[width=0.64cm,height=1.05cm]{oulogo}{OU-Logo-Colour}
  35. \logo{%
  36. \begin{pgfpicture}{0cm}{0cm}{0.64cm}{1.05cm}%
  37. \color{white}\pgfrect[fill]{\pgfxy(0,0)}{\pgfxy(0.64,1.05)}%
  38. \pgfputat{\pgfxy(0,0)}{\pgfbox[left,bottom]{\pgfuseimage{oulogo}}}%
  39. \end{pgfpicture}%
  40. }
  41.  
  42.  
  43. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  44. %
  45. % Headline.
  46. %
  47. % OU blue bar across the top, followed by OU gold bar 85% the width of the
  48. % page, followed by OU red bar across the remaining 15% (cf. old Otago web
  49. % page format). Otago logo at top left, section navigation in the blue
  50. % bar.
  51. %
  52. \defbeamertemplate*{headline}{Otago theme}%
  53. {%
  54. \leavevmode%
  55. \begin{beamercolorbox}[ht=3.2mm,dp=1.6mm]{section in head/foot}%
  56. \insertsectionnavigationhorizontal{\paperwidth}{\hskip0.1\paperwidth}{}%
  57. \end{beamercolorbox}
  58. \begin{beamercolorbox}[wd=0.85\paperwidth,ht=2.4mm,dp=1.2mm,colsep=1pt]{title in head/foot}%
  59. \hskip3mm\raisebox{-0.525cm}[0cm][0cm]{\insertlogo}%
  60. \end{beamercolorbox}%
  61. \begin{beamercolorbox}[wd=0.15\paperwidth,ht=2.4mm,dp=1.2mm,colsep=1pt]{page number in head/foot}%
  62. \end{beamercolorbox}%
  63. \vskip3mm%
  64. }
  65.  
  66.  
  67. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  68. %
  69. % Sections in headline. OU gold text on OU blue background. Current section
  70. % is highlighted with a box. We draw the box regardless to ensure the line
  71. % height stays constant.
  72. %
  73. \defbeamertemplate*{section in head/foot}{Otago theme}
  74. {\color{fg}\fbox{\rule{0pt}{0.5\baselineskip}\raisebox{0pt}[0pt][0pt]{\insertsectionhead}}}
  75.  
  76. \defbeamertemplate*{section in head/foot shaded}{Otago theme}[1][50]
  77. {\color{bg}\fbox{\color{fg}\rule{0pt}{0.5\baselineskip}\raisebox{0pt}[0pt][0pt]{\insertsectionhead}}}
  78.  
  79.  
  80. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  81. %
  82. % Footline.
  83. %
  84. % OU gold bar 85% the width of the page, followed by OU red bar across the
  85. % remaining 15% (cf. old Otago web page format). Date at left, author in
  86. % centre, frame number at right.
  87. %
  88. \defbeamertemplate*{footline}{Otago theme}%
  89. {%
  90. \leavevmode%
  91. \begin{beamercolorbox}[wd=0.15\paperwidth,left,leftskip=2mm,ht=2.4mm,dp=1.2mm]{date in head/foot}%
  92. \usebeamertemplate*{date in head/foot}%
  93. \end{beamercolorbox}%
  94. \begin{beamercolorbox}[wd=0.7\paperwidth,center,ht=2.4mm,dp=1.2mm]{title in head/foot}%
  95. \usebeamertemplate*{title in head/foot}%
  96. \end{beamercolorbox}%
  97. \begin{beamercolorbox}[wd=0.15\paperwidth,right,rightskip=2mm,ht=2.4mm,dp=1.2mm]{page number in head/foot}%
  98. \usebeamertemplate*{page number in head/foot}%
  99. \end{beamercolorbox}%
  100. \vskip0pt%
  101. }
  102.  
  103.  
  104. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  105. %
  106. % Footer elements.
  107. %
  108. \defbeamertemplate*{date in head/foot}{Otago theme}{\insertdate}
  109. \defbeamertemplate*{title in head/foot}{Otago theme}{\inserttitle}
  110. \defbeamertemplate*{page number in head/foot}{Otago theme}{\insertframenumber}
  111.  
  112.  
  113. \mode
  114. <all>