beamerouterthemeJuelich.sty 19.3 KB
Newer Older
1
% Latex-Beamer Template Research Centre Juelich
Ivo Kabadshow's avatar
Ivo Kabadshow committed
2
% version 18.08
3 4 5 6
% please report any problems to i.kabadshow@fz-juelich.de
% this version does support pdflatex, xelatex and lualatex
%

7
\setbeamersize{text margin left=0.05\paperheight,text margin right=0.05\paperheight}
8 9 10 11 12 13 14 15 16 17 18 19 20

% compute white border
\newlength{\myborder}
\setlength{\myborder}{\dimexpr(\paperwidth-0.1\paperheight)\relax}

% compute height of letter H in title
\newlength{\mylen}
\settoheight{\mylen}{\usebeamerfont{title}H} % according to the CD the headline is not aligned at the baseline, but the top left corner
\newlength{\myheadlinea}
\setlength{\myheadlinea}{\dimexpr(0.10\paperheight-\headheight-6pt+\mylen)\relax}
\newlength{\myheadlineb}
\setlength{\myheadlineb}{\dimexpr(0.55\paperheight-\headheight-6pt+\mylen)\relax} % alignmet at the left top corner of the headline

21 22
\newlength{\titlebaseheight}
\settoheight{\titlebaseheight}{\usebeamerfont{frametitle}H}
23
\newlength{\hlvstart}
24
\setlength{\hlvstart}{\dimexpr(0.05\paperheight)\relax}
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

% alignment
\newcommand{\tlap}[1]{\vbox to 0pt{\vss\hbox{#1}}}
\newcommand{\blap}[1]{\vbox to 0pt{\hbox{#1}\vss}}

\mode<presentation>

%------------------------------------------------
% navigation symbols
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@navigation symbols@default\endcsname\relax
\defbeamertemplate{navigation symbols}{visible}
{%
  \hbox{%
  \insertslidenavigationsymbol%
  \insertframenavigationsymbol%
  \insertsubsectionnavigationsymbol%
  \insertsectionnavigationsymbol%
  \insertdocnavigationsymbol%
  \insertbackfindforwardnavigationsymbol}%
}

\defbeamertemplate*{navigation symbols}{invisible}{}

\defbeamertemplatealias{navigation symbols}{default}{invisible}

% handout and trans mode settings
\only<handout| trans>{
  % diable navigation symbols
  \setbeamertemplate{navigation symbols}{}
}

%------------------------------------------------
Andreas Beckmann's avatar
Andreas Beckmann committed
58
% Helmholtz Banner
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
%------------------------------------------------
\defbeamertemplate*{helmholtz banner}{}{\translate{HelmholtzBanner}}

%------------------------------------------------
% frame number
%------------------------------------------------
\defbeamertemplate*{frame number}{visible}[1][\translate{SlideName}]
{%
  \usebeamercolor[fg]{footline}%
  #1~\insertframenumber%
}

\defbeamertemplate{frame number}{full}[1][\translate{SlideName}]
{%
  \usebeamercolor[fg]{footline}%
  #1~\insertframenumber\,\vrule width0.3pt\,\inserttotalframenumber%
}

\defbeamertemplate{frame number}{invisible}[1][]{}

\defbeamertemplatealias{frame number}{default}{visible}


%------------------------------------------------
Andreas Beckmann's avatar
Andreas Beckmann committed
83
% date in footer
84 85 86 87 88
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@date@default\endcsname\relax
\defbeamertemplate*{date}{visible}
{%
  \usebeamercolor[fg]{footline}%
Andreas Herten's avatar
Andreas Herten committed
89
  \raisebox{0pt}[0pt][0pt]{\insertdate}%
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
}

\defbeamertemplate{date}{invisible}{}

\defbeamertemplatealias{date}{default}{visible}

%------------------------------------------------
% headline
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@headline@default\endcsname\relax
\defbeamertemplate*{headline}{visible}[1][\usebeamertemplate*{navigation symbols}]
{%
  \begin{beamercolorbox}[wd=\paperwidth,ht=0ex,dp=0ex]{header}%
  \hfill\blap{#1}%
  \end{beamercolorbox}%
}
106
\defbeamertemplate{headline}{invisble}{}
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149

\defbeamertemplatealias{headline}{default}{visible}

%------------------------------------------------
% footer elements: empty settings
%------------------------------------------------
\defbeamertemplate{footer element1}{empty}{}
\defbeamertemplate{footer element2}{empty}{}
\defbeamertemplate{footer element3}{empty}{}
\defbeamertemplate{footer element4}{empty}{}

%------------------------------------------------
% footline
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@footline@default\endcsname\relax
\defbeamertemplate*{footline}{four elements}
{%
  \leavevmode%
  \ifbeamertemplateempty{footer element1}{
  }{%
    \usebeamertemplate*{footer element1}%
  }%
  \hfill%
  \ifbeamertemplateempty{footer element2}{}{%
    \usebeamertemplate*{footer element2}%
  }%
  \hfill%
  \ifbeamertemplateempty{footer element3}{}{%
    \usebeamertemplate*{footer element3}%
  }%
  \hfill%
  \ifbeamertemplateempty{footer element4}{}{%
    \usebeamertemplate*{footer element4}%
  }%
\par%
  \ifbeamertemplateempty{progressbar}{}{%
    \usebeamertemplate*{progressbar}
  }%
}%

\defbeamertemplatealias{footline}{four elements}{default}

%------------------------------------------------
Andreas Beckmann's avatar
Andreas Beckmann committed
150
% footer elements: logos
151 152 153
%------------------------------------------------
\defbeamertemplate{footer element1}{logo}[1]
{%
154
  %\begin{beamercolorbox}[sep=0.0cm,left,wd=.25\paperwidth,ht=1.25em,dp=0.0cm]{footline}
155
  \tlap{\vspace{0.02\paperheight}\includegraphics[width=3.0cm]{#1}}%
156
  %\end{beamercolorbox}%
157 158 159 160
}

\defbeamertemplate{footer element2}{logo}[1]
{%
161
  %\begin{beamercolorbox}[sep=0.0cm,center,wd=.25\paperwidth,ht=1.25em,dp=0.0cm]{footline}
162
  \tlap{\vspace{0.02\paperheight}\includegraphics[width=3.0cm]{#1}}%
163
  %\end{beamercolorbox}%
164 165 166 167
}

\defbeamertemplate{footer element3}{logo}[1]
{%
168
  %\begin{beamercolorbox}[sep=0.0cm,center,wd=.25\paperwidth,ht=1.25em,dp=0.0cm]{footline}
169
  \tlap{\vspace{0.02\paperheight}\includegraphics[width=3.0cm]{#1}}%
170
  %\end{beamercolorbox}%
171 172 173 174 175 176 177 178
}

%------------------------------------------------
% footer elements: default settings
%------------------------------------------------
\defbeamertemplate*{footer element1}{default}[1][\usebeamertemplate{helmholtz banner}]
{%
  \tlap{%
179
  \vspace{0.05\paperheight}%
180
  %\begin{beamercolorbox}[sep=0.0cm,wd=.25\paperwidth,ht=1.25em,dp=0.0cm]{footline}
181
     \hspace*{0.05\paperheight}#1 % if no extra option is given, use \usebeamertemplate{helmholtz banner}
182
  %\end{beamercolorbox}%
183 184 185 186 187 188
  }%
}

\defbeamertemplate*{footer element2}{default}[1][\usebeamertemplate{date}]
{%
  \tlap{%
189
  \vspace{\dimexpr(0.05\paperheight)}%
190
  %\begin{beamercolorbox}[sep=0.0cm,center,wd=.25\paperwidth,ht=1.25em,dp=0.0cm]{footline}
191
  #1 % if no extra option is given, use \usebeamertemplate*{date}
192
  %\end{beamercolorbox}%
193 194 195 196 197 198
  }%
}

\defbeamertemplate*{footer element3}{default}[1][\usebeamertemplate*{frame number}]
{%
  \tlap{%
199
  \vspace{\dimexpr(0.05\paperheight)}%
200
  %\begin{beamercolorbox}[sep=0.0cm,center,wd=.25\paperwidth,ht=1.25em,dp=0.0cm]{footline}
201
   #1 % if no extra option is given, use \usebeamertemplate*{frame number}
202
  %\end{beamercolorbox}%
203 204 205 206 207
  }%
}

\defbeamertemplate*{footer element4}{default}
{%
208
  %\begin{beamercolorbox}[sep=0.0cm,right,wd=.25\paperwidth,ht=1.25em,dp=0.0cm]{footline}
209 210 211 212 213 214 215
  % \includegraphics[scale=1.0416667]{fzj}% 75/36 scale from 0.5 initial size
  \raisebox{%
    \dimexpr0.05\paperheight-0.0028\paperheight-0.0015\paperheight\relax% 0.0028 = 0.5*0.07*0.08
  }{%
    \includegraphics[height=0.08\paperheight]{fzj}%
  }%
  \hspace*{0.05\paperheight}%
216
  %\end{beamercolorbox}%
217 218 219 220 221 222 223
}

%------------------------------------------------
% progressbar at the very bottom
%------------------------------------------------
\defbeamertemplate{progressbar}{visible}
{%
Ivo Kabadshow's avatar
Ivo Kabadshow committed
224
\usebeamertemplate*{progress bar footer}
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263
}

\defbeamertemplate*{progressbar}{invisible}{}

\defbeamertemplatealias{footline}{default}{visible}

% handout and trans mode settings
\only<handout| trans>{%
  % disable progressbar
  \setbeamertemplate{progressbar}[invisible]
}

%------------------------------------------------
% background canvas
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@background canvas@default\endcsname\relax

% blue background canvas for titles slide, option 1
\defbeamertemplate{background canvas}{text}
{%
  \vbox{%
  \vskip0.05\paperheight%
    \hbox{\color{fzjblue}\vrule width \paperwidth height 0.74\paperheight}%
  }%
}

% blue background canvas for titles slide + image, option 2
\defbeamertemplate{background canvas}{image}
{%
\vbox{%
  \vskip0.05\paperheight%
    \hskip0.05\paperheight\tikz\node[draw=none,
      minimum width=\myborder,
      minimum height=0.45\paperheight,
      path picture={
        \node at (path picture bounding box.center){
         \inserttitlegraphic%
      };
      }]{};
Andreas Beckmann's avatar
Andreas Beckmann committed
264
     \hbox{\color{fzjblue}\vrule width\paperwidth height0.29\paperheight}%
265 266 267 268 269 270 271 272 273
}%
}
\defbeamertemplate*{background canvas}{empty}{}

\pgfkeys{/beamerfzj/outer/.cd,
  background canvas/.initial=empty
}

%------------------------------------------------
Andreas Beckmann's avatar
Andreas Beckmann committed
274
% title page definitions
275 276 277 278 279 280 281
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@title page@default\endcsname\relax

% title page image version
\defbeamertemplate*{title page}{image}
{%
  \vskip\myheadlineb%
282 283
  \leftskip 0.05\paperheight%
  \advance\rightskip 0.05\paperheight%
284
  \usebeamercolor[fg]{title}\usebeamerfont*{title}\strut{}\inserttitle\par%
285 286 287 288 289
  \ifx\insertsubtitle\@empty%
  \else%
    \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par%
  \fi%
  \medskip%
290
  \usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute\par%
291 292 293 294
}

% title page text version
\defbeamertemplate{title page}{text}
Andreas Beckmann's avatar
Andreas Beckmann committed
295
{%
296
  \vskip\myheadlinea%
297 298
  \leftskip 0.05\paperheight%
  \advance\rightskip 0.05\paperheight%
299 300 301 302 303 304 305
  \usebeamercolor[fg]{title}\usebeamerfont{title}\strut{}\inserttitle\par%
  \ifx\insertsubtitle\@empty%
  \else%
    \medskip%
    \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par%
  \fi%
  \bigskip\bigskip%
306
  \usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute\par
307 308 309 310 311 312 313 314
}

\defbeamertemplate{title page}{empty}{}

\pgfkeys{/beamerfzj/outer/.cd,
  title page/.initial=image
}

315 316 317 318 319 320 321 322 323
%------------------------------------------------
% teaser page definitions
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@teaser page@default\endcsname\relax

% teaser page image version
\defbeamertemplate*{teaser page}{image}
{%
  \vskip\myheadlineb%
324 325
  \leftskip 0.05\paperheight%
  \advance\rightskip 0.05\paperheight%
326 327
  \usebeamercolor[fg]{title}\usebeamerfont*{title}\strut{}\inserttitle\par%
  \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\medskip%
328 329 330 331 332 333
}

%  page text version
\defbeamertemplate{teaser page}{text}
{%
  \vskip\myheadlinea%
334 335
  \leftskip 0.05\paperheight%
  \advance\rightskip 0.05\paperheight%
336 337
  \usebeamercolor[fg]{title}\usebeamerfont{title}\strut{}\inserttitle\par\medskip%
  \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\bigskip\bigskip%
338 339 340 341 342 343 344 345 346
}

\defbeamertemplate{teaser page}{empty}{}

\pgfkeys{/beamerfzj/outer/.cd,
  teaser page/.initial=image
}


347
%------------------------------------------------
Andreas Beckmann's avatar
Andreas Beckmann committed
348
% lecture page definitions
349 350 351 352 353 354 355
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@lecture page@default\endcsname\relax

% part page image version
\defbeamertemplate*{lecture page}{image}
{%
  \vskip\myheadlineb%
356 357
  \leftskip 0.05\paperheight%
  \advance\rightskip 0.05\paperheight%
358 359 360
  \usebeamercolor[fg]{title}\usebeamerfont{title}\strut{}\insertlecture\par%
%  \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\medskip%
  \usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute%
361 362 363 364
}

% part page text version
\defbeamertemplate{lecture page}{text}
Andreas Beckmann's avatar
Andreas Beckmann committed
365
{%
366
  \vskip\myheadlinea%
367 368
  \leftskip 0.05\paperheight%
  \advance\rightskip 0.05\paperheight%
369 370 371
  \usebeamercolor[fg]{title}\usebeamerfont{title}\strut{}\insertlecture\par\medskip%
%  \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\bigskip\bigskip%
  \usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute
372 373 374 375 376 377 378 379 380
}

\defbeamertemplate{lecture page}{empty}{}

\pgfkeys{/beamerfzj/outer/.cd,
  lecture page/.initial=image
}

%------------------------------------------------
Andreas Beckmann's avatar
Andreas Beckmann committed
381
% part page definitions
382 383 384 385 386 387 388
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@part page@default\endcsname\relax

% part page image version
\defbeamertemplate*{part page}{image}
{%
  \vskip\myheadlineb%
389 390
  \leftskip 0.05\paperheight%
  \advance\rightskip 0.05\paperheight%
391 392 393
  \usebeamercolor[fg]{title}\usebeamerfont{part}\strut{}\partname~\insertromanpartnumber:~\insertpart\par%
%  \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\medskip%
%  \usebeamercolor[fg]{title}\usebeamerfont{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute%
394 395 396 397
}

% part page text version
\defbeamertemplate{part page}{text}
Andreas Beckmann's avatar
Andreas Beckmann committed
398
{%
399
  \vskip\myheadlinea%
400 401
  \leftskip 0.05\paperheight%
  \advance\rightskip 0.05\paperheight%
402 403 404
  \usebeamercolor[fg]{title}\usebeamerfont{part}\strut{}\partname~\insertromanpartnumber:~\insertpart\par\medskip%
%  \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\bigskip\bigskip%
%  \usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute
405 406 407 408 409 410 411 412 413
}

\defbeamertemplate{part page}{empty}{}

\pgfkeys{/beamerfzj/outer/.cd,
  part page/.initial=image
}

%------------------------------------------------
Andreas Beckmann's avatar
Andreas Beckmann committed
414
% section page definitions
415 416 417
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@section page@default\endcsname\relax

418
% section page image version
419 420 421
\defbeamertemplate*{section page}{image}
{%
  \vskip\myheadlineb%
422 423
  \leftskip 0.05\paperheight%
  \advance\rightskip 0.05\paperheight%
424 425 426
  \usebeamercolor[fg]{title}\usebeamerfont{part}\strut{}\insertpart\par%
  \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsection\par\medskip%
%  \usebeamercolor[fg]{title}\usebeamerfont{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute%
427 428
}

429
% section page text version
430
\defbeamertemplate{section page}{text}
Andreas Beckmann's avatar
Andreas Beckmann committed
431
{%
432
  \vskip\myheadlinea%
433 434
  \leftskip 0.05\paperheight%
  \advance\rightskip 0.05\paperheight%
435 436 437
  \usebeamercolor[fg]{title}\usebeamerfont{part}\strut{}\insertpart\par\medskip%
  \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsection\par\bigskip\bigskip%
%  \usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute
438 439 440
}

%------------------------------------------------
Andreas Beckmann's avatar
Andreas Beckmann committed
441
% section page definitions
442 443 444 445 446 447 448 449
%------------------------------------------------
\defbeamertemplate{section page}{empty}{}

\pgfkeys{/beamerfzj/outer/.cd,
  section page/.initial=image,
}

%------------------------------------------------
Andreas Beckmann's avatar
Andreas Beckmann committed
450
% frametitle definitions
451 452 453 454 455 456 457
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@frametitle@default\endcsname\relax

\defbeamertemplate*{frametitle}{default}{%
  \nointerlineskip%
  \vskip\hlvstart%
  \begin{beamercolorbox}[sep=0.0cm,wd=\paperwidth]{frametitle}
458 459
    {\leftskip 0.05\paperheight%
      \advance\rightskip 0.05\paperheight%
460 461 462 463 464 465 466 467 468
    \usebeamerfont{frametitle}\usebeamercolor[fg]{frametitle}\insertframetitle\strut\par%
    {%
      \ifx\insertframesubtitle\@empty%
      \vskip-2pt% compensate distance to keep equal space between frametitle and text or framesubtitle and text
      \else%
      {%
        \usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\insertframesubtitle\strut\par}%
      \fi
    }%
Andreas Beckmann's avatar
Andreas Beckmann committed
469 470
            %\hspace*{1cm}\insertframetitle%
            %\insertframesubtitle
471
    }%
472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487
    \end{beamercolorbox}%
}

%------------------------------------------------
% title slide definition via maketitle
%------------------------------------------------
\def\maketitle{%
{%
  \ifbeamer@inframe%
    \titlepage%
    % resetting the background does not work for inframe, since empty title theme template cannot be set after \frame{...} here
  \else%
    \setbeamertemplate{frame number}[invisible]%
    \setbeamertemplate{date}[invisible]%
    \setbeamertemplate{background canvas}[\pgfkeysvalueof{/beamerfzj/outer/title page}]
    \setbeamertemplate{title page}[\pgfkeysvalueof{/beamerfzj/outer/title page}]
Andreas Beckmann's avatar
Andreas Beckmann committed
488
    \frame[t,noframenumbering]{\titlepage}%
489 490 491 492 493 494 495
\fi%
}%
    % reset background to normal slides, does not change selected theme
    \setbeamertemplate{background canvas}[empty]
}

%------------------------------------------------
496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517
% teaser slide definition via maketeaser
%------------------------------------------------
\def\teaserpage{\usebeamertemplate*{teaser page}}
\def\maketeaser{%
{%
  \ifbeamer@inframe%
    \teaserpage%
    % resetting the background does not work for inframe, since empty title theme template cannot be set after \frame{...} here
  \else%
    \setbeamertemplate{frame number}[invisible]%
    \setbeamertemplate{date}[invisible]%
    \setbeamertemplate{background canvas}[\pgfkeysvalueof{/beamerfzj/outer/teaser page}]
    \setbeamertemplate{title page}[\pgfkeysvalueof{/beamerfzj/outer/teaser page}]
    \frame[t,noframenumbering]{\teaserpage}%
\fi%
}%
    % reset background to normal slides, does not change selected theme
    \setbeamertemplate{background canvas}[empty]
}

%------------------------------------------------
% lecture slide definition via makelecture
518 519 520 521 522 523 524 525 526 527 528 529 530
%------------------------------------------------
\def\lecturepage{\usebeamertemplate*{lecture page}}

\def\makelecture{%
{%
  \ifbeamer@inframe%
    \lecturepage%
    % resetting the background does not work for inframe, since empty title theme template cannot be set after \frame{...} here
  \else%
    \setbeamertemplate{frame number}[invisible]%
    \setbeamertemplate{date}[invisible]%
    \setbeamertemplate{background canvas}[\pgfkeysvalueof{/beamerfzj/outer/lecture page}]
    \setbeamertemplate{lecture page}[\pgfkeysvalueof{/beamerfzj/outer/lecture page}]
Andreas Beckmann's avatar
Andreas Beckmann committed
531
    \frame[t,noframenumbering]{\lecturepage}%
532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550
\fi%
}%
    % reset background to normal slides, does not change selected theme
    \setbeamertemplate{background canvas}[empty]
}

%------------------------------------------------
% part slide definition via makepart
%------------------------------------------------
\def\makepart{%
{%
  \ifbeamer@inframe%
    \partpage%
    % resetting the background does not work for inframe, since empty title theme template cannot be set after \frame{...} here
  \else%
    \setbeamertemplate{frame number}[invisible]%
    \setbeamertemplate{date}[invisible]%
    \setbeamertemplate{background canvas}[\pgfkeysvalueof{/beamerfzj/outer/part page}]
    \setbeamertemplate{part page}[\pgfkeysvalueof{/beamerfzj/outer/part page}]
Andreas Beckmann's avatar
Andreas Beckmann committed
551
    \frame[t,noframenumbering]{\partpage}%
552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570
\fi%
}%
    % reset background to normal slides, does not change selected theme
    \setbeamertemplate{background canvas}[empty]
}

%------------------------------------------------
% section slide definition via makepart
%------------------------------------------------
\def\makesection{%
{%
  \ifbeamer@inframe%
    \sectionpage%
    % resetting the background does not work for inframe, since empty title theme template cannot be set after \frame{...} here
  \else%
    \setbeamertemplate{frame number}[invisible]%
    \setbeamertemplate{date}[invisible]%
    \setbeamertemplate{background canvas}[\pgfkeysvalueof{/beamerfzj/outer/section page}]
    \setbeamertemplate{section page}[\pgfkeysvalueof{/beamerfzj/outer/section page}]
Andreas Beckmann's avatar
Andreas Beckmann committed
571
    \frame[noframenumbering]{\sectionpage}%
572 573 574 575 576 577 578 579
\fi%
}%
    % reset background to normal slides, does not change selected theme
    \setbeamertemplate{background canvas}[empty]
}

\mode
<all>