| 1 |
% Antonio Gomez ([email protected]) |
| 2 |
% 4-20-17. Added option to put the footer on the right side |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
\mode<presentation> |
| 7 |
|
| 8 |
\usepackage{xcolor} |
| 9 |
\usepackage{graphicx} |
| 10 |
\usepackage{etoolbox} |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
% This theme accepts the "rightfooter" option |
| 15 |
% When used, it will put the TACC logo at the bottom of the slide on the right side |
| 16 |
% By default, it goes to the left |
| 17 |
|
| 18 |
\xifaspectratio{ |
| 19 |
{169} { |
| 20 |
\pgfdeclareimage[width=\paperwidth]{titlebackground}{./figures/master169.jpg} |
| 21 |
\if@rightfooterOption |
| 22 |
\pgfdeclareimage[width=\paperwidth]{background}{./figures/secondary_right169.jpg} |
| 23 |
\else |
| 24 |
\pgfdeclareimage[width=\paperwidth]{background}{./figures/secondary169.jpg} |
| 25 |
\fi |
| 26 |
} |
| 27 |
}[ |
| 28 |
\pgfdeclareimage[width=\paperwidth]{titlebackground}{./figures/master.jpg} |
| 29 |
\if@rightfooterOption |
| 30 |
\pgfdeclareimage[width=\paperwidth]{background}{./figures/secondary_right.jpg} |
| 31 |
\else |
| 32 |
\pgfdeclareimage[width=\paperwidth]{background}{./figures/secondary.jpg} |
| 33 |
\fi |
| 34 |
] |
| 35 |
|
| 36 |
\setbeamertemplate{background canvas}{% |
| 37 |
\xifaspectratio{ |
| 38 |
{169} { |
| 39 |
\ifnum\c@framenumber=1 % |
| 40 |
\begin{picture}(0,0) |
| 41 |
\put(-3,-256){% |
| 42 |
\pgfuseimage{titlebackground} |
| 43 |
} |
| 44 |
\end{picture} |
| 45 |
\else% |
| 46 |
\begin{picture}(0,0) |
| 47 |
\put(-3,-260){% |
| 48 |
\pgfuseimage{background} |
| 49 |
} |
| 50 |
\end{picture} |
| 51 |
\fi |
| 52 |
} |
| 53 |
{43} { |
| 54 |
\ifnum\c@framenumber=1 % |
| 55 |
\begin{picture}(0,0) |
| 56 |
\put(-4,-274){% |
| 57 |
\pgfuseimage{titlebackground} |
| 58 |
} |
| 59 |
\end{picture} |
| 60 |
\else% |
| 61 |
\begin{picture}(0,0) |
| 62 |
\put(-4,-274){% |
| 63 |
\pgfuseimage{background} |
| 64 |
} |
| 65 |
\end{picture} |
| 66 |
\fi |
| 67 |
} |
| 68 |
} |
| 69 |
} |
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
%\setbeamertemplate{background canvas}{% |
| 74 |
% % On title page |
| 75 |
% \ifnum\c@framenumber=1 % |
| 76 |
% \begin{picture}(0,0) |
| 77 |
% \put(0,-253){% |
| 78 |
% \pgfuseimage{titlebackground} |
| 79 |
% } |
| 80 |
% \end{picture} |
| 81 |
% |
| 82 |
% \else% |
| 83 |
% \xifaspectratio{ |
| 84 |
% {169} { |
| 85 |
% % Other frames background |
| 86 |
% \begin{picture}(0,0) |
| 87 |
% \put(-4,-260){% |
| 88 |
% \pgfuseimage{background} |
| 89 |
% } |
| 90 |
% \end{picture} |
| 91 |
% } |
| 92 |
% }[ |
| 93 |
% % Other frames background |
| 94 |
% \begin{picture}(0,0) |
| 95 |
% \put(-4,-274){% |
| 96 |
% \pgfuseimage{background} |
| 97 |
% } |
| 98 |
% \end{picture} |
| 99 |
% ] |
| 100 |
% \fi% |
| 101 |
%} |
| 102 |
|
| 103 |
|
| 104 |
\setbeamertemplate{title page}{ |
| 105 |
\vspace{40pt} |
| 106 |
\begin{center} |
| 107 |
\usebeamerfont{title} {\huge \inserttitle}\par |
| 108 |
\vspace{4ex} |
| 109 |
\usebeamerfont{author} { |
| 110 |
\insertauthor |
| 111 |
}\par |
| 112 |
\vspace{2ex} |
| 113 |
\usebeamerfont{institute}{ |
| 114 |
\insertinstitute |
| 115 |
} \par |
| 116 |
\vspace{2ex} |
| 117 |
\usebeamerfont{date}{ |
| 118 |
\insertdate |
| 119 |
} |
| 120 |
\end{center} |
| 121 |
} |
| 122 |
|
| 123 |
|
| 124 |
\setbeamertemplate{frametitle}[default][center] |
| 125 |
\setbeamertemplate{frametitle}{ |
| 126 |
\makeatletter |
| 127 |
\regexpatchcmd{\insertframetitle} |
| 128 |
{(\c{usebeamertemplate}.*)\c{fi}} |
| 129 |
{\c{NoCaseChange}\cB\{\1\cE\}\c{fi}} |
| 130 |
{}{}% |
| 131 |
\makeatother |
| 132 |
\vskip1ex |
| 133 |
\insertframetitle |
| 134 |
} |
| 135 |
|
| 136 |
% Here we define what appears at the bottom of each slide: the "footline". |
| 137 |
\setbeamertemplate{footline}{% |
| 138 |
\leavevmode% |
| 139 |
|
| 140 |
% Horizontal line dividing the rest of the slide from the footer? |
| 141 |
% hrule goes all the way across... |
| 142 |
% \hrule height.3pt% |
| 143 |
% With \rule, you can specify the thickness |
| 144 |
% \rule[raise-height]{width}{thickness} |
| 145 |
% \hspace{.025\textwidth}\rule{.95\textwidth}{.5pt} |
| 146 |
|
| 147 |
\hbox{% |
| 148 |
\ifnum \thepage>1 |
| 149 |
\if@rightfooterOption |
| 150 |
\begin{minipage}{.2\textwidth}% |
| 151 |
\hskip .05\textwidth%Give horizontal space else this will set on the left edge of the slide! |
| 152 |
\end{minipage} |
| 153 |
\else |
| 154 |
\begin{minipage}{.4\textwidth}% |
| 155 |
\hskip .05\textwidth%Give horizontal space else this will set on the left edge of the slide! |
| 156 |
\end{minipage} |
| 157 |
\fi |
| 158 |
|
| 159 |
|
| 160 |
\begin{minipage}{\textwidth}% |
| 161 |
% \vskip .023\textheight% |
| 162 |
\raggedleft% |
| 163 |
\setlength{\rightskip}{\textwidth} |
| 164 |
\if@rightfooterOption |
| 165 |
\hbox{% |
| 166 |
\begin{beamercolorbox}[wd=0.7\textwidth,ht=2.25ex,dp=1ex,left]{author in head/foot}% |
| 167 |
\insertshorttitle{} \hskip .01\textwidth | \hskip .01\textwidth \insertdate{} \hskip .01\textwidth | \hskip .01\textwidth \insertframenumber{} |
| 168 |
\end{beamercolorbox}% |
| 169 |
} |
| 170 |
\else |
| 171 |
\hbox{% |
| 172 |
\begin{beamercolorbox}[wd=0.5\textwidth,ht=2.25ex,dp=1ex,left]{author in head/foot}% |
| 173 |
\insertshorttitle{} \hskip .01\textwidth | \hskip .01\textwidth \insertdate{} \hskip .01\textwidth | \hskip .01\textwidth \insertframenumber{} |
| 174 |
\end{beamercolorbox}% |
| 175 |
} |
| 176 |
\fi |
| 177 |
|
| 178 |
\end{minipage}% |
| 179 |
\begin{minipage}{.05\textwidth}% |
| 180 |
\end{minipage}% |
| 181 |
\fi %\thepage>1 |
| 182 |
}% |
| 183 |
\vskip .023\textheight% |
| 184 |
|
| 185 |
} |
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
|
| 190 |
\ifTACCheadernav |
| 191 |
|
| 192 |
\usesectionheadtemplate |
| 193 |
{\hfill\insertsectionhead} |
| 194 |
{\hfill\color{fg!50!bg}\insertsectionhead} |
| 195 |
|
| 196 |
% Head |
| 197 |
\ifbeamer@compress |
| 198 |
|
| 199 |
% Here we define how the top of the frame looks, the "headline". |
| 200 |
\setbeamertemplate{headline} |
| 201 |
{% |
| 202 |
\ifnum \thepage>1 |
| 203 |
\leavevmode% |
| 204 |
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex]{% |
| 205 |
section in head/foot}% |
| 206 |
\insertsectionnavigationhorizontal{.5\paperwidth}{\hskip0pt plus1filll}{}% |
| 207 |
\end{beamercolorbox}% |
| 208 |
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex]{% |
| 209 |
subsection in head/foot}% |
| 210 |
\insertsubsectionnavigationhorizontal{% |
| 211 |
.5\paperwidth}{}{\hskip0pt plus1filll}% |
| 212 |
\end{beamercolorbox}% |
| 213 |
\fi %\thepage>1 |
| 214 |
} |
| 215 |
|
| 216 |
\else% Not compressed |
| 217 |
|
| 218 |
\setbeamertemplate{headline} |
| 219 |
{% |
| 220 |
\ifnum \thepage>1 |
| 221 |
\leavevmode% |
| 222 |
\@tempdimb=2.4375ex% |
| 223 |
\ifnum\beamer@subsectionmax<\beamer@sectionmax% |
| 224 |
\multiply\@tempdimb by\beamer@sectionmax% |
| 225 |
\else% |
| 226 |
\multiply\@tempdimb by\beamer@subsectionmax% |
| 227 |
\fi% |
| 228 |
\ifdim\@tempdimb>0pt% |
| 229 |
\advance\@tempdimb by 1.125ex% |
| 230 |
\begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{% |
| 231 |
section in head/foot}% |
| 232 |
\vbox to\@tempdimb{\vfil\insertsectionnavigation{.5\paperwidth}\vfil}% |
| 233 |
\end{beamercolorbox}% |
| 234 |
\begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{% |
| 235 |
subsection in head/foot}% |
| 236 |
\vbox to\@tempdimb{\vfil\insertsubsectionnavigation{.5\paperwidth}\vfil}% |
| 237 |
\end{beamercolorbox}% |
| 238 |
\fi% |
| 239 |
\fi % \thepage>1 |
| 240 |
} |
| 241 |
|
| 242 |
\fi % end if compressed |
| 243 |
\fi % TACCheadernav |
| 244 |
|
| 245 |
|
| 246 |
\ifTACCheadertree |
| 247 |
|
| 248 |
\setbeamertemplate{headline} |
| 249 |
{ |
| 250 |
\begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt]{upper separation line head} |
| 251 |
\end{beamercolorbox} |
| 252 |
% |
| 253 |
% Place short title |
| 254 |
% |
| 255 |
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,% |
| 256 |
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot} |
| 257 |
\usebeamerfont{title in head/foot}\insertshorttitle |
| 258 |
\end{beamercolorbox} |
| 259 |
|
| 260 |
% |
| 261 |
% Place section |
| 262 |
% |
| 263 |
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,% |
| 264 |
leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot} |
| 265 |
\usebeamerfont{section in head/foot}% |
| 266 |
%\ifbeamer@tree@showhooks |
| 267 |
\setbox\beamer@tempbox=\hbox{\insertsectionhead}% |
| 268 |
\ifdim\wd\beamer@tempbox>1pt% |
| 269 |
\hskip2pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}% |
| 270 |
\hskip1pt% |
| 271 |
\fi |
| 272 |
\insertsectionhead |
| 273 |
\end{beamercolorbox} |
| 274 |
|
| 275 |
% |
| 276 |
% Place subsection |
| 277 |
% |
| 278 |
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,% |
| 279 |
leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot} |
| 280 |
\usebeamerfont{subsection in head/foot}% |
| 281 |
%\ifbeamer@tree@showhooks |
| 282 |
\setbox\beamer@tempbox=\hbox{\insertsubsectionhead}% |
| 283 |
\ifdim\wd\beamer@tempbox>1pt% |
| 284 |
\hskip9.4pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}% |
| 285 |
\hskip1pt% |
| 286 |
\fi |
| 287 |
\insertsubsectionhead |
| 288 |
\end{beamercolorbox} |
| 289 |
|
| 290 |
% |
| 291 |
% Place final separation box |
| 292 |
% |
| 293 |
\begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt |
| 294 |
]{lower separation line head} |
| 295 |
\end{beamercolorbox} |
| 296 |
|
| 297 |
% |
| 298 |
% Another matching rule which helps to frame the content |
| 299 |
% |
| 300 |
\hspace{.025\textwidth}\rule{.95\textwidth}{.5pt} |
| 301 |
} |
| 302 |
\fi % TACCheadertree |
| 303 |
|
| 304 |
|
| 305 |
% The following command suppresses all navigation symbols. This is |
| 306 |
% necessary in the TACC theme, since it overlaps where we want the |
| 307 |
% logo to be. |
| 308 |
\setbeamertemplate{navigation symbols}{} |
| 309 |
|
| 310 |
|
| 311 |
\mode |
| 312 |
<all> |