From b3eb33c68802db67fcc78437c96fb14d105fa308 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Wed, 30 Sep 2020 14:00:14 +0200 Subject: [PATCH] Add latex beamer styles --- latex/beamercolorthemeSHblue.sty | 40 +++++++++++++ latex/beamercolorthemeSHblue2.sty | 29 ++++++++++ latex/beamercolorthemeSHblue3.sty | 29 ++++++++++ latex/beamerthemeSHMinimalistic.sty | 40 +++++++++++++ latex/beamerthemeSHMinimalistic2.sty | 66 +++++++++++++++++++++ latex/beamerthemeSHMinimalistic3.sty | 86 ++++++++++++++++++++++++++++ 6 files changed, 290 insertions(+) create mode 100644 latex/beamercolorthemeSHblue.sty create mode 100644 latex/beamercolorthemeSHblue2.sty create mode 100644 latex/beamercolorthemeSHblue3.sty create mode 100644 latex/beamerthemeSHMinimalistic.sty create mode 100644 latex/beamerthemeSHMinimalistic2.sty create mode 100644 latex/beamerthemeSHMinimalistic3.sty diff --git a/latex/beamercolorthemeSHblue.sty b/latex/beamercolorthemeSHblue.sty new file mode 100644 index 0000000..0bd7db2 --- /dev/null +++ b/latex/beamercolorthemeSHblue.sty @@ -0,0 +1,40 @@ +% Copyright 2009, 2020 Stefan Huber + + +\mode + +\definecolor{maincolor}{rgb}{0.2,0.2,0.7} + + +\setbeamercolor{structure}{fg=maincolor} +\setbeamercolor{alerted text}{fg=maincolor} + +\setbeamercolor{palette primary}{fg=white,bg=maincolor!70} +\setbeamercolor{palette secondary}{fg=white,bg=maincolor!80} +\setbeamercolor{palette tertiary}{fg=white,bg=maincolor!90} +\setbeamercolor{palette quaternary}{fg=white,bg=maincolor} + +\setbeamercolor{titlelike}{parent=palette quaternary} +\setbeamercolor{footline}{parent=titlelike} +\setbeamercolor{footline page}{parent=palette secondary} + +\setbeamercolor{block title}{fg=white,bg=maincolor} +\setbeamercolor{block title alerted}{use=alerted text,fg=white,bg=alerted text.fg!75!bg} +\setbeamercolor{block title example}{use=example text,fg=white,bg=example text.fg!75!bg} + +\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!10!bg} +\setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg!25!bg} +\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!25!bg} + +\setbeamercolor{sidebar}{bg=maincolor!70} + +\setbeamercolor{palette sidebar primary}{fg=white} +\setbeamercolor{palette sidebar secondary}{fg=white!75} +\setbeamercolor{palette sidebar tertiary}{fg=white!75} +\setbeamercolor{palette sidebar quaternary}{fg=white} + +\setbeamercolor*{separation line}{} +\setbeamercolor*{fine separation line}{} + +\mode + diff --git a/latex/beamercolorthemeSHblue2.sty b/latex/beamercolorthemeSHblue2.sty new file mode 100644 index 0000000..fd5998f --- /dev/null +++ b/latex/beamercolorthemeSHblue2.sty @@ -0,0 +1,29 @@ +% Copyright 2009, 2020 Stefan Huber + + +\mode + +\definecolor{maincolor}{rgb}{0.2,0.2,0.7} +\definecolor{bgcolor}{rgb}{0.95,0.95,0.95} +\definecolor{bgcolor}{rgb}{1,1,1} + + +\beamertemplatesolidbackgroundcolor{bgcolor} + + +\setbeamercolor{structure}{fg=maincolor} +\setbeamercolor{alerted text}{fg=maincolor} + +\setbeamercolor{title}{fg=maincolor,bg=bgcolor} +\setbeamercolor{titlelike}{fg=maincolor,bg=bgcolor} +\setbeamercolor{footline}{fg=white, bg=maincolor} + +\setbeamercolor{block title}{fg=white,bg=maincolor} +\setbeamercolor{block body}{bg=bgcolor!90!black} + +\setbeamercolor*{separation line}{} +\setbeamercolor*{fine separation line}{} + + +\mode + diff --git a/latex/beamercolorthemeSHblue3.sty b/latex/beamercolorthemeSHblue3.sty new file mode 100644 index 0000000..33f16a9 --- /dev/null +++ b/latex/beamercolorthemeSHblue3.sty @@ -0,0 +1,29 @@ +% Copyright 2009, 2020 Stefan Huber + + +\mode + +\definecolor{maincolor}{rgb}{0.2,0.2,0.7} +\definecolor{maincolor}{RGB}{65, 112, 182} +\definecolor{bgcolor}{rgb}{1,1,1} + + +\beamertemplatesolidbackgroundcolor{bgcolor} + + +\setbeamercolor{structure}{fg=maincolor} +\setbeamercolor{alerted text}{fg=maincolor} + +\setbeamercolor{title}{fg=white, bg=maincolor} +\setbeamercolor{titlelike}{fg=white, bg=maincolor} +\setbeamercolor{footline}{fg=white, bg=maincolor} + +\setbeamercolor{block title}{fg=white, bg=maincolor} +\setbeamercolor{block body}{bg=bgcolor!90!maincolor} + +\setbeamercolor*{separation line}{} +\setbeamercolor*{fine separation line}{} + + +\mode + diff --git a/latex/beamerthemeSHMinimalistic.sty b/latex/beamerthemeSHMinimalistic.sty new file mode 100644 index 0000000..7d98005 --- /dev/null +++ b/latex/beamerthemeSHMinimalistic.sty @@ -0,0 +1,40 @@ +% Copyright 2009, 2020 Stefan Huber + +\DeclareOptionBeamer{compress}{\beamer@compresstrue} +\ProcessOptionsBeamer + +\mode + +\usecolortheme{SHblue} + +%\useoutertheme{infolines} +%\useoutertheme{shadow} +%\useoutertheme{split} + +%\useinnertheme{rounded} + + +\setbeamerfont{frametitle}{parent=structure,size=\large} + +\defbeamertemplate*{footline}{SHblue theme} +{ + \leavevmode% + \hbox{% + \begin{beamercolorbox}[wd=.5\textwidth,ht=2.25ex,dp=1ex,left]{footline}% + \hspace{1ex}\insertshortauthor:~ \bf \insertshorttitle + \end{beamercolorbox}% + \begin{beamercolorbox}[wd=.5\textwidth,ht=2.25ex,dp=1ex,right]{footline page}% + \insertsectionhead\hspace*{2ex} \bf \insertframenumber{} / \inserttotalframenumber\hspace{2ex} + \end{beamercolorbox}% + }% + \vskip0pt% +} + + +\setbeamersize{text margin left=1em,text margin right=1em} + +\mode + + + + diff --git a/latex/beamerthemeSHMinimalistic2.sty b/latex/beamerthemeSHMinimalistic2.sty new file mode 100644 index 0000000..cae826a --- /dev/null +++ b/latex/beamerthemeSHMinimalistic2.sty @@ -0,0 +1,66 @@ +% Copyright 2009, 2020 Stefan Huber + +\DeclareOptionBeamer{compress}{\beamer@compresstrue} +\ProcessOptionsBeamer + +\mode + +\usecolortheme{SHblue2} + +%\useoutertheme{infolines} +%\useoutertheme{shadow} +%\useoutertheme{split} +%\useinnertheme[shadow=true]{rounded} + +%\setbeamertemplate{blocks}[rounded][shadow=true] +\setbeamertemplate{blocks}[rounded] + + + +\setbeamerfont{frametitle}{parent=structure,size=\Large} +\setbeamerfont{author}{size=\small} +\setbeamerfont{date}{size=\normalsize} +\setbeamerfont{title}{series=\bfseries} + + +\defbeamertemplate*{footline}{SHblue theme} +{% + \leavevmode% + \hbox{% + \begin{beamercolorbox}[wd=\textwidth,ht=2.25ex,dp=1ex]{footline}% + \hspace{1ex}\insertshortauthor:\hspace{2ex}\bf\insertshorttitle\normalfont + \hfill \insertsectionhead% + \ifnum\value{subsection}=0\relax% + {}% + \else% + { / \insertsubsectionhead}% + \fi% + \hspace*{4ex} \bf \insertframenumber{} of \inserttotalframenumber\hspace{2ex} + \end{beamercolorbox}% + }% + %\vskip0pt% +} + + +\setbeamersize{text margin left=1em,text margin right=1em} + + + +\newenvironment{skipframecount} +{% + \ifcsname c@tmpframenumber\endcsname% + \else% + \newcounter{tmpframenumber}% + \fi% + \setcounter{tmpframenumber}{\value{framenumber}} +} +{% + \setcounter{framenumber}{\value{tmpframenumber}} +} + + + +\mode + + + diff --git a/latex/beamerthemeSHMinimalistic3.sty b/latex/beamerthemeSHMinimalistic3.sty new file mode 100644 index 0000000..28eefd1 --- /dev/null +++ b/latex/beamerthemeSHMinimalistic3.sty @@ -0,0 +1,86 @@ +% Copyright 2009, 2020 Stefan Huber + +\DeclareOptionBeamer{compress}{\beamer@compresstrue} +\ProcessOptionsBeamer + +\mode + +\usecolortheme{SHblue3} + +%\useoutertheme{infolines} +%\useoutertheme{shadow} +%\useoutertheme{split} +%\useinnertheme[shadow=true]{rounded} + + +%\useroutertheme{} % No outer theme +\useinnertheme{rectangles} +\setbeamertemplate{itemize items}[triangle] + +\setbeamerfont{frametitle}{parent=structure,size=\Large} +\setbeamerfont{author}{size=\small} +\setbeamerfont{date}{size=\normalsize} +%\setbeamerfont{title}{series=\bfseries} + + +\defbeamertemplate*{footline}{SHblue theme} +{% + \leavevmode% + \hbox{% + \begin{beamercolorbox}[wd=\textwidth,ht=2.25ex,dp=1ex]{footline}% + \hspace{1ex}\insertshortauthor:\hspace{2ex}\bf\insertshorttitle\normalfont + \hfill \insertsectionhead% + \ifnum\value{subsection}=0\relax% + {}% + \else% + {\ /\ \insertsubsectionhead}% + \fi% + \hspace*{4ex} \bf \insertframenumber{} of \inserttotalframenumber\hspace{2ex} + \end{beamercolorbox}% + }% + %\vskip0pt% +} + +\setbeamertemplate{footnote} +{% + \parindent 1em\noindent% + \raggedright% + \insertfootnotemark\enspace\tiny\insertfootnotetext\par% +} + + +\setbeamersize{text margin left=1em,text margin right=1em} + + +\newcommand{\framenumbersave}{% + \ifcsname c@tmpframenumber\endcsname% + \else% + \newcounter{tmpframenumber}% + \newcounter{tmpframenumberstored}% + \setcounter{tmpframenumberstored}{0} + \fi% + + \ifnum \value{tmpframenumberstored}=0 + \setcounter{tmpframenumber}{\value{framenumber}} + \fi + \addtocounter{tmpframenumberstored}{1} +} +\newcommand{\framenumberrestore}{% + \addtocounter{tmpframenumberstored}{-1} + \ifnum \value{tmpframenumberstored}=0 + \setcounter{framenumber}{\value{tmpframenumber}} + \fi +} +\newenvironment{skipframecount}{\framenumbersave}{\framenumberrestore} + + +\let\fcntpart\part +\renewcommand{\part}[1]{\framenumbersave\fcntpart{#1}\framenumberrestore} +\let\fcntsection\section +\renewcommand{\section}[1]{\framenumbersave\fcntsection{#1}\framenumberrestore} +\let\fcntsubsection\subsection +\renewcommand{\subsection}[1]{\framenumbersave\fcntsubsection{#1}\framenumberrestore} + + +\mode + -- 2.39.5