Files
awesome-beamer/beamerinnerthemeAwesome.sty
Lukas Pietzschmann a03a3d6dc2 Init commit
2022-12-06 01:06:23 +01:00

103 lines
2.4 KiB
TeX

\mode<presentation>
\renewcommand{\textsubscript}[1]{\scalebox{0.7}{#1}}
\setbeamertemplate{blocks}[rounded][shadow=false]
\setbeamertemplate{section in toc}{
\usebeamercolor[fg]{section number projected}\inserttocsectionnumber.\usebeamercolor[fg]{normal text}~\inserttocsection
}
\setbeamertemplate{subsection in toc}{
~~~~\usebeamercolor[fg]{section number projected}\inserttocsectionnumber.\textsubscript{\usebeamercolor[fg]{subsection number projected}\inserttocsubsectionnumber}~\usebeamercolor[fg]{normal text}\inserttocsubsection
}
\setbeamertemplate{itemize item}[circle]
\setbeamertemplate{itemize subitem}[circle]
\setbeamertemplate{frametitle continuation}{}
\setbeamertemplate{separator}{
\usebeamercolor{separator}
\textcolor{fg}{\rule{.7\textwidth}{.5pt}}
}
\setbeamersize{description width=0.5cm}
\renewcommand{\beamer@andtitle}{\\}
\usetikzlibrary{fadings}
\newcommand{\background}[1]
{\newcommand{\awesome@background}{#1}}
\tikzfading[
name=title page picture fading,
left color=transparent!0,
right color=transparent!100,
]
\newcommand{\mytitle}{Title}
\newcommand{\mysubtitle}{Subtitle}
\newcommand{\student}{Max Mustermann}
\newcommand{\mail}{max@mustermann.de}
\newcommand{\myinstitute}{Some Institute}
\newcommand{\uni}{Some Uni}
\newcommand{\mydate}{\today}
\setbeamertemplate{title page}{%
\thispagestyle{navigation@titlepage}
\begin{minipage}{.8\textwidth}
\raggedright
\usebeamerfont{title}
\usebeamercolor[fg]{title}
\mytitle\\
\usebeamerfont{subtitle}
\usebeamercolor[fg]{subtitle}
\mysubtitle
\usebeamertemplate{separator}
\usebeamerfont{author}
\usebeamercolor[fg]{author}
\vspace{2em}
\student\\
\usebeamerfont{details}
\usebeamercolor[fg]{details}
\href{mailto:\mail}{\mail}
\vspace{2em}
\usebeamerfont{details}
\usebeamercolor[fg]{details}
\myinstitute\\
\uni
\vspace{2em}
\mydate
\end{minipage}
\ifdefined\awesome@background
\begin{tikzpicture}[remember picture, overlay]
\clip (current page.south east)
-- (current page.north east)
-- ++(-5.1, 0)
-- ++(-3, -\paperheight)
-- cycle;
\node[
anchor=south east,
inner sep=0,
outer sep=0
] at (current page.south east) {
\includegraphics[height=\paperheight]{\awesome@background}
};
\fill[
black, path fading=title page picture fading,
fading angle=-15
]
(current page.south east)
rectangle
++(-10, \dimexpr\paperheight+1cm);
\end{tikzpicture}
\fi
}
\mode<all>