Initial talk template.

This commit is contained in:
Julian M. Kunkel 2018-05-24 16:36:50 +01:00
parent 617820dd2d
commit 0a8e1f58ab
8 changed files with 397 additions and 3 deletions

View File

@ -1,4 +1,7 @@
# reading-templates
# Unversity of Reading Templates
This repository contains templates for students and staff of the University.
If you are not a member of the university check the templates as some layouts are copyrighted by the University of Reading (unfortunately). Alternatives are provided, though.
This repository contains templates for students and staff of the University.
If you are not a member of the university check the templates as some layouts are copyrighted by the University of Reading (unfortunately).
Alternatives are provided, though.
The License describes the case in which you modify the templates, usage of the template without distributing changed templates is always permitted.

BIN
assets/hps-footer.pdf Normal file

Binary file not shown.

BIN
assets/hps-logo.pdf Normal file

Binary file not shown.

BIN
assets/reading-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

258
talk/beamerthemeReading.sty Normal file
View File

@ -0,0 +1,258 @@
\newcommand\resetsubfigs{\setcounter{sub\@captype}{0}}
\usepackage{url}
\usepackage{hyperref}
%\def\UrlBreaks{\do\/\do-\do.}
\usepackage{tikz}
\usepackage{textpos}
\usepackage{caption}
\usepackage{subfig}
\DeclareGraphicsExtensions{.png,.pdf,.jpg,.jpeg}
\usepackage{xcolor}
\usepackage[T1]{fontenc}
\graphicspath{{fig/}{img/}}
\usepackage[utf8]{inputenc}
\usepackage{bera}
\usepackage{listings} % benötigt [containsverbatim] bei \begin{frame}!!!!
\definecolor{readingRed}{HTML}{d2002e}
\definecolor{readingGray}{HTML}{555555}
\mode<presentation>
\beamer@compresstrue
\setbeamertemplate{section in head/foot}
{\color{white}\tiny \usebeamerfont{section in head/foot} \textbf{\insertsectionhead}}
\setbeamertemplate{section in head/foot shaded}
{\color{white!75!readingRed}\tiny \tiny \usebeamerfont{section in head/foot}\insertsectionhead}
\setbeamercolor*{mini frame}{fg=white,bg=white}
\defbeamertemplate*{headline}{reading}
{
\begin{beamercolorbox}[ht=2.25ex,dp=3.75ex]{section in head/foot}
\insertnavigation{\paperwidth}
\end{beamercolorbox}%
}%
\setbeamertemplate{navigation symbols}{}
\defbeamertemplate*{frametitle}{reading}
{%
\nointerlineskip%
\usebeamerfont{headline}%
\nointerlineskip%
\begin{beamercolorbox}[wd=\paperwidth,leftskip=.3cm,rightskip=.3cm plus1fil,vmode]{empty}
\usebeamerfont*{frametitle}\insertframetitle%
\ifx\insertframesubtitle\@empty%
\strut\par%
\else
\par{\usebeamerfont*{framesubtitle}{\usebeamercolor[fg]{framesubtitle}\insertframesubtitle}\strut\par}%
\fi%%
\usebeamerfont{headline}%
\vskip.5ex
\end{beamercolorbox}%
\begin{textblock*}{100mm}(.88\textwidth,-0.5cm)
\includegraphics[width=2cm]{reading-logo}
\end{textblock*}
}
\makeatletter
% USEFUL definitions for the author onto the title page
\newcommand\authorFooter[1]{\renewcommand\insertAuthorFooter{#1}}
\newcommand\insertAuthorFooter{}
\newcommand\authorURL[1]{\renewcommand\insertAuthorURL{#1}}
\newcommand\insertAuthorURL{}
\newcommand\slideNumber[1]{\renewcommand\insertSlideNumber{#1}}
\newcommand\insertSlideNumber{\inserttotalframenumber}
\newcommand\venue[1]{\renewcommand\insertVenue{#1}}
\newcommand\insertVenue{}
\newcommand\titleLogo[1]{\renewcommand\insertTitleLogo{#1}}
\newcommand\insertTitleLogo{}
\newcommand\groupLogo[1]{\renewcommand\insertgroupLogo{#1}}
\newcommand\insertgroupLogo{}
\makeatother
\defbeamertemplate*{title page}{customized}[1][]
{
\hspace*{-2cm}
\begin{tikzpicture}
\fill[color=readingGray] (0,0) rectangle (\the\paperwidth+2cm,\the\paperheight);
\node[inner sep=0pt] (logo) at (\the\paperwidth-1cm,\the\paperheight-1cm) {\includegraphics[width=2cm]{reading-white-logo}};
\node[inner sep=0pt, anchor=west,text width=\the\paperwidth-2cm] (title) at (2cm,\the\paperheight-2.2cm) {\usebeamerfont{title}\Huge\textcolor{white}{\inserttitle}};
\node[inner sep=0pt, anchor=west,text width=\the\paperwidth-2cm] (title) at (2cm,2.5cm) {\usebeamerfont{subtitle}%
\textcolor{white}{\insertsubtitle}};
\node[inner sep=0pt, anchor=west,text width=\the\paperwidth-2cm] (title) at (2cm,1.6cm) {
\URLColor{white}{\insertAuthorURL}};
\node[inner sep=0pt, align=center] (author) at (\the\paperwidth/2+0.65cm,4.5cm) {\insertTitleLogo};
\fill[color=readingRed] (2cm,\the\paperheight) rectangle (7cm,\the\paperheight-1.5cm);
\node[inner sep=0pt, anchor=west,text width=4.5cm] (unit) at (2.3cm,\the\paperheight-0.75cm) {\scriptsize \textcolor{white}{\insertinstitute}};
\node[inner sep=0pt, anchor=west] (unit) at (1.5cm,0.25cm) {\tiny \textcolor{white}{Copyright University of Reading}}; % the layout is copyrighted....
\node[inner sep=0pt, anchor=west] (unit) at (1.5cm,0.75cm) {\scriptsize \textcolor{white}{\insertdate}};
\node[inner sep=0pt, anchor=west] (unit) at (7.5cm,0.25cm) {\scriptsize \textcolor{white}{LIMITLESS POTENTIAL \textbar \enskip LIMITLESS OPPORTUNITIES \textbar \enskip LIMITLESS IMPACT}};
\node[inner sep=0pt, anchor=west] (author) at (7.5cm,2.5cm) {\usebeamerfont{author}\textcolor{white}{\insertauthor}};
\node[inner sep=0pt, anchor=west] (author) at (7.5cm,1.75cm) {\usebeamerfont{author}\textcolor{white}{\insertVenue}};
\node[inner sep=0pt] (logo) at (8.5cm,\the\paperheight-1cm) {\insertgroupLogo};
\end{tikzpicture}
)
}
\setbeamertemplate{footline}[text line]{
\hspace*{-1em}
\begin{beamercolorbox}[sep=0.5em,wd=1.01\paperwidth,leftskip=0.2cm,rightskip=0.1cm,ht=2em]{white}
\insertAuthorFooter \hfill \textcolor{readingRed}{LIMITLESS} POTENTIAL \textbar \enskip \textcolor{readingRed}{LIMITLESS} { OPPORTUNITIES} \textbar \enskip \textcolor{readingRed}{LIMITLESS} IMPACT \hspace{2em} \insertframenumber\,/\,\insertSlideNumber
\end{beamercolorbox}
}
\useinnertheme{rectangles}
\setbeamerfont{block title}{size={}}
\setbeamercolor*{palette primary}{fg=white,bg=readingRed}
\setbeamercolor*{palette secondary}{fg=white,bg=readingGray}
\setbeamercolor*{palette tertiary}{fg=black,bg=readingRed}
\setbeamercolor*{palette quaternary}{fg=white,bg=readingRed}
\setbeamercolor*{footlinecolor}{use=structure,fg=white,bg=readingRed}
\setbeamercolor{frametitle}{fg=readingRed}
\setbeamercolor{enumerate item}{fg=readingRed}
\setbeamercolor{enumerate subitem}{fg=readingRed}
\setbeamercolor{enumerate subsubitem}{fg=readingRed}
\setbeamercolor{enumerate subsubsubitem}{fg=readingRed}
\setbeamercolor{item projected}{bg=readingRed, fg=white}
\setbeamercolor{block title}{fg=readingRed}
\setbeamertemplate{itemize item}{\color{readingRed}$\blacksquare$}
\setbeamertemplate{itemize subitem}{\color{readingRed}$\blacktriangleright$}
\setbeamertemplate{itemize subsubitem}{\color{readingRed}\textbullet}
\setbeamercolor*{titlelike}{parent=palette primary}
\setbeamercolor*{separation line}{}
\setbeamercolor*{fine separation line}{}
%% setup of packages
\hypersetup{colorlinks,linkcolor=readingRed,urlcolor=readingRed}
\captionsetup{textfont=footnotesize}%labelformat=empty, format=plain, labelsep=none,
\lstset{
basicstyle=\ttfamily\footnotesize,
numberstyle=\ttfamily\tiny,
frame=single,
numbers=left,
numbersep=1em,
xleftmargin=2em,
language=C,
breaklines=true,
breakatwhitespace=true,
postbreak=\hbox{$\hookrightarrow$ },
showstringspaces=false,
tabsize=2
}
% useful commands and shortcuts
\newenvironment{changemargin}[2]{%
\begin{list}{}{%
\setlength{\topsep}{0pt}%
\setlength{\leftmargin}{#1}%
\setlength{\rightmargin}{#2}%
\setlength{\listparindent}{\parindent}%
\setlength{\itemindent}{\parindent}%
\setlength{\parsep}{\parskip}%
}%
\item[]}{\end{list}}
% Macros to jump around:
\newcommand{\returnSlide}[1]{
\setbeamertemplate{footline}[text line]{
\myfootline{\hyperlink{#1<1>}{\beamerreturnbutton{}}}
}
}
\newcommand{\gotoSlide}[2]{
\hfill \hyperlink{#1<1>}{\beamergotobutton{#2}}
}
\newcommand{\backupSlide}[2]{
\setbeamertemplate{footline}[text line]{
\myfootline{#1\,/\,#2}}
}
% FULL PAGE IMAGE
\newcommand{\fullPageImage}[2]{
\begin{frame}
\frametitle{#1}
\newgeometry{textwidth=12.65cm}
\vspace*{-0.4cm}
\hspace*{-1.05cm}
\begin{minipage}{\textwidth}
\begin{figure}
#2
\end{figure}
\end{minipage}
\restoregeometry
\end{frame}
}
\newcommand{\backupbegin}{
\appendix
\newcounter{framenumberappendix}
\setcounter{framenumberappendix}{\value{framenumber}}
\setbeamertemplate{button}{$\Leftarrow$}
\begin{frame}
\Huge {Appendix}
\end{frame}
}
\newcommand{\backupend}{
\addtocounter{framenumberappendix}{-\value{framenumber}}
\addtocounter{framenumber}{\value{framenumberappendix}}
}
\newcommand{\arrow}{\item[$\Rightarrow$]}
\renewcommand{\emph}[1]{\textit{#1}}
\newcommand{\sectionIntro}{
\begin{frame}{Outline}
\tableofcontents[currentsection,hideothersubsections]%,subsectionstyle=hide/hide/hide
\end{frame}
}
\newcommand{\sectionIntroHidden}{
\begin{frame}{Outline}
\tableofcontents[currentsection,subsectionstyle=hide/hide/hide]
\end{frame}
}
\newcommand{\HREFColor}[3]{\href{#2}{\color{#1}{#3}}}%
\newcommand{\URLColor}[2]{\HREFColor{#1}{#2}{#2}}%
\mode<all>

BIN
talk/fig/background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

133
talk/presentation.tex Normal file
View File

@ -0,0 +1,133 @@
\PassOptionsToPackage{hyphens}{url}
\documentclass[compress,aspectratio=169]{beamer}
\usetheme{Reading}
\usepackage[official]{eurosym}
\usepackage{multirow}
\usepackage{units}
% \usepackage{todonotes} % if you want to make annotations
% Where are graphics to be found
\graphicspath{{../assets/}{./fig/}}
\title{Professional Talks with LaTeX}
\subtitle{-- Work in progress -- }
\authorURL{https://hps.vi4io.org}
\author{\underline{Julian M. Kunkel}, Author 2, Author 3} % Always mark the first author
% if you want to use a logo in the footer:
\authorFooter{Julian M. Kunkel \hspace{0.3cm} \includegraphics[height=1em]{hps-footer}}
\institute{Computer Science Department}
\venue{The name of the venue}
\groupLogo{\includegraphics[width=2cm]{hps-logo}}
\date{2018-05-08}
\titleLogo{\includegraphics[width=16.5cm,height=3cm]{background}
% can span the whole width
\\[-1em]
% If you use images from other sources, always give the reference and license:
\tiny \HREFColor{darkgray}{http://hps.vi4io.org}{Image under CC-BY-4 license}
}
% Members of the university may use:
% http://www.reading.ac.uk/imagebank
% The number of slides, if you want to provide them
%\slideNumber{22}
\newcommand{\comment}[1]{}
\begin{document}
\begin{frame}[plain]
\titlepage
\end{frame}
\begin{frame}{Outline}
\tableofcontents[subsectionstyle=hide/hide]
\end{frame}
\section{Introduction}
\subsection{Motivation}
\begin{frame}{Motivation}
\begin{block}{Goal: Professional presentations}
\begin{itemize}
\item Logical structure
\item Good design
\item Self-speaking slides
\end{itemize}
\end{block}
\begin{block}{Purpose of this slide deck}
\begin{itemize}
\item Illustrates the use of LaTeX Beamer
\item Provides an unofficial template for Reading staff
%\begin{itemize}
%\item Students: Please use the template ReadingStudent due to the copyright of the first page
%\end{itemize}
\item Describes principles how to design presentations
\end{itemize}
\end{block}
\end{frame}
\section{Structure}
\sectionIntro
\subsection{Subsections}
\begin{frame}{Subsections}
\begin{itemize}
\item Subsections help to structure the talk
\item Logical bundling of topics
\item The template renders the color of the active subsection differently
\end{itemize}
\end{frame}
\section{Layout}
\sectionIntro
\begin{frame}{Layout}
\begin{itemize}
\item xx
\end{itemize}
\end{frame}
\begin{frame}{Graphics and Figures}
\begin{figure}[tbp]
\centering
\subfloat[Subcaption A\label{fig:pm}]{\includegraphics[width=4cm]{hps-logo}}
\qquad % create some space
\subfloat[Subcaption B\label{fig:emp}]{\includegraphics[width=4cm]{hps-logo}}
\caption{Some caption}
\end{figure}
\end{frame}
\section{Summary}
\begin{frame}{Summary}
\begin{itemize}
\item LaTeX is easy to use and produces appealing presentations
\item Structure and layout
\end{itemize}
\end{frame}
\backupbegin
\section{Backup Slides}
\begin{frame}{Backup Slides}
\begin{itemize}
\item It is good practice to prepare backup slides
\item Benefit:
\begin{itemize}
\item If you talk too slow, you may show some extra information
\item They may answer detailed questions
\end{itemize}
\end{itemize}
\end{frame}
\backupend
\end{document}