-
Notifications
You must be signed in to change notification settings - Fork 3
/
beamerouterthemeUAFshade.sty
122 lines (102 loc) · 3.75 KB
/
beamerouterthemeUAFshade.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/outer/beamerouterthemeUAFshade.sty,v 1.8 2004/10/14 09:48:48 tantau Exp $
% Copyright 2003 by Till Tantau <[email protected]>
%
% This program can be redistributed and/or modified under the terms
% of the GNU Public License, version 2.
\mode<presentation>
\usebeamercolor{uaf blue}
\usebeamercolor{uaf yellow}
\usebeamercolor{arsc blue}
\usebeamercolor{arsc red}
\usebeamercolor{arsc green}
\pgfdeclarehorizontalshading[white,uaf blue]{beamer@footlineshade}{3.25ex}{%
color(0pt)=(uaf blue);
color(\paperwidth)=(white)}
\pgfdeclareimage[width=\paperwidth]{uaf-bg}{uaf_beamer_shade_bg}
%% smarter/better note pages take from
%% http://tex.stackexchange.com/questions/1480/changing-the-textwidth-of-the-notes-in-beamer-repost-from-so
\makeatletter
\defbeamertemplate{note page}{infolines}
{%
{%
\scriptsize
\insertvrule{.25\paperheight}{white!90!black}
\vskip-.25\paperheight
\nointerlineskip
\vbox{
\hfill\insertslideintonotes{0.25}\hskip-\Gm@rmargin\hskip0pt%
\vskip-0.25\paperheight%
\nointerlineskip
\begin{pgfpicture}{0cm}{0cm}{0cm}{0cm}
\begin{pgflowlevelscope}{\pgftransformrotate{90}}
{\pgftransformshift{\pgfpoint{-2cm}{0.2cm}}%
\pgftext[base,left]{\footnotesize\the\year-\ifnum\month<10\relax0\fi\the\month-\ifnum\day<10\relax0\fi\the\day}}
\end{pgflowlevelscope}
\end{pgfpicture}}
\nointerlineskip
\vbox to .25\paperheight{\vskip0.5em
\hbox{\insertshorttitle[width=8cm]}%
\setbox\beamer@tempbox=\hbox{\insertsection}%
\hbox{\ifdim\wd\beamer@tempbox>1pt{\hskip4pt\raise3pt\hbox{\vrule
width0.4pt height7pt\vrule width 9pt
height0.4pt}}\hskip1pt\hbox{\begin{minipage}[t]{7.5cm}\def\breakhere{}\insertsection\end{minipage}}\fi%
}%
\setbox\beamer@tempbox=\hbox{\insertsubsection}%
\hbox{\ifdim\wd\beamer@tempbox>1pt{\hskip17.4pt\raise3pt\hbox{\vrule
width0.4pt height7pt\vrule width 9pt
height0.4pt}}\hskip1pt\hbox{\begin{minipage}[t]{7.5cm}\def\breakhere{}\insertsubsection\end{minipage}}\fi%
}%
\setbox\beamer@tempbox=\hbox{\insertshortframetitle}%
\hbox{\ifdim\wd\beamer@tempbox>1pt{\hskip30.8pt\raise3pt\hbox{\vrule
width0.4pt height7pt\vrule width 9pt
height0.4pt}}\hskip1pt\hbox{\insertshortframetitle[width=7cm]}\fi%
}%
\vfil}%
}%
\vskip.25em
\nointerlineskip
\begin{minipage}{\textwidth} % this is an addition
\insertnote
\end{minipage} % this is an addition
}
\makeatother
\setbeamertemplate{note page}[infolines]
%%
\DeclareOptionBeamer{headline}{
\defbeamertemplate*{headline}{UAFshade theme}
{
\leavevmode%
\hbox{%
\pgfuseimage{uaf-bg}
}%
\vskip0pt%
}
}
\DeclareOptionBeamer{footline}{
\defbeamertemplate*{footline}{UAFshade theme}
{
\begin{beamercolorbox}[wd=\paperwidth,ht=.5pt]{foot line}
\rule{\paperwidth}{.5pt}
\end{beamercolorbox}
\pgfuseshading{beamer@footlineshade}%
\hskip-\paperwidth%
\vskip-3.25ex%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.25\paperwidth,ht=2.25ex,dp=1ex,left]{footer}%
\usebeamerfont{section in head/foot}\hspace*{1ex}\insertsectionhead\hspace*{2ex}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.45\paperwidth,ht=2.25ex,dp=1ex,left]{footer}%
\usebeamerfont{subsection in head/foot}\insertsubsectionhead
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.30\paperwidth,ht=2.25ex,dp=1ex,right]{palette tertiary}%
\usebeamerfont{date in head/foot}
\insertframenumber{} \hspace*{1ex}
\end{beamercolorbox}}%
\vskip0pt%
}
}
\ProcessOptionsBeamer
\setbeamersize{text margin left=1em,text margin right=1em}
\mode
<all>