beamerfontthemeJuelich.sty 7.43 KB
Newer Older
1 2 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 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 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
% 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
%

\mode<presentation>

\setbeamerfont{subtitle short}{size*={16pt}{18pt},series=\bfseries}  % 30pt, baselineskip 36pt
\setbeamerfont{subtitle long}{size*={9pt}{11pt},series=\bfseries}  % 18pt, baselineskip 22pt
\setbeamerfont*{subtitle}{parent=subtitle long} % reset font (*) and use parent font size

% deault subline style to short UPPERCASE s p a c e d text
\setbeamerfont*{subtitle}{parent=subtitle short}

%\setbeamerfont{normal text}{size*={8pt}{9pt}} % 14pt, baselineskip 18pt
\setbeamerfont{footline}{size*={4.5pt}{5pt}}

\setbeamerfont{frametitle}{size*={16pt}{16pt},series=\bfseries} %30pt, baselineskip 36pt
\setbeamerfont{framesubtitle}{size*={9pt}{11pt},series=\bfseries} % 18pt, baselineskip 22pt

% Default Definitions
\setbeamerfont{alerted text}{}
\setbeamerfont{example text}{}

\setbeamerfont{structure}{}
\setbeamerfont{tiny structure}{size=\tiny}

\setbeamerfont{title in head/foot}{}
\setbeamerfont{title in sidebar}{size=\tiny}

\setbeamerfont{author}{}
\setbeamerfont{author in head/foot}{}
\setbeamerfont{author in sidebar}{size=\tiny}

\setbeamerfont{institute}{size=\scriptsize}
\setbeamerfont{institute in head/foot}{}
\setbeamerfont{institute in sidebar}{}

\setbeamerfont{date}{size*={8pt}{8pt}}
\setbeamerfont{date in head/foot}{parent=footline}
\setbeamerfont{date in sidebar}{}

\setbeamerfont{part name}{size=\Large}
\setbeamerfont{part title}{parent=title}

\setbeamerfont{section in toc}{parent=structure}
\setbeamerfont{section in toc shaded}{parent=section in toc}
\setbeamerfont{section in head/foot}{}
\setbeamerfont{section in sidebar}{size=\tiny}
\setbeamerfont{section number projected}{size=\small,parent={section in toc,projected text}}

\setbeamerfont{subsection in toc}{}
\setbeamerfont{subsection in toc shaded}{parent=subsection in toc}
\setbeamerfont{subsection in head/foot}{}
\setbeamerfont{subsection in sidebar}{}

\setbeamerfont{subsubsection in toc}{size=\footnotesize}
\setbeamerfont{subsubsection in toc shaded}{parent=subsubsection in toc}
\setbeamerfont{subsubsection in head/foot}{}
\setbeamerfont{subsubsection in sidebar}{}

\setbeamerfont{headline}{parent={tiny structure}}
\setbeamerfont{footline}{parent={tiny structure}}

\setbeamerfont{sidebar}{size=\Tiny,parent={tiny structure}}
\setbeamerfont{sidebar left}{parent=sidebar}
\setbeamerfont{sidebar right}{parent=sidebar}

\setbeamerfont{caption}{size=\small}
\setbeamerfont{caption name}{parent={structure,caption}}

\setbeamerfont{button}{size=\tiny}

\setbeamerfont{block body}{}
\setbeamerfont{block body alerted}{}
\setbeamerfont{block body example}{}
\setbeamerfont{block title}{size=\large,parent={structure,block body}}
\setbeamerfont{block title alerted}{parent={block title,alerted text}}
\setbeamerfont{block title example}{parent={block title,example text}}

\setbeamerfont{item}{parent=structure}
\setbeamerfont{subitem}{parent=item}
\setbeamerfont{subsubitem}{parent=subitem}

\setbeamerfont{item projected}{size=\tiny,parent={item,projected text}}
\setbeamerfont{subitem projected}{parent=item projected}
\setbeamerfont{subsubitem projected}{parent=subitem projected}

\setbeamerfont{itemize item}{parent=item}
\setbeamerfont{itemize subitem}{parent=subitem}
\setbeamerfont{itemize subsubitem}{parent=subsubitem}

\setbeamerfont{enumerate item}{parent=item}
\setbeamerfont{enumerate subitem}{parent=subitem}
\setbeamerfont{enumerate subsubitem}{parent=subsubitem}

\setbeamerfont{itemize/enumerate body}{}
\setbeamerfont{itemize/enumerate subbody}{size=\small}
\setbeamerfont{itemize/enumerate subsubbody}{size=\footnotesize}

\setbeamerfont{description item}{parent=item}

\setbeamerfont{projected text}{parent={tiny structure}}

\setbeamerfont{abstract}{size=\small}
\setbeamerfont{abstract title}{parent={abstract,structure},size=\normalsize}

\setbeamerfont{verse}{family=\rmfamily,shape=\itshape}

\setbeamerfont{quotation}{shape=\itshape}
\setbeamerfont{quote}{parent=quotation}

\setbeamerfont{note page}{size=\small}

\makeatletter

\pgfkeys{
  /beamerfzj/font/title/.cd,
    .is choice,
    .default=regular,
    regular/.code={%
      \let\beamerfzj@titleformatcaps\emptydummya%
      \let\beamerfzj@titleformatspacinga\emptydummya%
      \let\beamerfzj@titleformatspacingb\emptydummyb%      
      \setbeamerfont{title}{size*={16pt}{18pt},series=\bfseries} % 32pt, baselineskip 36pt%
    },
    allcaps/.code={%
Ivo Kabadshow's avatar
Ivo Kabadshow committed
129
      \let\beamerfzj@titleformatcaps\MakeTextUppercase%
130 131
      \let\beamerfzj@titleformatspacinga\emptydummya%
      \let\beamerfzj@titleformatspacingb\emptydummyb%
132 133 134 135 136 137 138 139 140 141
      \setbeamerfont{title}{size*={16pt}{18pt},series=\bfseries} % 32pt, baselineskip 36pt%
    },
}

\pgfkeys{
  /beamerfzj/font/subtitle/.cd,
    .is choice,
    .default=allcaps,
    regular/.code={%
      \let\beamerfzj@subtitleformatcaps\emptydummya%
142 143
      \let\beamerfzj@subtitleformatspacinga\emptydummya%
      \let\beamerfzj@subtitleformatspacingb\emptydummyb%
144 145 146
      \setbeamerfont{subtitle long}{size*={9pt}{11pt},series=\bfseries}  % 18pt, baselineskip 22pt
    },
    allcaps/.code={%
Ivo Kabadshow's avatar
Ivo Kabadshow committed
147
      \let\beamerfzj@subtitleformatcaps\MakeTextUppercase%
148 149
      \let\beamerfzj@subtitleformatspacinga\emptydummya%
      \let\beamerfzj@subtitleformatspacingb\emptydummyb%
150 151 152 153 154 155 156 157 158 159
      \setbeamerfont{title}{size*={16pt}{16pt},series=\bfseries} % 30pt, baselineskip 36pt%
    },
}

\pgfkeys{
  /beamerfzj/font/part/.cd,
    .is choice,
    .default=allcaps,
    regular/.code={%
      \let\beamerfzj@partformatcaps\emptydummya%
160 161
      \let\beamerfzj@partformatspacinga\emptydummya%
      \let\beamerfzj@partformatspacingb\emptydummyb%
162 163 164
      \setbeamerfont{part}{size*={16pt}{18pt},series=\bfseries} % 30pt, baselineskip 36pt%
    },
    allcaps/.code={%
Ivo Kabadshow's avatar
Ivo Kabadshow committed
165
      \let\beamerfzj@partformatcaps\MakeTextUppercase%
166 167
      \let\beamerfzj@partformatspacinga\emptydummya%
      \let\beamerfzj@partformatspacingb\emptydummyb%
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
      \setbeamerfont{part}{size*={16pt}{18pt},series=\bfseries} % 30pt, baselineskip 36pt%
    },
}

\fzjset{part=allcaps}

% define options for letter spacing
\providecommand{\emptydummyb}[1]{} % eats argument of \uppercase() and and \addfontfeature{}
\providecommand{\emptydummya}[2][]{#2}{} % eats optional argument of textls and forwards #2 argument
\providecommand{\addfontfeature}[1]{} % defined only if latex or pdflatex is used, available in xelatex and lualatex
\providecommand{\textls}[2][]{#2}{} % defined only if microtype is loaded

% redefine beamer title, subtitle command
\def\beamerfzj@titleformat#1{#1}
\def\beamerfzj@subtitleformat#1{#1}
\def\beamerfzj@partformat#1{#1}
\patchcmd{\beamer@title}%
  {\def\inserttitle{#2}}%
Ivo Kabadshow's avatar
Ivo Kabadshow committed
186
  {\protected\def\inserttitle{{\beamerfzj@titleformatspacingb{LetterSpace=15.0}\beamerfzj@titleformatcaps{\beamerfzj@titleformatspacinga[120]{#2}}}}}%
187 188 189 190
  {}%
  {\PackageError{beamerfzj}{Patching original title failed}\@ehc}
\patchcmd{\beamer@subtitle}%
  {\def\insertsubtitle{#2}}%
Ivo Kabadshow's avatar
Ivo Kabadshow committed
191
  {\protected\def\insertsubtitle{{\beamerfzj@subtitleformatspacingb{LetterSpace=15.0}\beamerfzj@subtitleformatcaps{\beamerfzj@subtitleformatspacinga[120]{#2}}}}}%
192 193 194 195 196 197 198 199 200 201 202
  {}%
  {\PackageError{beamerfzj}{Patching original subtitle failed}\@ehc}
\patchcmd{\beamer@part}%
  {\def\insertpart{\expandafter\hyperlink\partlink}}%
  {\def\insertpart{{\beamerfzj@partformatspacingb{LetterSpace=15.0}\beamerfzj@partformatcaps{\beamerfzj@partformatspacinga[120]{\expandafter\hyperlink\partlink}}}}}%
  {}%
  {\PackageError{beamerfzj}{Patching original part failed}\@ehc}
\makeatother

\mode
<all>