Commit a1185ed9 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

initial theme commit

parents
\mode<presentation>
\definecolor{luxembourg blue}{HTML}{00a4dd}
\definecolor{luxembourg red}{HTML}{e31b1d}
\definecolor{lcsb headers}{HTML}{5c5c5c}
\definecolor{lcsb text}{HTML}{333333}
\def\setlcsbRedOnBlue{\setbeamercolor*{lcsb base}{fg=luxembourg red, bg=luxembourg blue}}
\def\setlcsbBlueOnRed{\setbeamercolor*{lcsb base}{fg=luxembourg blue, bg=luxembourg red}}
\setlcsbRedOnBlue
\setbeamercolor*{title page header}{fg=white}
\setbeamercolor*{author}{fg=white}
\setbeamercolor*{date}{fg=white}
\setbeamercolor*{normal text}{fg=lcsb text, bg=black!3}
\setbeamercolor*{alerted text}{fg=orange!80!red!80}
\setbeamercolor*{example text}{fg=yellow!20!green}
\setbeamercolor*{titlelike}{fg=lcsb headers}
\setbeamercolor*{structure}{use=lcsb base, fg=lcsb base.fg}
\setbeamercolor*{lcsb side bar}{use=lcsb base, fg=lcsb base.bg}
\setbeamercolor*{logo}{fg=lcsb headers}
\setbeamercolor*{standout}{use=lcsb base, fg=white, bg=lcsb base.bg}
\setbeamercolor*{section number}{use=lcsb base, fg=lcsb base.fg}
\mode<all>
\RequirePackage{fontspec}
\setmainfont{Libertinus Serif}
\setsansfont[ItalicFont={Fira Sans Light Italic},%
BoldFont={Fira Sans Bold},%
BoldItalicFont={Fira Sans Bold Italic}]%
{Fira Sans Light}%
\setmonofont{IBM Plex Mono Light}[%
BoldFont={IBM Plex Mono Semibold},
Ligatures=CommonOff,Scale=0.86]
\setbeamerfont{title}{size=\Huge, series=\bfseries}
\setbeamerfont{author}{size=\large}
\setbeamerfont{date}{size=\large}
\setbeamerfont{section title}{size=\Huge, series=\bfseries}
\setbeamerfont{section number}{size=\Huge}
\setbeamerfont{block title}{size=\normalsize, series=\bfseries}
\setbeamerfont{block title alerted}{size=\normalsize, series=\bfseries}
\setbeamerfont*{subtitle}{size=\large}
\setbeamerfont{frametitle}{size=\large, series=\bfseries}
\setbeamerfont{caption}{size=\small}
\setbeamerfont{caption name}{series=\bfseries}
\setbeamerfont{description item}{series=\bfseries}
\setbeamerfont{page number in head/foot}{size=\scriptsize}
\setbeamerfont{bibliography entry author}{size=\normalsize, series=\normalfont}
\setbeamerfont{bibliography entry title}{size=\normalsize, series=\bfseries}
\setbeamerfont{bibliography entry location}{size=\normalsize, series=\normalfont}
\setbeamerfont{bibliography entry note}{size=\small, series=\normalfont}
\setbeamerfont{standout}{size=\Large, series=\bfseries}
\def\lcsb@brain{brain}
\def\lcsb@microscope{microscope}
\def\lcsb@servers{servers}
\def\lcsb@watermark{watermark}
\def\lcsb@iwatermark{iwatermark}
\def\lcsb@black{black}
\def\lcsb@white{white}
\def\lcsb@background{} %TODO convert this to pgfkeys
\def\setlcsbbackground#1{\def\lcsb@background{#1}}
\def\lcsbtitlepage#1{\begingroup\lcsb@whitelogostrue\setlcsbbackground{#1}\frame{\titlepage}\endgroup}
\define@key{beamerframe}{c}[true]{% centered
\beamer@frametopskip=0pt plus 1fill\relax%
\beamer@framebottomskip=0pt plus 1fill\relax%
\beamer@frametopskipautobreak=0pt plus .4\paperheight\relax%
\beamer@framebottomskipautobreak=0pt plus .6\paperheight\relax%
\def\beamer@initfirstlineunskip{}%
}
\providebool{lcsb@standout}
\define@key{beamerframe}{standout}[true]{%
\booltrue{lcsb@standout}
\begingroup
\lcsb@whitelogostrue
\setbeamercolor*{titlelike}{use=standout, fg=standout.fg}
\setbeamercolor*{structure}{use=standout, fg=standout.fg}
\setkeys{beamerframe}{c}
\setkeys{beamerframe}{noframenumbering}
\centering
\usebeamercolor[fg]{standout}
\usebeamerfont{standout}
}
\apptocmd{\beamer@reseteecodes}{%
\ifbool{lcsb@standout}{
\endgroup
\boolfalse{lcsb@standout}
}{}
}{}{}
\setbeamertemplate{background}{
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
\ifbool{lcsb@standout}{
\usebeamercolor{standout}
\fill[color=bg] (0,0) rectangle (\the\paperwidth,\the\paperheight);
}{%
\ifx\lcsb@background\lcsb@brain
\node[inner sep=0pt] at (current page.center) {\includegraphics[width=\paperwidth]{media/brain.jpg}};
\else\ifx\lcsb@background\lcsb@microscope
\node[inner sep=0pt] at (current page.center) {\includegraphics[width=\paperwidth]{media/microscope.jpg}};
\else\ifx\lcsb@background\lcsb@servers
\node[inner sep=0pt] at (current page.center) {\includegraphics[width=\paperwidth]{media/servers.jpg}};
\else\ifx\lcsb@background\lcsb@watermark
\fill[color=white] (0,0) rectangle (\the\paperwidth,\the\paperheight);
\node[rotate=15] at(0.3\paperwidth, 0.4\paperheight) {\lcsblogoG{height=\paperheight}};
\else\ifx\lcsb@background\lcsb@iwatermark
\usebeamercolor{normal text}
\fill[color=bg] (0,0) rectangle (\the\paperwidth,\the\paperheight);
\node[rotate=15] at(0.3\paperwidth, 0.4\paperheight) {\lcsblogoW{height=\paperheight}};
\else\ifx\lcsb@background\lcsb@white
\path[fill=white] (0,0) rectangle (\the\paperwidth,\the\paperheight);
\else\ifx\lcsb@background\lcsb@black
\path[fill=black] (0,0) rectangle (\the\paperwidth,\the\paperheight);
\else
\usebeamercolor{normal text}
\fill[color=bg] (0,0) rectangle (\the\paperwidth,\the\paperheight);
\fi\fi\fi\fi\fi\fi\fi}
\end{tikzpicture}
}
\defbeamertemplate*{section page}{simple}{
\begin{tikzpicture}[remember picture, overlay]
\node[anchor=west, text width=\pagewidth-4ex-6mm, inner sep=2ex, line width=0pt, minimum height=32pt]
(sectionbox) at ([xshift=6mm] current page.west) {
\raggedright
\usebeamercolor[fg]{section number}
\usebeamerfont{section number}
\insertsectionnumber.\\[1ex]
\usebeamercolor[fg]{section title}
\usebeamerfont{section title}
\insertsectionhead
};
\usebeamercolor{lcsb side bar}
\path[fill=fg] (current page.west |- sectionbox.north) rectangle ([xshift=3mm] current page.west |- sectionbox.south);
\end{tikzpicture}
\par
}
\AtBeginSection{
\ifbeamer@inframe
\sectionpage
\else
\frame[plain,noframenumbering]{\sectionpage}
\fi
}
\defbeamertemplate*{title page}{lcsb}[1][]
{
\begin{tikzpicture}[remember picture, overlay]
\node[anchor=west, text width=\pagewidth-4ex-3mm, fill=black, fill opacity=0.5, text opacity=1, inner sep=2ex,line width=0pt]
(titlebox) at ([xshift=3mm] current page.west) {
\begin{beamercolorbox}[wd=\linewidth,#1]{title page header}
\usebeamerfont{title}\inserttitle\par%
\end{beamercolorbox}
\vskip1ex%
\begin{beamercolorbox}[wd=\linewidth,#1]{author}
\usebeamerfont{author}\insertauthor\par%
\end{beamercolorbox}
\vskip0.5ex%
\begin{beamercolorbox}[wd=\linewidth,#1]{date}
\usebeamerfont{date}\insertdate%
\end{beamercolorbox}};
\usebeamercolor{lcsb side bar}
\path[fill=fg] (current page.west |- titlebox.north) rectangle ([xshift=3mm] current page.west |- titlebox.south);
\end{tikzpicture}
}
\setbeamertemplate{itemize items}{\textbullet}
\defbeamertemplate*{frametitle}{lcsb}[1][]
{\vskip3mm%
\begin{beamercolorbox}[wd=\paperwidth,sep=0pt]{frametitle}%
\begin{tikzpicture}
\node[anchor=north west, text width=\paperwidth-12mm, minimum height=24pt] (thetitle) at (6mm,0) {
\insertframetitle
\ifx\insertframesubtitle\@empty\else\par\normalfont\insertframesubtitle\fi
};
\iflcsb@standout
\path (0,0);%alignment dummy
\else
\usebeamercolor{lcsb side bar}
\path[fill=fg] (0,0) rectangle ([xshift=-3mm] thetitle.south west);
\fi
\end{tikzpicture}\nolinebreak\end{beamercolorbox}\vskip -2ex%TODO a saner way?
}
\RequirePackage{tikz}
\useinnertheme{lcsb}
\useoutertheme{lcsb}
\usecolortheme{lcsb}
\usefonttheme{lcsb}
\newif\iflcsb@whitelogos
\lcsb@whitelogosfalse
\def\unilulogo#1{\includegraphics[#1]{media/unilu.pdf}}
\def\lcsblogo#1{\includegraphics[#1]{media/lcsb.pdf}}
\def\unilulogoW#1{\includegraphics[#1]{media/uniluW.pdf}}
\def\lcsblogoW#1{\includegraphics[#1]{media/lcsbW.pdf}}
\def\unilulogoG#1{\includegraphics[#1]{media/uniluG.pdf}}
\def\lcsblogoG#1{\includegraphics[#1]{media/lcsbG.pdf}}
\def\unilulogoCW#1{\iflcsb@whitelogos\unilulogoW{#1}\else\unilulogo{#1}\fi}
\def\lcsblogoCW#1{\iflcsb@whitelogos\lcsblogoW{#1}\else\lcsblogo{#1}\fi}
% put this into \logo{}
\def\useunilu{\unilulogoCW{height=1cm}\qquad}
\def\uselcsb{\lcsblogoCW{height=1cm}\qquad}
\def\useboth{\unilulogoCW{height=1cm}\qquad\bgroup\iflcsb@whitelogos\color{white}\fi\rule{0.25pt}{1cm}\egroup\qquad\lcsblogoCW{height=1cm}\qquad}
\setbeamertemplate{navigation symbols}{}
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