1 % Copyright 2007 by Marco Barisione
3 % This file may be distributed and/or modified
5 % 1. under the LaTeX Project Public License and/or
6 % 2. under the GNU Public License.
10 % Use alternative title page style.
11 \DeclareOptionBeamer{alternativetitlepage}[true]{\def\beamer@fancy@alternativetitlepage{#1}}
13 % Logo to use in the alternative title page.
14 \def\beamer@fancy@titlepagelogo{}
15 \DeclareOptionBeamer{titlepagelogo}{\def\beamer@fancy@titlepagelogo{#1}}
18 \DeclareOptionBeamer{bullet}{\def\beamer@fancy@bullet{#1}}
20 \ExecuteOptionsBeamer{alternativetitlepage=false,bullet=square}
24 \setbeamercolor*{lineup}{parent=palette primary}
25 \setbeamercolor*{linemid}{parent=palette secondary}
26 \setbeamercolor*{linebottom}{parent=palette tertiary}
27 \setbeamercolor*{title page header}{parent=palette quaternary}
30 \newlength{\beamer@fancy@lineup}
31 \setlength{\beamer@fancy@lineup}{.025\paperheight}
32 \newlength{\beamer@fancy@linemid}
33 \setlength{\beamer@fancy@linemid}{.015\paperheight}
34 \newlength{\beamer@fancy@linebottom}
35 \setlength{\beamer@fancy@linebottom}{.01\paperheight}
38 \newlength{\beamer@fancy@normalmargin}
39 \setlength{\beamer@fancy@normalmargin}{.06\paperwidth}
40 \setbeamersize{text margin left=\beamer@fancy@normalmargin}
41 \setbeamersize{text margin right=\beamer@fancy@normalmargin}
42 \setlength\leftmargini{.6\beamer@fancy@normalmargin}
43 \setlength\leftmarginii{.6\beamer@fancy@normalmargin}
44 \setlength\leftmarginiii{.6\beamer@fancy@normalmargin}
47 \defbeamertemplate*{title page normal}{fancy theme}[1][]
52 \begin{beamercolorbox}[wd=\paperwidth,sep=8pt,center,#1]{title page header}
53 \usebeamerfont{title}\inserttitle\par%
54 \ifx\insertsubtitle\@empty%
57 {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
61 \begin{beamercolorbox}[sep=8pt,center,#1]{author}
62 \usebeamerfont{author}\insertauthor
64 \begin{beamercolorbox}[sep=8pt,center,#1]{institute}
65 \usebeamerfont{institute}\insertinstitute
67 \begin{beamercolorbox}[sep=8pt,center,#1]{date}
68 \usebeamerfont{date}\insertdate
69 \end{beamercolorbox}\vskip0.5em
70 {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
75 % Alternative title page, you should use this in a frame with the [plain]
77 \defbeamertemplate*{title page alternative}{fancy theme}[1][]
79 {\parskip0pt\offinterlineskip%
80 \hbox{\hskip-\Gm@lmargin\hbox{\vbox{%
81 \@tempdima=\textwidth\textwidth=\paperwidth\hsize=\textwidth\def\\{,}\vbox{}\vskip-1.5ex%
83 \begin{beamercolorbox}[wd=\paperwidth,ht=.4\paperheight,center,#1]{title page header}
84 \usebeamerfont{title}\inserttitle\par%
85 \ifx\insertsubtitle\@empty%
88 {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
90 \vspace{.125\paperheight}%
92 \vbox{}\vskip-\beamer@fancy@lineup%
93 \vbox{}\vskip-\beamer@fancy@linemid%
96 \begin{beamercolorbox}[wd=.2\paperwidth,ht=\beamer@fancy@lineup,dp=0pt]{}%
98 \begin{beamercolorbox}[wd=.8\paperwidth,ht=\beamer@fancy@lineup,dp=0pt]{lineup}%
104 \begin{beamercolorbox}[wd=.1\paperwidth,ht=\beamer@fancy@linemid,dp=0pt]{}%
105 \end{beamercolorbox}%
106 \begin{beamercolorbox}[wd=.9\paperwidth,ht=\beamer@fancy@linemid,dp=0pt]{linemid}%
107 \end{beamercolorbox}%
111 \begin{beamercolorbox}[wd=.5\paperwidth,ht=\beamer@fancy@linebottom,dp=0pt]{}%
112 \end{beamercolorbox}%
113 \begin{beamercolorbox}[wd=.5\paperwidth,ht=\beamer@fancy@linebottom,dp=0pt]{linebottom}%
114 \end{beamercolorbox}%
122 \ifx\beamer@fancy@titlepagelogo\@empty%
125 \column{.5\textwidth}
128 \vbox{}\vspace{-2em}\vfill
129 \includegraphics[height=.4\paperheight]{\beamer@fancy@titlepagelogo}
132 \column{.5\textwidth}
134 % Authors, institute and date
136 \begin{beamercolorbox}[sep=8pt,center,#1]{author}
137 \usebeamerfont{author}\insertauthor
139 \begin{beamercolorbox}[sep=8pt,center,#1]{institute}
140 \usebeamerfont{institute}\insertinstitute
142 \begin{beamercolorbox}[sep=8pt,center,#1]{date}
143 \usebeamerfont{date}\insertdate
144 \end{beamercolorbox}\vskip0.5em
145 {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
149 \defbeamertemplate*{title page}{fancy}[1][]
151 \def\beamer@fancy@truetext{true}%
152 \ifx\beamer@fancy@alternativetitlepage\beamer@fancy@truetext%
153 \usebeamertemplate{title page alternative}%
155 \usebeamertemplate{title page normal}%
160 \defbeamertemplate{itemize item}{squarealt}%
161 {\tiny\raise.5ex\hbox{\donotcoloroutermaths$\blacksquare$}}
162 \defbeamertemplate{itemize subitem}{squarealt}%
163 {\tiny\raise.4ex\hbox{\donotcoloroutermaths$\square$}}
164 \defbeamertemplate{itemize subsubitem}{squarealt}%
165 {\tiny\raise.3ex\hbox{\donotcoloroutermaths$\blacksquare$}}
167 \defbeamertemplate{itemize item}{circlealt}%
168 {\small\raise.2ex\hbox{\donotcoloroutermaths$\bullet$}}
169 \defbeamertemplate{itemize subitem}{circlealt}%
170 {\small\raise.1ex\hbox{\donotcoloroutermaths$\circ$}}
171 \defbeamertemplate{itemize subsubitem}{circlealt}%
172 {\scriptsize\raise.1ex\hbox{\donotcoloroutermaths$\bullet$}}
174 \def\circletext{circle}
175 \ifx\beamer@fancy@bullet\circletext
176 \setbeamertemplate{items}[circlealt]
178 \setbeamertemplate{items}[squarealt]