beamerouterthemeJuelich.sty 18.7 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 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
% please report any problems to i.kabadshow@fz-juelich.de
% this version does support pdflatex, xelatex and lualatex
%

\setbeamersize{text margin left=0.5cm,text margin right=0.5cm}

% 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

\newlength{\hlvstart}
\setlength{\hlvstart}{\dimexpr(1cm-15pt)\relax}

% 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
56
% Helmholtz Banner
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
%------------------------------------------------
\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
81
% date in footer
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 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
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@date@default\endcsname\relax
\defbeamertemplate*{date}{visible}
{%
  \usebeamercolor[fg]{footline}%
  \insertdate%
}

\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}%
}
\defbeamertemplate{headline}{invible}{}

\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
148
% footer elements: logos
149 150 151
%------------------------------------------------
\defbeamertemplate{footer element1}{logo}[1]
{%
152
  %\begin{beamercolorbox}[sep=0.0cm,left,wd=.25\paperwidth,ht=1.25em,dp=0.0cm]{footline}
153
  \includegraphics[width=3.0cm]{#1}%
154
  %\end{beamercolorbox}%
155 156 157 158
}

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

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

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

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

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

\defbeamertemplate*{footer element4}{default}
{%
206
  %\begin{beamercolorbox}[sep=0.0cm,right,wd=.25\paperwidth,ht=1.25em,dp=0.0cm]{footline}
207
  \includegraphics[scale=1.0416667]{fzj}% 75/36 scale from 0.5 initial size
208
  %\end{beamercolorbox}%
209 210 211 212 213 214 215
}

%------------------------------------------------
% progressbar at the very bottom
%------------------------------------------------
\defbeamertemplate{progressbar}{visible}
{%
Ivo Kabadshow's avatar
Ivo Kabadshow committed
216
\usebeamertemplate*{progress bar footer}
217 218 219 220 221 222 223 224 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
}

\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
256
     \hbox{\color{fzjblue}\vrule width\paperwidth height0.29\paperheight}%
257 258 259 260 261 262 263 264 265
}%
}
\defbeamertemplate*{background canvas}{empty}{}

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

%------------------------------------------------
Andreas Beckmann's avatar
Andreas Beckmann committed
266
% title page definitions
267 268 269 270 271 272 273
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@title page@default\endcsname\relax

% title page image version
\defbeamertemplate*{title page}{image}
{%
  \vskip\myheadlineb%
274 275 276
  \leftskip 0.5cm%
  \advance\rightskip 0.5cm%
  \usebeamercolor[fg]{title}\usebeamerfont*{title}\strut{}\inserttitle\par%
277 278 279 280 281
  \ifx\insertsubtitle\@empty%
  \else%
    \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par%
  \fi%
  \medskip%
282
  \usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute\par%
283 284 285 286
}

% title page text version
\defbeamertemplate{title page}{text}
Andreas Beckmann's avatar
Andreas Beckmann committed
287
{%
288
  \vskip\myheadlinea%
289 290
  \leftskip 0.5cm%
  \advance\rightskip 0.5cm%
291 292 293 294 295 296 297
  \usebeamercolor[fg]{title}\usebeamerfont{title}\strut{}\inserttitle\par%
  \ifx\insertsubtitle\@empty%
  \else%
    \medskip%
    \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par%
  \fi%
  \bigskip\bigskip%
298
  \usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute\par
299 300 301 302 303 304 305 306
}

\defbeamertemplate{title page}{empty}{}

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

307 308 309 310 311 312 313 314 315
%------------------------------------------------
% teaser page definitions
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@teaser page@default\endcsname\relax

% teaser page image version
\defbeamertemplate*{teaser page}{image}
{%
  \vskip\myheadlineb%
316 317 318 319
  \leftskip 0.5cm%
  \advance\rightskip 0.5cm%
  \usebeamercolor[fg]{title}\usebeamerfont*{title}\strut{}\inserttitle\par%
  \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\medskip%
320 321 322 323 324 325
}

%  page text version
\defbeamertemplate{teaser page}{text}
{%
  \vskip\myheadlinea%
326 327 328 329
  \leftskip 0.5cm%
  \advance\rightskip 0.5cm%
  \usebeamercolor[fg]{title}\usebeamerfont{title}\strut{}\inserttitle\par\medskip%
  \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\bigskip\bigskip%
330 331 332 333 334 335 336 337 338
}

\defbeamertemplate{teaser page}{empty}{}

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


339
%------------------------------------------------
Andreas Beckmann's avatar
Andreas Beckmann committed
340
% lecture page definitions
341 342 343 344 345 346 347
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@lecture page@default\endcsname\relax

% part page image version
\defbeamertemplate*{lecture page}{image}
{%
  \vskip\myheadlineb%
348 349 350 351 352
  \leftskip 0.5cm%
  \advance\rightskip 0.5cm%
  \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%
353 354 355 356
}

% part page text version
\defbeamertemplate{lecture page}{text}
Andreas Beckmann's avatar
Andreas Beckmann committed
357
{%
358 359 360 361 362 363
  \vskip\myheadlinea%
  \leftskip 0.5cm%
  \advance\rightskip 0.5cm%
  \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
364 365 366 367 368 369 370 371 372
}

\defbeamertemplate{lecture page}{empty}{}

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

%------------------------------------------------
Andreas Beckmann's avatar
Andreas Beckmann committed
373
% part page definitions
374 375 376 377 378 379 380
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@part page@default\endcsname\relax

% part page image version
\defbeamertemplate*{part page}{image}
{%
  \vskip\myheadlineb%
381 382 383 384 385
  \leftskip 0.5cm%
  \advance\rightskip 0.5cm%
  \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%
386 387 388 389
}

% part page text version
\defbeamertemplate{part page}{text}
Andreas Beckmann's avatar
Andreas Beckmann committed
390
{%
391
  \vskip\myheadlinea%
392 393 394 395 396
  \leftskip 0.5cm%
  \advance\rightskip 0.5cm%
  \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
397 398 399 400 401 402 403 404 405
}

\defbeamertemplate{part page}{empty}{}

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

%------------------------------------------------
Andreas Beckmann's avatar
Andreas Beckmann committed
406
% section page definitions
407 408 409
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@section page@default\endcsname\relax

410
% section page image version
411 412 413
\defbeamertemplate*{section page}{image}
{%
  \vskip\myheadlineb%
414 415 416 417 418
  \leftskip 0.5cm%
  \advance\rightskip 0.5cm%
  \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%
419 420
}

421
% section page text version
422
\defbeamertemplate{section page}{text}
Andreas Beckmann's avatar
Andreas Beckmann committed
423
{%
424
  \vskip\myheadlinea%
425 426 427 428 429
  \leftskip 0.5cm%
  \advance\rightskip 0.5cm%
  \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
430 431 432
}

%------------------------------------------------
Andreas Beckmann's avatar
Andreas Beckmann committed
433
% section page definitions
434 435 436 437 438 439 440 441
%------------------------------------------------
\defbeamertemplate{section page}{empty}{}

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

%------------------------------------------------
Andreas Beckmann's avatar
Andreas Beckmann committed
442
% frametitle definitions
443 444 445 446 447 448 449
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@frametitle@default\endcsname\relax

\defbeamertemplate*{frametitle}{default}{%
  \nointerlineskip%
  \vskip\hlvstart%
  \begin{beamercolorbox}[sep=0.0cm,wd=\paperwidth]{frametitle}
450 451
    {\leftskip 0.5cm%
      \advance\rightskip 0.5cm%
452 453 454 455 456 457 458 459 460
    \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
461 462
            %\hspace*{1cm}\insertframetitle%
            %\insertframesubtitle
463
    }%
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479
    \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
480
    \frame[t,noframenumbering]{\titlepage}%
481 482 483 484 485 486 487
\fi%
}%
    % reset background to normal slides, does not change selected theme
    \setbeamertemplate{background canvas}[empty]
}

%------------------------------------------------
488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509
% 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
510 511 512 513 514 515 516 517 518 519 520 521 522
%------------------------------------------------
\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
523
    \frame[t,noframenumbering]{\lecturepage}%
524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542
\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
543
    \frame[t,noframenumbering]{\partpage}%
544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562
\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
563
    \frame[noframenumbering]{\sectionpage}%
564 565 566 567 568 569 570 571
\fi%
}%
    % reset background to normal slides, does not change selected theme
    \setbeamertemplate{background canvas}[empty]
}

\mode
<all>