slides/beamertheme1337.sty

168 lines
6.1 KiB
Plaintext
Raw Permalink Normal View History

2022-12-18 11:28:51 +01:00
\DeclareOption{Lato}{
\setsansfont[Ligatures=TeX]{Lato}
\setmonofont[Ligatures=TeX]{Lato}
}
\ProcessOptions
\RequirePackage{tikz}
\RequirePackage[overlay, absolute]{textpos}
\usetikzlibrary{arrows.meta, shapes.misc}
% 'strong' colors
\definecolor{1337Black}{RGB}{0,0,0}
\definecolor{1337White}{RGB}{255,255,255}
\definecolor{1337Blue}{RGB}{0,129,202}
\definecolor{1337Gray}{RGB}{124,124,124}
\definecolor{1337Purple}{RGB}{240,0,240}
% full solarized palette, https://ethanschoonover.com/solarized/
\definecolor{1337SolarizedBase03}{RGB}{0,43,54}
\definecolor{1337SolarizedBase02}{RGB}{7,54,66}
\definecolor{1337SolarizedBase01}{RGB}{88,110,117}
\definecolor{1337SolarizedBase00}{RGB}{101,123,131}
\definecolor{1337SolarizedBase0}{RGB}{131,148,150}
\definecolor{1337SolarizedBase1}{RGB}{147,161,161}
\definecolor{1337SolarizedBase2}{RGB}{238,232,213}
\definecolor{1337SolarizedBase3}{RGB}{253,246,227}
\definecolor{1337SolarizedYellow}{RGB}{181,137,0}
\definecolor{1337SolarizedOrange}{RGB}{203,75,22}
\definecolor{1337SolarizedRed}{RGB}{220,50,47}
\definecolor{1337SolarizedMagenta}{RGB}{211,54,130}
\definecolor{1337SolarizedViolet}{RGB}{108,113,196}
\definecolor{1337SolarizedBlue}{RGB}{38,139,210}
\definecolor{1337SolarizedCyan}{RGB}{42,161,152}
\definecolor{1337SolarizedGreen}{RGB}{133,153,0}
\setbeamercolor{normal text}{fg=1337SolarizedBase1, bg=1337SolarizedBase03}
\setbeamercolor{background canvas}{bg=1337SolarizedBase03}
\setbeamercolor{section in toc}{parent={normal text}}
\setbeamercolor{subsection in toc}{parent={normal text}}
\setbeamercolor{item}{parent={normal text}}
\setbeamercolor{block title}{parent={normal text}, fg=1337White, bg=1337Black}
\setbeamercolor{block body}{parent={normal text}, fg=1337White, bg=1337Gray}
\setbeamercolor{block title example}{parent={normal text}, fg=1337White, bg=1337Gray}
\setbeamercolor{block body example}{parent={normal text}, fg=1337White, bg=1337Black}
\setbeamercolor{logo}{parent={normal text}, bg=1337SolarizedBase03}
\setbeamercolor{institute in head/foot}{parent={normal text}}
\setbeamercolor{headline}{parent={normal text}, bg=1337Black}
\setbeamercolor{qed symbol}{parent={normal text}}
\setbeamercolor{title page}{fg=1337SolarizedRed, bg=1337SolarizedBase03}
\setbeamercolor{subtitle}{fg=1337SolarizedBase01, bg=1337SolarizedBase03}
\setbeamercolor{author}{fg=1337SolarizedYellow, bg=1337SolarizedBase03}
\setbeamercolor{footline}{fg=1337SolarizedMagenta, bg=1337SolarizedBase03}
\setbeamercolor{footnote}{fg=1337White, bg=1337Gray}
\setbeamercolor{frametitle}{fg=1337White, bg=1337Black}
\setbeamercolor{canvas}{fg=1337Gray, bg=1337SolarizedBase03}
\setbeamercolor{prefooter}{fg=1337White, bg=1337Gray}
\setbeamercolor{section page}{fg=1337SolarizedOrange, bg=1337SolarizedBase03}
\setbeamercolor{alerted text}{fg=1337SolarizedYellow}
\setbeamerfont{footline}{size=\normalsize}
\setbeamerfont{footnote}{size=\normalsize}
\setbeamerfont{institute in head/foot}{size=\small}
\setbeamerfont{navigation symbols}{size=\small}
\setbeamerfont{section page}{size=\huge}
\setbeamerfont{title}{size=\Large}
\setbeamerfont{frametitle}{size=\huge}
\setbeamerfont{subtitle}{size=\small}
\setbeamerfont{author}{size=\small}
\setbeamerfont{date}{size=\large}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{itemize items}[circle]
\setbeamertemplate{footline}{
\begin{beamercolorbox}[ht=1cm,wd=\paperwidth]{footline}
%\includegraphics[height=1.5cm]{images/warcon}
%\includegraphics[height=1.5cm]{images/1337_bw}
\hfill
\vbox to 1cm{\vfil\hbox{\textit{My Special Event 2022} - \#\insertframenumber/\inserttotalframenumber}\vfil}%\
\hspace{0.5cm}
\end{beamercolorbox}
}
\setbeamertemplate{footnote}{
\begin{beamercolorbox}[ht=0.75cm,wd=\paperwidth]{footnote}
\end{beamercolorbox}
}
\setbeamertemplate{title page}{
\begin{beamercolorbox}[wd=0.3\paperwidth,ht=0.4\paperheight,dp=8ex,left]{logo}
\vfill
\includegraphics[height=2.5cm]{images/logo_conf}
\hfill
\includegraphics[height=2.5cm]{images/logo_personal}
\vfill
\end{beamercolorbox}
\begin{textblock*}{12cm}(0.4\paperwidth,3cm)
\begin{beamercolorbox}[wd=0.7\paperwidth]{title page}
\usebeamerfont{title}\usebeamercolor{title}\inserttitle%
\end{beamercolorbox}%
\end{textblock*}
\begin{textblock*}{12cm}(0.4\paperwidth,5cm)
\begin{beamercolorbox}[wd=0.7\paperwidth]{author}
\usebeamerfont{author}\usebeamercolor{author}\insertauthor%
\end{beamercolorbox}%
\end{textblock*}
\begin{textblock*}{12cm}(0.4\paperwidth,7cm)
\begin{beamercolorbox}[wd=0.7\paperwidth]{subtitle}
\usebeamerfont{subtitle}\usebeamercolor{subtitle}\insertsubtitle%
\end{beamercolorbox}%
\end{textblock*}
}
\setbeamertemplate{frametitle}{
\begin{beamercolorbox}[wd=\paperwidth,dp=1ex,leftskip=0.5cm,rightskip=0.5cm]{frametitle}
\vfill
\usebeamerfont{frametitle}\insertframetitle
\vfill
\end{beamercolorbox}
}
\setbeamertemplate{block begin}{
\vskip\baselineskip
\begin{beamercolorbox}[wd=\textwidth, ht=0.5cm, dp=0.2cm, leftskip=0.2cm]{block title}%
\usebeamerfont*{block title}{\rule[-0.4ex]{0mm}{2ex}\insertblocktitle}%
\end{beamercolorbox}%
{\nointerlineskip\vskip-0.5pt}%
\usebeamerfont{block body}%
\begin{beamercolorbox}[wd=\textwidth, leftskip=0.2cm, dp=0.2cm]{block body}%
\vskip-.75ex\vbox{}%
}
\setbeamertemplate{block end}{
\end{beamercolorbox}
\vspace*{.25cm}
}
\setbeamertemplate{block example begin}{
\vskip\baselineskip
\begin{beamercolorbox}[wd=\textwidth, ht=0.5cm, dp=0.2cm, leftskip=0.2cm]{block title example}%
\usebeamerfont*{block title example}{\rule[-0.4ex]{0mm}{2ex}\insertblocktitle}%
\end{beamercolorbox}%
{\nointerlineskip\vskip-0.5pt}%
\usebeamerfont{block body example}%
\begin{beamercolorbox}[wd=\textwidth, leftskip=0.2cm, dp=0.2cm]{block body example}%
\vskip-.75ex\vbox{}%
}
\setbeamertemplate{block example end}{
\end{beamercolorbox}
\vspace*{.25cm}
}
\AtBeginSection[]{
\begin{frame}
\vfill
\centering
\begin{beamercolorbox}[center]{section page}
\usebeamerfont{section page}\insertsectionhead\par%
\end{beamercolorbox}
\vfill
\end{frame}
}