latex_resources_niklas/beamerthemeNik.sty

78 lines
2.4 KiB
Plaintext
Raw Normal View History

2022-05-12 00:16:27 +00:00
\ProvidesPackage{beamerthemeNik}[2022/05/11 v0.1 A simple beamer theme using Dracula color scheme for my own needs]
\mode<presentation>
\RequirePackage{ifthen}
\usecolortheme{Nik}
\usefonttheme{Nik}
\setbeamertemplate{navigation symbols}{}
\setbeamersize{text margin left=10mm,text margin right=10mm}
\setbeamertemplate{caption}{\insertcaption}
\setbeamertemplate{itemize item}{$\ast$}
\setbeamertemplate{itemize subitem}{$\ast$}
\setbeamertemplate{itemize subsubitem}{$\ast$}
\setbeamertemplate{frametitle}{
{\usebeamercolor[fg]{normal text} \mdseries >> }~\boldmath\insertframetitle%
\hfill\ifx\insertframesubtitle\@empty\else{\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\insertframesubtitle}\fi
}
\setbeamertemplate{frametitle continuation}[from second][\insertcontinuationtext]
\setbeamertemplate{headline}
{%
\begin{beamercolorbox}{section in head/foot}
\vskip2pt\insertnavigation{\paperwidth}\vskip5pt
\end{beamercolorbox}%
}
\setbeamertemplate{footline}{
\newbox\nord@tmpbox
\vskip0.3cm
\hskip0.3cm
\insertauthor $\qquad$ \insertdate $\qquad$ \insertinstitute
\setbox\nord@tmpbox\hbox{[\insertframenumber/\inserttotalframenumber]}
\vspace{5.2mm}
\hspace{2mm}\noindent\hfill\box\nord@tmpbox\hspace{2mm}
\vspace{1.3mm}
}
\setbeamertemplate{title page}{
\renewcommand\thefootnote{\fnsymbol{footnote}}
\setcounter{footnote}{1} % \dagger
{\usebeamerfont{title}\usebeamercolor[fg]{title}\bfseries\boldmath\inserttitle}
\ifx\insertsubtitle\@empty\else\\[1em] {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle}\fi~\\[2em]
{\structure{von}} \insertauthor\ \ifx\insertinstitute\@empty\else\quad(\insertinstitute)\fi
\\[1pt]
{\structure{am}} \insertdate\\
\renewcommand\thefootnote{\arabic{footnote}}
\setcounter{footnote}{0}
}
% table of contents
\setbeamertemplate{section in toc}{
%\inserttocsection\\\smallskip
Was kommt?\\\medskip
}
\setbeamertemplate{subsection in toc}{~$\ast$~~\inserttocsubsection\\\smallskip}
\setbeamertemplate{subsection in toc shaded}[default][100]
% block
\setbeamertemplate{blocks}[rounded][shadow=false]
\addtobeamertemplate{block begin}{%
\setlength{\textwidth}{0.85\textwidth}%
}{}
\addtobeamertemplate{block alerted begin}{%
\setlength{\textwidth}{0.85\textwidth}%
}{}
\addtobeamertemplate{block example begin}{%
\setlength{\textwidth}{0.85\textwidth}%
}{}
\mode
<all>
\endinput