Commit b42bc585 authored by Ivo Kabadshow's avatar Ivo Kabadshow

add frametitle patch for uppercase option

parent 2e32bf92
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
%\setbeamerfont{normal text}{size*={8pt}{9pt}} % 14pt, baselineskip 18pt %\setbeamerfont{normal text}{size*={8pt}{9pt}} % 14pt, baselineskip 18pt
\setbeamerfont{footline}{size*={4.5pt}{5pt}} \setbeamerfont{footline}{size*={4.5pt}{5pt}}
\setbeamerfont{frametitle}{size*={16pt}{16pt},series=\bfseries} %30pt, baselineskip 36pt %\setbeamerfont{frametitle}{size*={16pt}{16pt},series=\bfseries} %30pt, baselineskip 36pt
\setbeamerfont{framesubtitle}{size*={9pt}{11pt},series=\bfseries} % 18pt, baselineskip 22pt \setbeamerfont{framesubtitle}{size*={9pt}{11pt},series=\bfseries} % 18pt, baselineskip 22pt
% Default Definitions % Default Definitions
...@@ -169,7 +169,24 @@ ...@@ -169,7 +169,24 @@
}, },
} }
\fzjset{part=allcaps} \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%
},
}
% define options for letter spacing % define options for letter spacing
\providecommand{\emptydummyb}[1]{} % eats argument of \uppercase() and and \addfontfeature{} \providecommand{\emptydummyb}[1]{} % eats argument of \uppercase() and and \addfontfeature{}
...@@ -177,10 +194,11 @@ ...@@ -177,10 +194,11 @@
\providecommand{\addfontfeature}[1]{} % defined only if latex or pdflatex is used, available in xelatex and lualatex \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 \providecommand{\textls}[2][]{#2}{} % defined only if microtype is loaded
% redefine beamer title, subtitle command % redefine beamer title, subtitle, part and frametitle command
\def\beamerfzj@titleformat#1{#1} \def\beamerfzj@titleformat#1{#1}
\def\beamerfzj@subtitleformat#1{#1} \def\beamerfzj@subtitleformat#1{#1}
\def\beamerfzj@partformat#1{#1} \def\beamerfzj@partformat#1{#1}
\def\beamerfzj@frametitleformat#1{#1}
\patchcmd{\beamer@title}% \patchcmd{\beamer@title}%
{\def\inserttitle{#2}}% {\def\inserttitle{#2}}%
{\protected\def\inserttitle{{\beamerfzj@titleformatspacingb{LetterSpace=15.0}\beamerfzj@titleformatcaps{\beamerfzj@titleformatspacinga[120]{#2}}}}}% {\protected\def\inserttitle{{\beamerfzj@titleformatspacingb{LetterSpace=15.0}\beamerfzj@titleformatcaps{\beamerfzj@titleformatspacinga[120]{#2}}}}}%
...@@ -196,6 +214,22 @@ ...@@ -196,6 +214,22 @@
{\def\insertpart{{\beamerfzj@partformatspacingb{LetterSpace=15.0}\beamerfzj@partformatcaps{\beamerfzj@partformatspacinga[120]{\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} {\PackageError{beamerfzj}{Patching original part failed}\@ehc}
\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}%
}}
{}
{\PackageError{beamerfzj}{Patching original frame title failed}\@ehc}
\makeatother \makeatother
\mode \mode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment