beamerfontthemeJuelich.sty 8.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
% 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}}

19
%\setbeamerfont{frametitle}{size*={16pt}{16pt},series=\bfseries} %30pt, baselineskip 36pt
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
\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%
Andreas Beckmann's avatar
Andreas Beckmann committed
125
      \let\beamerfzj@titleformatspacingb\emptydummyb%
126 127 128
      \setbeamerfont{title}{size*={16pt}{18pt},series=\bfseries} % 32pt, baselineskip 36pt%
    },
    allcaps/.code={%
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={%
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={%
165
      \let\beamerfzj@partformatcaps\MakeTextUppercase%
166 167
      \let\beamerfzj@partformatspacinga\emptydummya%
      \let\beamerfzj@partformatspacingb\emptydummyb%
168 169 170 171
      \setbeamerfont{part}{size*={16pt}{18pt},series=\bfseries} % 30pt, baselineskip 36pt%
    },
}

172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189
\pgfkeys{
  /beamerfzj/font/frametitle/.cd,
    .is choice,
    .default=allcaps,
    regular/.code={%
      \let\beamerfzj@frametitleformatcaps\emptydummya%
      \let\beamerfzj@frametitleformatspacinga\emptydummya%
      \let\beamerfzj@frametitleformatspacingb\emptydummyb%
      \setbeamerfont{frametitle}{size*={16pt}{18pt},series=\bfseries} % 32pt, baselineskip 36pt%
    },
    allcaps/.code={%
      \let\beamerfzj@frametitleformatcaps\MakeTextUppercase%
      \let\beamerfzj@frametitleformatspacinga\emptydummya%
      \let\beamerfzj@frametitleformatspacingb\emptydummyb%
      \setbeamerfont{frametitle}{size*={16pt}{18pt},series=\bfseries} % 32pt, baselineskip 36pt%
    },
}

190 191 192 193 194 195 196

% 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

197
% redefine beamer title, subtitle, part and frametitle command
198 199 200
\def\beamerfzj@titleformat#1{#1}
\def\beamerfzj@subtitleformat#1{#1}
\def\beamerfzj@partformat#1{#1}
201
\def\beamerfzj@frametitleformat#1{#1}
202 203
\patchcmd{\beamer@title}%
  {\def\inserttitle{#2}}%
204
  {\protected\def\inserttitle{{\beamerfzj@titleformatspacingb{LetterSpace=15.0}\beamerfzj@titleformatcaps{\beamerfzj@titleformatspacinga[120]{#2}}}}}%
205 206 207 208
  {}%
  {\PackageError{beamerfzj}{Patching original title failed}\@ehc}
\patchcmd{\beamer@subtitle}%
  {\def\insertsubtitle{#2}}%
209
  {\protected\def\insertsubtitle{{\beamerfzj@subtitleformatspacingb{LetterSpace=15.0}\beamerfzj@subtitleformatcaps{\beamerfzj@subtitleformatspacinga[120]{#2}}}}}%
210 211 212 213 214 215 216
  {}%
  {\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}
217 218 219 220 221 222 223 224 225 226 227 228 229 230
\patchcmd{\beamer@@frametitle}
  {{%
      \gdef\insertframetitle{{#2\ifnum\beamer@autobreakcount>0\relax{}\space%
      \usebeamertemplate*{frametitle continuation}\fi}}%
    \gdef\beamer@frametitle{#2}%
    \gdef\beamer@shortframetitle{#1}%
  }}
  {{%
      \gdef\insertframetitle{{\beamerfzj@frametitleformatcaps{#2}\ifnum%
      \beamer@autobreakcount>0\relax{}\space%
      \usebeamertemplate*{frametitle continuation}\fi}}%
    \gdef\beamer@frametitle{#2}%
    \gdef\beamer@shortframetitle{#1}%
    }}
Andreas Beckmann's avatar
Andreas Beckmann committed
231
  {}
232
  {\PackageError{beamerfzj}{Patching original frame title failed}\@ehc}
233 234 235 236
\makeatother

\mode
<all>