INITIAL COMMIT

main
Malte Kerl 8 months ago
commit f08853e6fe

@ -0,0 +1,53 @@
% Color palettes
\setbeamercolor*{palette primary}{fg=white, bg = mainColor}
\setbeamercolor*{palette secondary}{fg=subtleColor}
\setbeamercolor*{palette tertiary}{fg=subtleColor, bg=white}
\setbeamercolor*{palette quaternary}{fg=mainColor, bg=white}
\setbeamercolor*{normal text}{fg = white, bg=mainColor}
% sets (sub)title, (sub)frametitle if not otherwise specified
\setbeamercolor*{titlelike}{parent=palette quaternary}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Specific Choices %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Title page, part, section, subsection
\setbeamercolor*{title}{parent=palette quaternary}
\setbeamercolor*{title page header}{parent=palette quaternary}
\setbeamercolor*{section title}{parent=palette quaternary}
\setbeamercolor{author}{parent=palette secondary}
\setbeamercolor{date}{parent = palette secondary}
\setbeamercolor{slide separation line}{fg=accentColor}
% Table of Contents
\setbeamercolor{section in toc}{parent = palette primary}
\setbeamercolor{subsection in toc}{parent = palette primary}
\setbeamercolor{item in toc}{parent = palette primary}
% - Standard block
\setbeamercolor{block title}{parent=palette primary}
\setbeamercolor{block body}{parent=palette primary}
% - Alert block
\setbeamercolor{block title alerted}{parent = palette primary}
\setbeamercolor{block body alerted}{bg = accentColor}
% - Footnotes
\setbeamercolor{footnote}{parent = palette tertiary}
\setbeamercolor{footnote mark}{parent = palette tertiary}
% - Captions
% - Itemize/Enumerate (both) item icons ->
\setbeamercolor{item}{parent = palette primary}
%\setbeamercolor{item}{parent = palette secondary}
\setbeamercolor{frametitle}{parent=palette primary}
\setbeamercolor{framesubtitle}{parent = palette secondary}
\mode
<all>

@ -0,0 +1,16 @@
\ProvidesPackage{beamerfontthemeLTU}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Set default font family to Arial %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage[scaled]{helvet}
\renewcommand*\familydefault{\sfdefault}
\RequirePackage[T1]{fontenc}
%But keep nice math fonts
\SetMathAlphabet{\mathnormal}{normal}{OML}{cmm}{m}{it}
\SetMathAlphabet{\mathnormal}{bold}{OML}{cmm}{b}{it}
\setbeamerfont{title}{size=\LARGE}
\setbeamerfont{frametitle}{size=\Large}
\setbeamerfont{normal text}{size=\normalsize}

@ -0,0 +1,30 @@
\mode<presentation>
\setbeamertemplate{background}
{
\color{mainColor}\vrule width\paperwidth height\paperheight
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Title Page %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\defbeamertemplate*{title page}{customized}[1][]{
\begin{tikzpicture}[remember picture, overlay]
\node[at=(current page.east), anchor=east, inner sep=0] {\includegraphics[width=.5\paperwidth, height=\paperheight]{\TitleImagePath}};
\node[fill=white, rectangle, minimum width=.6\paperwidth, minimum height=.4\paperheight, anchor=center, text width=.55\paperwidth, font=\sffamily] at ($(current page.center)+(0,0.06\paperheight)$) {
\usebeamerfont{title}\textcolor{mainColor}\inserttitle\\
\vspace{0.1cm}
\tiny \textcolor{orange}{\rule{0.1\linewidth}{2pt}}\par
\vspace{0.1cm}
\usebeamerfont{author}\textcolor{subtleColor}\insertauthor\par
\usebeamerfont{date}\textcolor{subtleColor}\insertdate
};
\end{tikzpicture}
}
\mode
<all>

@ -0,0 +1,79 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fonts %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamerfont{title}{size=\Large, series=\fontseries{k}}
\setbeamerfont{sectionpage}{series=\fontseries{k}}
\setbeamerfont{subtitle}{parent={normal text}, size=\small, series=\mdseries}
\setbeamerfont{author}{size=\small, series=\mdseries}
\setbeamerfont{date}{size=\small, series=\mdseries}
\setbeamerfont{frametitle}{size=\large, series=\bfseries}
\setbeamerfont{framesubtitle}{parent={normal text}, series=\mdseries}
\setbeamerfont{title in head/foot}{parent={footline}}
\setbeamerfont{author in head/foot}{parent={footline}}
\setbeamerfont{section in toc}{series=\bfseries}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Frame Title %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\defbeamertemplate*{frametitle}{}[1][]{
\vspace*{\baselineskip}%
\begin{beamercolorbox}[wd=\paperwidth]{frametitle}
% Vertical bar
\begin{minipage}[c][\baselineskip][c]{0.05\paperwidth}
\hfill
\color{accentColor}\vrule width 0.15em height 1.5\baselineskip
\hfill\mbox{}
\end{minipage}%
% Title and subtitle
\begin{minipage}[c][\baselineskip][c]{0.95\paperwidth} % remaining width for the title
\ifx\insertframesubtitle\@empty%
\vskip3pt% Space above the title when there is no subtitle
\fi
\usebeamerfont{frametitle}\insertframetitle
% Check if subtitle exists
\ifx
\insertframesubtitle\@empty%
\else%
\vskip0.5ex % spacing between title and subtitle
\usebeamerfont{framesubtitle} \insertframesubtitle
\fi%
\end{minipage}%
\vskip0pt%
\end{beamercolorbox}
}
%Require different ways to achieve wider spacings in the footline
\ifxetex
\RequirePackage{fontspec}
\else
\RequirePackage{microtype}
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Footline %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newlength{\footlineheight}
\setlength{\footlineheight}{0.04\paperheight}
\defbeamertemplate*{footline}{LTU}
{
\ifnum \insertpagenumber=1 % Suppress on the first slide
\relax
\else
\begin{beamercolorbox}[wd=\paperwidth, ht=\footlineheight, dp=0.5\footlineheight, left, leftskip=2em]{palette quaternary}
\ifxetex
\usebeamercolor[fg]{palette quaternary}\textbf{\addfontfeatures{LetterSpace=125} \LTU}
\else
\usebeamercolor[fg]{palette quaternary}\textbf{\textls[125]{\LTU}}
\fi
\end{beamercolorbox}
\fi
}

@ -0,0 +1,81 @@
% Requirement
\RequirePackage{tikz}
\usetikzlibrary{calc}
\RequirePackage{ifthen}
\RequirePackage{kvoptions}
\SetupKeyvalOptions{
family=LTU,
prefix=LTU@
}
%Differentiate between XeTex and other Tex Distros
\RequirePackage{ifxetex}
\setbeamersize{text margin left=0.05\paperwidth}
\setlength{\leftmargini}{0.026\paperwidth}
\DeclareStringOption[english]{language}
\ProcessKeyvalOptions*\relax
\ifthenelse{\equal{\LTU@language}{swedish}}{
\newcommand{\LTU}{LULEÅ TEKNISKA UNIVERISTET}
\newcommand{\LogoPath}{media/template/swedish/LTU_sve_vit.png}
\newcommand{\TitleImagePath}{media/template/swedish/title.jpg}
}{
\newcommand{\LTU}{LULEÅ UNIVERSITY OF TECHNOLOGY}
\newcommand{\LogoPath}{media/template/english/LTU_eng_vit.png}
\newcommand{\TitleImagePath}{media/template/english/title.jpg}
}
%GlobalColorDefinitions
\definecolor{mainColor}{HTML}{032040}
\definecolor{white}{HTML}{ffffff}
\definecolor{accentColor}{HTML}{ff8247}
\definecolor{subtleColor}{HTML}{89a5be}
\mode<presentation>
\useinnertheme{LTU}
\useoutertheme{LTU}
\usefonttheme{LTU}
\usecolortheme{LTU}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamertemplate{itemize items}[square]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Special Slides %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Agenda %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{agenda}[1]{
% Environment definition
\begin{frame}{Agenda}
% Custom settings e.g., background
\end{frame}
}{
\end{frame}
}
\AtEndDocument{
\begin{frame}[plain]
\begin{center}
\includegraphics[width=0.33\paperwidth]{\LogoPath} % Adjust path and filename as necessary
\end{center}
\end{frame}
}
\mode<all>

Binary file not shown.

@ -0,0 +1,37 @@
\documentclass[aspectratio=169]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\title{LTU Beamer Template}
\date{2024-05-06}
\author{Some Guy}
\usetheme[language=english]{LTU}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{Options}
This is text outside of an enumeration
\begin{itemize}
\item language (Changes logo and footline)
\begin{itemize}
\item english (default)
\item swedish
\end{itemize}
\end{itemize}
\end{frame}
\end{document}

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 KiB

Loading…
Cancel
Save