forked from sanhacheong/stanford-beamer-presentation
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbeamerouterthemesimplefooter.sty
116 lines (86 loc) · 3.24 KB
/
beamerouterthemesimplefooter.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
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.
\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/outer/beamerouterthemesimplefooter.sty,v 1.9 2007/01/28 20:48:30 tantau Exp $
\newdimen\beamer@sidebarwidth
\newdimen\beamer@headheight
\usebeamerfont{frametitle}
\beamer@sidebarwidth=0\paperwidth
\beamer@headheight=0.4in
\reset@font
\def\beamer@lefttext{left}
\DeclareOptionBeamer{hideothersubsections}[]{\beamer@nav@subsectionstyle{show/show/hide}}
\DeclareOptionBeamer{hideallsubsections}[]{\beamer@nav@subsectionstyle{hide}}
\DeclareOptionBeamer{width}{\beamer@sidebarwidth=#1}
\DeclareOptionBeamer{height}{\beamer@headheight=#1}
\DeclareOptionBeamer{left}{\def\beamer@sidebarside{left}}
\DeclareOptionBeamer{right}{\def\beamer@sidebarside{right}}
\ExecuteOptionsBeamer{left}
\ProcessOptionsBeamer
\mode<presentation>
\setbeamercolor{section in head/foot}{parent=palette primary}
\setbeamercolor{subsection in head/foot}{parent=palette primary}
\setbeamercolor{author in head/foot}{parent=footer}
\setbeamercolor{title in head/foot}{parent=subsection in head/foot}
% Foot
\defbeamertemplate*{footline}{simplefooter theme}
{%
\leavevmode%
\hbox{\begin{beamercolorbox}[wd=\paperwidth,ht=2.4ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot} \usebeamerfont{author in head/foot}\begin{tabular*}{0.973\paperwidth}{@{\extracolsep{\fill}}c c c}\insertshorttitle&\insertshortauthor&\insertframenumber/\inserttotalframenumber\end{tabular*}
\end{beamercolorbox}%
} \vskip0pt%
}
\ifdim\beamer@headheight>0pt
% if head height is 0pt, use default frame title
\setbeamercolor*{frametitle}{parent=sidebar}
\defbeamertemplate*{frametitle}{sidebar theme}
{%
\nointerlineskip%
\vskip-\beamer@headheight%
\vbox to \beamer@headheight{%
\vfil
\leftskip=-\beamer@leftmargin%
\advance\leftskip by0.3cm%
\rightskip=-\beamer@rightmargin%
\advance\rightskip by0.3cm plus1fil%
{\usebeamercolor[fg]{frametitle}\usebeamerfont{frametitle}\insertframetitle\par}%
{\usebeamercolor[fg]{framesubtitle}\usebeamerfont{framesubtitle}\insertframesubtitle\par}%
\vbox{}%
\vskip-1em%
\vfil
}%
}
\defbeamertemplate*{headline}{sidebar theme}
{%
\begin{beamercolorbox}[wd=\paperwidth]{frametitle}
\ifx\beamer@sidebarside\beamer@lefttt%
\else%
\hfill%
\fi%
\hfill
\usebeamercolor{logo}%
\vrule width\beamer@sidebarwidth height \beamer@headheight
\hskip-\beamer@sidebarwidth%
\rightskip=0.\beamer@rightmargin%
\hbox to \beamer@sidebarwidth{\hss\vbox to
\beamer@headheight{\vss\hbox{\color{fg}\insertlogo}\vss}}%
\vrule width0pt height \beamer@headheight%
\end{beamercolorbox}
}
\fi
\makeatletter
\newenvironment{noheadline}{
\setbeamertemplate{headline}{}
\addtobeamertemplate{frametitle}{\vspace*{-0.9\baselineskip}}{}
}{}
\defbeamertemplate*{sidebar right}{sidebar theme}
{%
\vfill%
\llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
\vskip2pt}
\mode
<all>
%%% Local Variables:
%%% TeX-master: "~/texmf/tex/latex/beamer/test/test.tex"
%%% End: