NEW: presentation template

This commit is contained in:
Jean-Claude 2022-07-17 14:22:45 +02:00
commit e1e53b81eb
Signed by: jeanclaude
GPG Key ID: 8A300F57CBB9F63E
13 changed files with 355 additions and 0 deletions

23
acronyms.tex Normal file
View File

@ -0,0 +1,23 @@
\acrodef{bcb}[BCB]{\techterm{Bound Check Bypass}}
\acrodef{bhb}[BHB]{\techterm{Branch History Buffer}}
\acrodef{bpu}[BPU]{\techterm{Branch Prediction Unit}}
\acrodef{btb}[BTB]{\techterm{Branch Target Buffer}}
\acrodef{bti}[BTI]{\techterm{Branch Target Injection}}
\acrodef{cp}[CP]{\techterm{Cross Privilege}}
\acrodef{eibrs}[eIBRS]{\techterm{Enhanced Indirect Branch Restricted Speculation}}
\acrodef{ibpb}[IBPB]{\techterm{Indirect Branch Prediction Barrier}}
\acrodef{ibrs}[IBRS]{\techterm{Indirect Branch Restricted Speculation}}
\acrodef{isa}[ISA]{\techterm{Instruction Set Architecture}}
\acrodef{llc}[LLC]{\techterm{Last-Level Cache}}
\acrodef{mmu}[MMU]{\techterm{Memory Management Unit}}
\acrodef{pa}[PA]{\techterm{Physical Address}}
\acrodefplural{pa}{\techterm{Physical Addresses}}
\acrodef{pc}[PC]{\techterm{Program Counter}}
\acrodef{pf}[PF]{\techterm{Page Fault}}
\acrodef{rsb}[RSB]{\techterm{Return Stack Buffer}}
\acrodef{smap}[SMAP]{\techterm{Supervisor Mode Access Prevention}}
\acrodef{smep}[SMEP]{\techterm{Supervisor Mode Execution Prevention}}
\acrodef{smt}[SMT]{\techterm{Simultaneous Multithreading}}
\acrodef{utk}[U $\to$ K]{\techterm{User} $\to$ \techterm{Kernel}}
\acrodef{va}[VA]{\techterm{Virtual Address}}
\acrodefplural{va}{\techterm{Virtual Addresses}}

49
beamercolorthemeeth.sty Executable file
View File

@ -0,0 +1,49 @@
% Available on https://gitlab.ethz.ch/bsaverio/ethbeamer
% Created by Saverio Bolognani based on ETH official design
% Changed to new ETH colors in 04/2021 by Stephanie Neidhardt
% This file should only customize colors
\mode<presentation>
% ETH colors
\definecolor{ETHBlue}{RGB}{33,92,175} % blue
\definecolor{ETHGreen}{RGB}{98,115,19} % green
\definecolor{ETHPurple}{RGB}{163,7,116} % purple
\definecolor{ETHGray}{RGB}{111,111,111} % gray
\definecolor{ETHRed}{RGB}{183,53,45} % red
\definecolor{ETHPetrol}{RGB}{0,120,148} % green/blue
\definecolor{ETHBronze}{RGB}{142,103,19} % bronze
% ETH color aliases
\colorlet{ETHdarkblue}{ETHBlue}
\colorlet{ETHdarkgreen}{ETHGreen}
\colorlet{ETHpink}{ETHPurple}
\colorlet{ETHgray}{ETHGray}
\colorlet{ETHred}{ETHRed}
\colorlet{ETHgreenblue}{ETHPetrol}
\colorlet{ETHbrown}{ETHBronze}
% select colors in case they are not defined
\colorlet{titlefgcolor}{ETHBlue}
\colorlet{titlebgcolor}{ETHBlue}
\colorlet{accentcolor}{ETHRed}
% Settings
\setbeamercolor*{title}{fg=white}
\setbeamercolor*{author}{fg=white}
\setbeamercolor*{date}{fg=white}
\setbeamercolor*{item}{fg=black}
\setbeamercolor*{frametitle}{fg=black}
\setbeamercolor*{block title}{fg=white,bg=accentcolor}
\setbeamercolor*{block body}{fg=black,bg=accentcolor!25!white}
\setbeamercolor{alerted text}{fg=accentcolor}
\setbeamerfont{alerted text}{series=\bfseries}
\setbeamercolor*{block title example}{fg=black}
\setbeamercolor*{section in toc}{fg=black}
\setbeamercolor*{section page}{fg=black}
\mode<all>

31
beamerfontthemeeth.sty Executable file
View File

@ -0,0 +1,31 @@
% Available on https://gitlab.ethz.ch/bsaverio/ethbeamer
% Created by Saverio Bolognani based on ETH official design
% This file should only customize fonts
\usepackage[T1]{fontenc} % for correct hyphenation and T1 encoding
\RequirePackage{lmodern}
\RequirePackage{tgheros} % Helvetica
\renewcommand{\familydefault}{\sfdefault}
\RequirePackage{microtype} % for character protrusion and font expansion
\usefonttheme[onlymath]{serif} % math like in the papers (serif)
\urlstyle{same}
% Font size of the title frame
\setbeamerfont{title}{size=\fontsize{17}{20.4}\selectfont,series=\mdseries}
\setbeamerfont{author}{size=\fontsize{10}{12},series=\bfseries}
\setbeamerfont{date}{size=\fontsize{10}{12},series=\mdseries}
% Font size of the frame titles and toc
\setbeamerfont{frametitle}{size=\large}
\setbeamerfont{framesubtitle}{size=\footnotesize}
\setbeamerfont{section in toc}{size=\normalsize}
% Font size of the slide content
\setbeamerfont{normal text}{size=\footnotesize}
\setbeamerfont{block title}{size=\footnotesize}
\setbeamerfont{itemize/enumerate body}{size=\footnotesize}
\setbeamerfont{itemize/enumerate subbody}{size=\footnotesize}
\setbeamerfont{itemize/enumerate subsubbody}{size=\footnotesize}
\AtBeginDocument{\usebeamerfont{normal text}}

26
beamerinnerthemeeth.sty Executable file
View File

@ -0,0 +1,26 @@
% Available on https://gitlab.ethz.ch/bsaverio/ethbeamer
% Created by Saverio Bolognani based on ETH official design
% This file should only customize the style of the content of the slides
\mode<presentation>
% Links and email addresses
\usepackage{fontawesome}
\let\orighref\href
\renewcommand{\href}[2]{\orighref{#1}{#2~\raisebox{-0.05\baselineskip}{\faExternalLink}}}
\newcommand{\email}[1]{
\orighref{mailto:#1}{#1}
}
% Items
\setbeamertemplate{items}[circle]
\setbeamertemplate{itemize subitem}{\bf --}
\setbeamertemplate{itemize subsubitem}[triangle]
\setbeamertemplate{enumerate items}[default]
% Table of contents
\setbeamertemplate{section in toc}[sections numbered]
\mode<all>

122
beamerouterthemeeth.sty Executable file
View File

@ -0,0 +1,122 @@
% Available on https://gitlab.ethz.ch/bsaverio/ethbeamer
% Created by Saverio Bolognani based on ETH official design
% This file should only customize the style of the layout of the slides
\mode<presentation>
% Redefine \insertshortinstitute to allow multiple lines
\makeatletter
\renewcommand{\insertshortinstitute}{\beamer@shortinstitute}
\makeatother
% Title frame
\def\titlefigure{elements/title-page-image}
\newlength\titleboxwidth
\setlength{\titleboxwidth}{0.43\textwidth}
\newcommand{\titleframe}{%
{
\setbeamertemplate{background}{
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
\ifx\titlefigure\empty
\fill[titlebgcolor] (9.6mm,7.4mm) rectangle (\the\paperwidth-9.5mm,\the\paperheight-13mm);
\else
\node at (current page.center) [anchor=center,yshift=-3.5mm] {\includegraphics[width=\the\paperwidth-19mm]{\titlefigure}};
\fi
\node at (current page.north east) [anchor=base east, xshift=-9.5mm, yshift=-8.4mm, align=left, inner sep=0mm, font=\fontsize{5.5}{6.6}\selectfont] {
\insertshortinstitute
};
\node at (current page.north west) [anchor=south west, inner sep=0mm, xshift=9.5mm, yshift=-8.6mm] {
\includegraphics[height=4mm]{elements/eth_logo_kurz_pos}
};
\end{tikzpicture}
}
\setbeamertemplate{footline}{}
\begin{frame}[noframenumbering]
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
\node [
shift={(-12mm,-2mm)},
fill=titlefgcolor,
minimum width=0.49\paperwidth,
minimum height=20mm,
anchor=west,
inner sep=5mm
] at (current page.west) {
\hspace*{10mm}
\begin{minipage}{\titleboxwidth}
\raggedright
\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle\\[3mm]
\usebeamerfont{author}\usebeamercolor[fg]{author}\insertauthor\\
\usebeamerfont{date}\usebeamercolor[fg]{date}\insertdate
\end{minipage}
};
\end{tikzpicture}
\end{frame}
}
}
% TOC frame
\newcommand{\tocframe}{%
\begin{frame}
\frametitle{Outline}
\tableofcontents
\end{frame}
}
% Section title frame
\AtBeginSection[]
{
\begin{frame}
\frametitle{Outline}
\large
\tableofcontents[currentsection]
\end{frame}
}
\newenvironment{closingframe}{
\setbeamertemplate{background}{
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
\node at (current page.north west) [anchor=base west, xshift=8mm, yshift=-10mm, align=left] {
\includegraphics[width=23mm]{elements/eth_logo_kurz_pos}
};
\end{tikzpicture}
}
\setbeamertemplate{footline}{}
\addtolength{\headsep}{10mm}
\begin{frame}[noframenumbering]
}%
{
\end{frame}
}%
% Frame title
\setbeamertemplate{frametitle}{
\vspace{2mm}
\insertframetitle \\
\usebeamerfont{framesubtitle}\insertframesubtitle
\vspace{2.5mm}
}
% Footline
\setbeamertemplate{footline}{
\leavevmode%
\hspace{9mm}
% \raisebox{-0.1mm}{\includegraphics[width=13mm]{elements/eth_logo_kurz_pos}}
\includegraphics[width=13mm,trim=0mm 0.3mm 0mm 0mm]{elements/eth_logo_kurz_pos}
\hspace{4.5mm}
\parbox[b]{25mm}{
\fontsize{3.2}{3.5}\selectfont
\insertshortinstitute
}
\hfill
\insertshortdate
\hspace{3mm}
\insertframenumber/\inserttotalframenumber
\hspace{9mm}
\vspace{3mm}
}
\mode<all>

35
beamerthemeeth.sty Executable file
View File

@ -0,0 +1,35 @@
% Available on https://gitlab.ethz.ch/bsaverio/ethbeamer
% Created by Saverio Bolognani based on ETH official design
% This file should only load themes and packages, no customization
\mode<presentation>
\usepackage[utf8]{inputenc}
% Tizk, textpos, graphics
\RequirePackage{tikz}
\RequirePackage{textpos}
\RequirePackage{xcolor}
\RequirePackage{booktabs}
% Beamer settings
\usecolortheme{eth}
\usefonttheme{eth}
\useinnertheme{eth}
\useoutertheme{eth}
\setbeamertemplate{navigation symbols}{}
% Math
\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{amsfonts}
\usepackage{mathtools} % Mathematical tools to use with amsmath
\usepackage{mathrsfs} % Support use of the Raph Smiths Formal Script font in mathematics. Provides a \mathscr command
\usepackage{mathdots} % Redefines \ddots and \vdots, and defines \iddots.
\usepackage{dsfont} % Doublestroke font
\usepackage{wasysym} % Useful symbols
\usepackage[bbgreekl]{mathbbol}
\DeclareSymbolFontAlphabet{\mathbbl}{bbold}
\mode<all>

4
commands.tex Normal file
View File

@ -0,0 +1,4 @@
\newcommand{\retbleed}{\textsc{Retbleed}}
\newcommand{\retbti}{\textsc{Ret}-\acs{bti}}
\newcommand{\cpbti}{\ac{cp}-\acs{bti}}
\newcommand{\techterm}[1]{\textsl{#1}}

BIN
elements/title-page-image-43.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 KiB

BIN
elements/title-page-image-alt.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 KiB

BIN
elements/title-page-image.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 KiB

54
presentation.tex Executable file
View File

@ -0,0 +1,54 @@
\documentclass[11pt,aspectratio=169,t]{beamer}
% Note stuff
\usepackage{pgfpages}
% \setbeamertemplate{note page}[plain]
% \setbeameroption{show notes on second screen=right}
\usepackage{acronym}
% Import Inkscape stuff
\usepackage{import}
\usepackage{xifthen}
\usepackage{pdfpages}
\usepackage{transparent}
\newcommand{\incfig}[2][1]{%
\def\svgwidth{#1\columnwidth}
\import{./figures/}{#2.pdf_tex}
}
\usepackage[per-mode=symbol,range-phrase = \text{--}]{siunitx}
%\newcommand*{\PRINTTODO}{}
\newcommand{\todo}[1]{
\textcolor{red}{TODO: #1}
\ifdefined\PRINTTODO
\PackageWarning{TODO:}{#1!}
\fi
}
\input{./variables.tex}
\input{./commands.tex}
\input{./acronyms.tex}
% Always use short form
\renewcommand{\ac}[1]{\acs{#1}}
\renewcommand{\acp}[1]{\acsp{#1}}
\title{\thesisTitle}
\date{20. August 2022}
\author{\authorName}
\institute{Organizational Unit\\can spread over 2 lines}
\usetheme{eth}
\colorlet{titlefgcolor}{ETHBlue}
\colorlet{accentcolor}{ETHRed}
\begin{document}
\titleframe
\end{document}

11
variables.tex Normal file
View File

@ -0,0 +1,11 @@
%! TEX root = ./thesis.tex
\newcommand*{\authorName}{Jean-Claude Graf}
\newcommand*{\supervisorName}{Prof.\,Dr.\,Kaveh Razavi}
\newcommand*{\tutorName}{Johannes Wikner}
\newcommand*{\thesisTitle}{An Evaluation of Speculative Retbleed}
\newcommand*{\thesisTitleFancy}{An Evaluation of Speculative Retbleed}
\newcommand*{\thesisType}{Bachelor Thesis}
\newcommand*{\authorEmail}{dummy@superdummy.com}
\newcommand*{\authorLegi}{XX-XxX-xXx}
\newcommand*{\authorSemester}{6}
\newcommand*{\dateDuration}{February 2022 to August 2022}