beamerthemeJuelich.sty 3.56 KB
Newer Older
1 2 3 4 5 6 7
% Latex-Beamer Template Research Centre Juelich
% version 17.12
% please report any problems to i.kabadshow@fz-juelich.de
% this version does support pdflatex, xelatex and lualatex
%

\RequirePackage{ifluatex,ifxetex,ifpdf}
8
\RequirePackage{etoolbox}
9
\RequirePackage{tikz}
Ivo Kabadshow's avatar
Ivo Kabadshow committed
10
\RequirePackage{textcase}
11 12 13 14 15
\usetikzlibrary{calc}

\ifluatex
  \RequirePackage{microtype}
  \RequirePackage{fontspec}
16 17 18
  \setmainfont{LiberationSans}
  \setsansfont{LiberationSans}
  \setmonofont{LiberationMono}
19 20
\else\ifxetex
  \RequirePackage{fontspec}
21 22 23
  \setmainfont{LiberationSans}
  \setsansfont{LiberationSans}
  \setmonofont{LiberationMono}
24
\else
25
  \RequirePackage{helvet}
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
  \RequirePackage{microtype}
\fi\fi 



\newcommand{\fzjset}[1]{\pgfkeys{/beamerfzj/.cd,#1}}

\pgfkeys{/beamerfzj/.cd,
  .search also={
    /beamerfzj/inner,
    /beamerfzj/outer,
    /beamerfzj/color,
    /beamerfzj/font,
  }
}

\mode<handout>{%
	\usepackage{pgf}
	\usepackage{pgfpages}
	\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]
	
	\pgfpageslogicalpageoptions{1}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
	\pgfpageslogicalpageoptions{2}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
	\pgfpageslogicalpageoptions{3}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
	\pgfpageslogicalpageoptions{4}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
	\pgfpageslogicalpageoptions{5}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
	\pgfpageslogicalpageoptions{6}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
	\pgfpageslogicalpageoptions{7}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
	\pgfpageslogicalpageoptions{8}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
	\pgfpageslogicalpageoptions{9}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
	\pgfpageslogicalpageoptions{10}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
	\pgfpageslogicalpageoptions{11}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
	\pgfpageslogicalpageoptions{12}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
	\pgfpageslogicalpageoptions{13}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
	\pgfpageslogicalpageoptions{14}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
	\pgfpageslogicalpageoptions{15}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
	\pgfpageslogicalpageoptions{16}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
}

\mode<presentation>

% Juelich specific definitions

\deftranslation[]{SlideName}{Slide}
\deftranslation[to=German]{SlideName}{Folie}

\deftranslation[]{HelmholtzBanner}{Member of the Helmholtz Association}
\deftranslation[to=German]{HelmholtzBanner}{Mitglied der Helmholtz-Gemeinschaft}

\usefonttheme{Juelich}
\usecolortheme{Juelich}
\useinnertheme{Juelich}
\useoutertheme{Juelich}

% default settings for title, part and section pages
\fzjset{title=allcaps}
\fzjset{subtitle=regular}
\fzjset{part=regular}
84
\fzjset{frametitle=regular}
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

\mode<all>

% define progressbar
\makeatletter
\def\progressbar@progressbar{} % the progress bar
\newcount\progressbar@tmpcounta% auxiliary counter
\newcount\progressbar@tmpcountb% auxiliary counter
\newdimen\progressbar@pbht %progressbar height
\newdimen\progressbar@pbwd %progressbar width
\newdimen\progressbar@tmpdim % auxiliary dimension

\progressbar@pbwd=\paperwidth
\progressbar@pbht=0.2ex

\def\progressbar@progressbar{%
  \progressbar@tmpcounta=\insertframenumber
  \progressbar@tmpcountb=\inserttotalframenumber
  \progressbar@tmpdim=\progressbar@pbwd
  \multiply\progressbar@tmpdim by \progressbar@tmpcounta
  \divide\progressbar@tmpdim by \progressbar@tmpcountb
  \begin{tikzpicture}
  \draw[draw=none,fill=fzjblue] %
    (0pt, 0pt) rectangle ++ (\progressbar@tmpdim, \progressbar@pbht);
  \end{tikzpicture}%
}
\makeatother