commit f08853e6fe8dc2e332f324122378302faf295238 Author: Malte Kerl Date: Mon May 13 08:27:05 2024 +0200 INITIAL COMMIT diff --git a/beamercolorthemeLTU.sty b/beamercolorthemeLTU.sty new file mode 100644 index 0000000..af3b737 --- /dev/null +++ b/beamercolorthemeLTU.sty @@ -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 + \ No newline at end of file diff --git a/beamerfontthemeLTU.sty b/beamerfontthemeLTU.sty new file mode 100644 index 0000000..9ccc636 --- /dev/null +++ b/beamerfontthemeLTU.sty @@ -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} + diff --git a/beamerinnerthemeLTU.sty b/beamerinnerthemeLTU.sty new file mode 100644 index 0000000..152cefc --- /dev/null +++ b/beamerinnerthemeLTU.sty @@ -0,0 +1,30 @@ +\mode + +\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 + diff --git a/beamerouterthemeLTU.sty b/beamerouterthemeLTU.sty new file mode 100644 index 0000000..6fc2c02 --- /dev/null +++ b/beamerouterthemeLTU.sty @@ -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 +} + diff --git a/beamerthemeLTU.sty b/beamerthemeLTU.sty new file mode 100644 index 0000000..cc936bd --- /dev/null +++ b/beamerthemeLTU.sty @@ -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 + +\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 \ No newline at end of file diff --git a/ltu-example.pdf b/ltu-example.pdf new file mode 100644 index 0000000..6463e3a Binary files /dev/null and b/ltu-example.pdf differ diff --git a/ltu-example.tex b/ltu-example.tex new file mode 100644 index 0000000..1633ff4 --- /dev/null +++ b/ltu-example.tex @@ -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} \ No newline at end of file diff --git a/media/template/english/LTU_eng_vit.png b/media/template/english/LTU_eng_vit.png new file mode 100644 index 0000000..0a361a0 Binary files /dev/null and b/media/template/english/LTU_eng_vit.png differ diff --git a/media/template/english/title.jpg b/media/template/english/title.jpg new file mode 100644 index 0000000..3e3304b Binary files /dev/null and b/media/template/english/title.jpg differ diff --git a/media/template/swedish/LTU_sve_vit.png b/media/template/swedish/LTU_sve_vit.png new file mode 100644 index 0000000..d0b35eb Binary files /dev/null and b/media/template/swedish/LTU_sve_vit.png differ diff --git a/media/template/swedish/title.jpg b/media/template/swedish/title.jpg new file mode 100644 index 0000000..3e3304b Binary files /dev/null and b/media/template/swedish/title.jpg differ