Commit 4fbb9978 authored by Francesco Verdoja's avatar Francesco Verdoja

initial commit

parents
This source diff could not be displayed because it is too large. You can view the blob instead.
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{aaltoslides}
\RequirePackage{lastpage}
\RequirePackage{aaltologo}
\LoadClass{beamer}
\logo{}
\newcommand{\logomark}{!}
\newcommand{\logocolor}{aaltoRed}
\newcommand{\largelogoscale}{.38}
\newcommand{\smalllogoscale}{.38}
\newcommand{\titlecolor}{white}
\newcommand{\largelogo}
{\AaltoLogoLarge{\largelogoscale}{\logomark}{\logocolor}}
\newcommand{\smalllogo}
{\AaltoLogoSmall{\smalllogoscale}{\logomark}{\logocolor}}
\newcommand{\titlelogo}
{\AaltoLogoLarge{\largelogoscale}{\logomark}{\titlecolor}}
\newcommand{\titlebackground}
{\color{primarycolor}\rule{\paperwidth}{\paperheight}}
\newcommand\aaltofootertext[3]
{\def\footfrow{#1}\def\footsrow{#2}\def\foottrow{#3}}
\aaltofootertext
{\beamer@shorttitle}
{\beamer@shortauthor, \insertdate}
{\arabic{page}/\pageref{LastPage}}
\newif\iffooter\footertrue
\newif\ifnormaltitle\normaltitlefalse
% LENGTHS
\newlength\aaltofooterplace \setlength\aaltofooterplace{8.5cm}
\newlength\aaltofooterruleheight \setlength\aaltofooterruleheight{2.5pt}
\newlength\aaltofooterrulewidth \setlength\aaltofooterrulewidth{12cm}
\newlength\aaltotitlesep \setlength\aaltotitlesep{0.4cm}
\newlength\aaltotitleentrysep \setlength\aaltotitleentrysep{0.2cm}
\newlength\aaltoframemargin \setlength{\aaltoframemargin}{0.8cm}
\newlength\largelogoheight \setlength\largelogoheight{1.5cm}
\newlength\smalllogoheight \setlength\smalllogoheight{0.5cm}
% OPTIONS
% Primary color
\DeclareOption{first=yellow}{\definecolor{primarycolor}{named}{aaltoYellow}}
\DeclareOption{first=red}{\definecolor{primarycolor}{named}{aaltoRed}}
\DeclareOption{first=blue}{\definecolor{primarycolor}{named}{aaltoBlue}}
\DeclareOption{first=gray}{\definecolor{primarycolor}{named}{aaltoGray}}
\DeclareOption{first=lgreen}{\definecolor{primarycolor}{named}{aaltoLightGreen}}
\DeclareOption{first=green}{\definecolor{primarycolor}{named}{aaltoGreen}}
\DeclareOption{first=turquoise}
{\definecolor{primarycolor}{named}{aaltoTurquoise}}
\DeclareOption{first=purple}{\definecolor{primarycolor}{named}{aaltoPurple}}
\DeclareOption{first=fuchsia}{\definecolor{primarycolor}{named}{aaltoFuchsia}}
\DeclareOption{first=orange}{\definecolor{primarycolor}{named}{aaltoOrange}}
% Secondary color
\DeclareOption{second=yellow}{\definecolor{secondarycolor}{named}{aaltoYellow}}
\DeclareOption{second=red}{\definecolor{secondarycolor}{named}{aaltoRed}}
\DeclareOption{second=blue}{\definecolor{secondarycolor}{named}{aaltoBlue}}
\DeclareOption{second=gray}{\definecolor{secondarycolor}{named}{aaltoGray}}
\DeclareOption{second=lgreen}
{\definecolor{secondarycolor}{named}{aaltoLightGreen}}
\DeclareOption{second=green}{\definecolor{secondarycolor}{named}{aaltoGreen}}
\DeclareOption{second=turquoise}
{\definecolor{secondarycolor}{named}{aaltoTurquoise}}
\DeclareOption{second=purple}{\definecolor{secondarycolor}{named}{aaltoPurple}}
\DeclareOption{second=fuchsia}
{\definecolor{secondarycolor}{named}{aaltoFuchsia}}
\DeclareOption{second=orange}{\definecolor{secondarycolor}{named}{aaltoOrange}}
% Logo
\DeclareOption{logo=yellowexc}{%
\renewcommand{\logomark}{!}
\renewcommand{\logocolor}{aaltoYellow}
}
\DeclareOption{logo=yellowquo}{%
\renewcommand{\logomark}{''}
\renewcommand{\logocolor}{aaltoYellow}
}
\DeclareOption{logo=yellowque}{%
\renewcommand{\logomark}{?}
\renewcommand{\logocolor}{aaltoYellow}
}
\DeclareOption{logo=redexc}{%
\renewcommand{\logomark}{!}
\renewcommand{\logocolor}{aaltoRed}
}
\DeclareOption{logo=redquo}{%
\renewcommand{\logomark}{''}
\renewcommand{\logocolor}{aaltoRed}
}
\DeclareOption{logo=redque}{%
\renewcommand{\logomark}{?}
\renewcommand{\logocolor}{aaltoRed}
}
\DeclareOption{logo=blueexc}{%
\renewcommand{\logomark}{!}
\renewcommand{\logocolor}{aaltoBlue}
}
\DeclareOption{logo=bluequo}{%
\renewcommand{\logomark}{''}
\renewcommand{\logocolor}{aaltoBlue}
}
\DeclareOption{logo=blueque}{%
\renewcommand{\logomark}{?}
\renewcommand{\logocolor}{aaltoBlue}
}
\DeclareOption{randlogo}{%
\renewcommand{\largelogo}{\AaltoLogoRandomLarge{\largelogoscale}}
\renewcommand{\smalllogo}{\AaltoLogoRandomSmall{\smalllogoscale}}
}
\DeclareOption{nologo}{%
\renewcommand{\largelogo}{\vspace{\largelogoheight}}
\renewcommand{\smalllogo}{\vspace{\smalllogoheight}}
\renewcommand{\titlelogo}{\vspace{\largelogoheight}}
}
% Other options
\DeclareOption{nofoot}{\footerfalse}
\DeclareOption{normaltitle}{\normaltitletrue}
\DeclareOption{blacktitle}{\renewcommand{\titlecolor}{aaltoBlack}}
\ExecuteOptions{first=blue,second=red,logo=redexc}
\ProcessOptions
\newcommand{\aaltosl@name}{aaltoslides}
\newcommand{\aaltosl@date}{November 23, 2017}
\newcommand{\aaltosl@version}{Version 2.0}
\newcommand{\aaltosl@id}{\aaltosl@version\space (\aaltosl@date)}
\typeout{********************************************************^^J%
'\aaltosl@name'\space Document Class\space\aaltosl@id^^J%
Author: Francesco Verdoja (francesco.verdoja@aalto.fi)^^J%
Based on aaltoslides by: Kimmo Jarvinen (kimmo.jarvinen@tkk.fi)^^J%
********************************************************^^J%
}
% SOME CUSTOMIZATION
\setbeamertemplate{navigation symbols}{} % Remove navigation symbols
\setbeamertemplate{frametitle continuation}[from second]
\setbeamersize{text margin left=\aaltoframemargin, text margin
right=\aaltoframemargin}
\setbeamertemplate{frametitle}{\vspace{0.4cm}\insertframetitle}
\iffooter\setbeamertemplate{footline}{\vspace{1.1cm}}\fi % B. Brumley's fix to
%the "text too low problem"
% Set fonts
\setbeamerfont{title}{size=\Large, series=\bfseries}
\setbeamerfont{frametitle}{size=\Large, series=\bfseries}
% Set colors
\setbeamercolor{structure}{fg=primarycolor}
\setbeamercolor{alerted text}{fg=secondarycolor}
\setbeamercolor{example text}{fg=secondarycolor}
% FOOTER
\usebackgroundtemplate{
\iffooter
\hspace{0.3cm}
\begin{minipage}{\aaltofooterrulewidth}
\begin{center}
\vspace{\aaltofooterplace}
{\color{primarycolor}\rule{\aaltofooterrulewidth}{\aaltofooterruleheight}}
\end{center}
\vspace{-0.3cm}
\smalllogo
\vspace{-0.9cm}
\begin{flushright}
\Tiny \bfseries
\footfrow\\
{\color{aaltoGray} \footsrow\\
\foottrow\\}
\end{flushright}
\end{minipage}
\fi
}
% TITLEPAGE
\ifnormaltitle
% More traditional title page
\newcommand{\aaltotitleframe}{
{\usebackgroundtemplate{}
\frame{
\vspace{0.6cm}
\largelogo
\vspace{0.3cm}
\titlepage
}}}
\else
\newcommand{\aaltotitleframe}{
{\usebackgroundtemplate{\titlebackground}
\frame[t]{
\vspace{0.6cm}
\titlelogo
\vspace{1.2cm}
{\color{\titlecolor}
{\bfseries \Large \inserttitle} \\[\aaltotitlesep]
\insertauthor \\[\aaltotitleentrysep]
\footnotesize \insertinstitute \\[\aaltotitleentrysep]
\insertdate
}
}}}
\fi
\ No newline at end of file
File added
% SET THE SCHOOL TO BE USED IN THE AALTO LOGO
% for all possible values of this option
% see aaltologo package documentation
% - Comment to have the Aalto logo without school indication
\PassOptionsToPackage{ELEC}{aaltologo}
\documentclass[first=purple,second=orange,randlogo]{aaltoslides}
%\documentclass{aaltoslides} % DEFAULT
\usepackage{url}
\title[\texttt{aaltoslides} for Beamer]
{How to use the \texttt{aaltoslides} Beamer template}
\author[F. Verdoja]{Francesco Verdoja}
\institute{Dept. of Electrical Engineering and Automation\\
francesco.verdoja@aalto.fi}
\date{\today}
% UNCOMMENT TO USE CUSTOM IMAGE AS BACKGROUND FOR THE TITLE SLIDE
%\renewcommand{\titlebackground}
% {\includegraphics[width=\paperwidth,height=\paperheight]{img.png}}
% CHANGE FOOTER RIGHT SIDE INFORMATION
% use: \aaltofootertext{first row}{second row}{third row}
% by default first row is black, others are gray
\makeatletter
\aaltofootertext
{\beamer@shorttitle}
{\beamer@shortauthor, \aaltosl@version}
{\arabic{page}/\pageref{LastPage}}
\makeatother
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\aaltotitleframe
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Introduction}
\begin{itemize}
\item The purpose of \texttt{aaltoslides} is to allow us who use Beamer to
easily produce slides that somewhat look like the official Aalto slides
\item \texttt{aaltoslides} has \alert{not} been approved by anybody
responsible of the Aalto visual style
\item \texttt{aaltoslides} only resembles the official Aalto Powerpoint
templates: font (Helvetica, not Nimbus Sans), sizes of the logos, footer
bars, etc. may differ from the official ones
\item This version is based on \texttt{aaltoslides} by Kimmo Jarvinen
(available in the Aalto wiki) but this uses the \texttt{aaltologo} package
to generate the Aalto logo and has some other minor tweaks
\item All comments are welcome! (francesco.verdoja@aalto.fi)
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Title Page}
\begin{itemize}
\item The largest difference to normal Beamer slides is that the title page
is produced with a special command \texttt{\textbackslash aaltotitleframe};
this command should be used as it is. \alert{Don't put it in a frame
environment!!!} See \texttt{example.tex}
\item By default, \texttt{aaltoslides} uses a title page having white text
on a monochrome background of the color defined by the option
\texttt{first=$\star$}. See next slide
\item An image can be used as background by redefining the command
\texttt{titlebackground}; for an example, see \texttt{example.tex}
\item Black text is used with the option: \texttt{blacktitle}
\item A more traditional looking title page can be selected with the
option: \texttt{normaltitle}
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Aalto Colors}
\begin{itemize}
\item Colors are defined with options: \texttt{first=$\star$} and
\texttt{second=$\star$} where $\star$ is one of the following:\\
{\color{aaltoYellow}Yellow},
{\color{aaltoRed}Red},
{\color{aaltoBlue}Blue},
{\color{aaltoGray}Gray},
{\color{aaltoLightGreen}LightGreen},
{\color{aaltoGreen}Green},
{\color{aaltoTurquoise}Turquoise},
{\color{aaltoPurple}Purple},
{\color{aaltoFuchsia}Fuchsia}, or
{\color{aaltoOrange}Orange}
\item The first color is the primary color (titles, the footer bar, \ldots)
and the second color is used in alerted texts and examples
\item Default colors are: {\color{aaltoBlue}Blue} and {\color{aaltoRed}Red}
\item Colors can be used also with the command: \texttt{\textbackslash
color\{aalto}$\star$\texttt{\}}. For example,
\texttt{\{\textbackslash color\{aaltoTurquoise\}some text\}}
gives {\color{aaltoTurquoise}some text}
\item The rules for choosing colors from the Aalto color circle are not
checked (two adjacent colors should not be used)
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Logo}
\begin{itemize}
\item The logo to be used by \texttt{aaltoslides} can be selected with the
option \texttt{logo=$\star\circ$} where $\star$ is
{\color{aaltoYellow}yellow}, {\color{aaltoRed}red}, or
{\color{aaltoBlue}blue}, and $\circ$ is either exc, quo, or que for !, ",
or ?, respectively; for example, \texttt{logo=yellowquo}
\item By default the logo is set to \texttt{logo=redexc}
\item Using the option \texttt{randlogo} will randomly change the logo
color and mark on each frame.
\item All logos can be removed with the option: \texttt{nologo}
\item Logo on the title page always follows the same color as the text
\item By default, the logo doesn't include include any school. To set the
school, the command \texttt{\textbackslash
PassOptionsToPackage\{$\diamond$\}\{aaltologo\}} should be put \alert{as
first line} in the document (even before the \texttt{documentclass}); for
possible values of $\diamond$ please look at the \texttt{aaltologo}
documentation
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Footer}
\begin{itemize}
\item By default, the slides have a footer with a logo on the left and an
optional three row text\footnote{The first row is highlighted with black by
default. To remove this, simply change the color of the first argument of
\texttt{\textbackslash aaltofootertext\{\}\{\}\{\}} with
\texttt{\textbackslash color\{aaltoGray\}}} on the right
\item The footer text is set up with the command: \texttt{\textbackslash
aaltofootertext\{\}\{\}\{\}}
\item The footer can be removed with the option: \texttt{nofoot}
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Lengths}
\begin{itemize}
\item \texttt{aaltoslides} defines the following lengths:
\texttt{\textbackslash aaltofooterplace},
\texttt{\textbackslash aaltofooterruleheight},
\texttt{\textbackslash aaltofooterrulewidth},
\texttt{\textbackslash aaltotitlesep},
\texttt{\textbackslash aaltotitleentrysep},
\texttt{\textbackslash aaltoframemargin},
\texttt{\textbackslash largelogoheight}, and
\texttt{\textbackslash smalllogoheight}
\item The appearance of the slides can be changed by modifying the lengths
with \texttt{\textbackslash setlength} or \texttt{\textbackslash
addtolength}
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Some Examples}
\begin{itemize}
\item Normal text
\item \alert{Alerted text}
\end{itemize}
\begin{block}{Block 1}
Text
\end{block}
\begin{example}
Text
\end{example}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment