diff --git a/Example.pdf b/Example.pdf new file mode 100644 index 0000000..89a8056 Binary files /dev/null and b/Example.pdf differ diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..bc97a32 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2021 Ricardo Barros Lourenco. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/McMasterU.tex b/McMasterU.tex new file mode 100644 index 0000000..dfbe647 --- /dev/null +++ b/McMasterU.tex @@ -0,0 +1,144 @@ +\documentclass[12pt]{beamer} + +% Specify theme +\usetheme{McMasterU} + +% Start Changes by Ricardo +\setbeamercolor{section in head/foot}{fg=white,bg=black} + +\makeatletter +\setbeamertemplate{headline}{% + \begin{beamercolorbox}[ht=2.25ex,dp=3.75ex]{section in head/foot} + \insertnavigation{\paperwidth} + \end{beamercolorbox}% +}% +\makeatother +% End Changes by Ricardo + + %\setbeamertemplate{footline}[frame number]{} % Uncomment this line if you want to remove the footer from each slide (and replace it with just the slide number (X/Y) in the bottom right of each slide. + +%===============================================================% +% BEGIN YOUR PRESENTATION HERE % +%===============================================================% + +% Title and author information +\title[Short title]{Your Presentation Title} +\author{Your Name} +\institute[]{McMaster University} +\date{\today} + + +% \usepackage[sfmath]{kpfonts} +% \renewcommand*\familydefault{\sfdefault} + +%\setbeamerfont{frametitle}{shape=\scshape} + +%===============================================================% +\begin{document} +%===============================================================% + +\maketitle + + + +%===============================================================% +\section{Lists} +%===============================================================% +\subsection{} +\begin{frame}{Itemized List} + + Itemized lists are punctuated by little shields + + \begin{itemize} + \item Item + \item Item + \begin{itemize} + \item Sub-item + \item Sub-item + \end{itemize} + \item Item + \end{itemize} + +\end{frame} + + + +\begin{frame}{Enumerate} + + \begin{enumerate} + \item Item + \item Item + \begin{enumerate} + \item Sub-item + \end{enumerate} + \end{enumerate} + +\end{frame} + + + +%===============================================================% +\section{Animations} +%===============================================================% +\subsection{} +\begin{frame}{Slide animation} + + Sometimes you want to hide later text/elements of a particular slide to keep the focus on the early part of the slide. + + \bigskip + + \onslide<2>{By having the text shaded out (and not completely missing), your audience can see that you do have some more information that will come shortly.} + +\end{frame} + + + +%===============================================================% +\section{Blocks} +%===============================================================% +\subsection{} +\begin{frame}{Blocks} + + \begin{block}{Regular Block} + Text goes here + \end{block} + + \begin{alertblock}{Alert Block} + Stands out a bit more + \end{alertblock} + + \begin{exampleblock}{Example Block} + Also stands out $y=\beta x+ \varepsilon$ + \end{exampleblock} + +\end{frame} + + + +%===============================================================% +\appendix +%===============================================================% + +{\BackgroundShaded +\begin{frame} +% BLANK FRAME AT THE END +\end{frame} +} + + + +%===============================================================% +\section{First appendix section} +%===============================================================% + +\begin{frame}{Appendix sample} + + Note that this slide doesnt count towards the total slides shown in the regular presentation + +\end{frame} + + + +%===============================================================% +\end{document} +%===============================================================% \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..2beee69 --- /dev/null +++ b/README.md @@ -0,0 +1,31 @@ +# Unofficial-McMasterU-Beamer-Theme +Files to theme your LaTeX Beamer presentation to match the McMaster University brand guidelines. + +*Attention*: This theme is unofficial. It is in no way endorsed by McMaster University. + +## Contact details ## + +Created by Ricardo B Lourenco (2021), based on previous work by @michaelkirker . Email: + +## Repository structure ## + +* /graphics/ + * Folder containing the graphical images used in the slides. +* beamerthemeMcMasterU.sty + * Beamer theme style file. +* McMasterU.tex + * Template, with some possible usages of this Beamer-derived template. +* Example.pdf + * Rendered McMasterU.tex example. + +## Usage ## +When using [Overleaf](https://www.overleaf.com), you may fork this project on github, load it to your overleaf account, and start editing the McMasterU.tex file right out of the bat. + +More experienced users should refer to [BEAMER project](https://github.com/josephwright/beamer), for more detailed usage. This project is set for pdflatex rendering. + +## License + +Note that this theme is under a MIT license, is unofficial and not endorsed by McMaster University. I won't be providing support, but feel free to open issues if you feel needing to. + +## Acknowledgements +This is an open source derived work, and the author acknowledges the contribution of work done by @josephwright and the [BEAMER developers](https://github.com/josephwright/beamer), as well as @michaelkirker . Thank you :) \ No newline at end of file diff --git a/beamerthemeMcMasterU.sty b/beamerthemeMcMasterU.sty new file mode 100644 index 0000000..0ac6d86 --- /dev/null +++ b/beamerthemeMcMasterU.sty @@ -0,0 +1,378 @@ +%============================================================================================% +% UNOFFICIAL MCMASTER UNIVERSITY BEAMER THEME +%============================================================================================% +% +% Created by: Ricardo Barros Lourenco (barroslr@mcmaster.ca) +% +% Based on the BEAMER template; +% and modifications by: Michael Kirker (https://github.com/michaelkirker/Unofficial-UChicago-Beamer-Theme). +% +%============================================================================================% + + + +%============================================================================================% +% Packages that will be used +%============================================================================================% +\usepackage{xcolor} % Create custom colours +\usepackage[overlay]{textpos} % Position logo in each slide header +\usepackage{tikz} +\usepackage[export]{adjustbox} +\usepackage{lmodern} +\usepackage{hyperref} +\usepackage{graphicx} +\usetikzlibrary{shadings} +%\usepackage{transparent} + + + + + + +%============================================================================================% +% Change some global settings +%============================================================================================% + +% Make hidden upcoming elements in a slide semi-transparent rather than completely invisible + +\mode{ + \setbeamercovered{transparent} + } + + +% Specify baseline theme from which we will build off + +\usetheme{Madrid} + + +% Remove the navigation symbols from the lower right corner of each slide + +\beamertemplatenavigationsymbolsempty + + + +%============================================================================================% +% Define colors +%============================================================================================% +% Original colors taken from http://communications.uchicago.edu/identity/color-palette + +% Signature Color Palette + \definecolor{ChicagoMaroon}{RGB}{128,0,0} + \definecolor{ChicagoDarkGray}{RGB}{118,118,118} + \definecolor{ChicagoLightGray}{RGB}{214,214,206} + +% Secondary Color Palette + \definecolor{ChicagoRed}{RGB}{143,57,49} + \definecolor{ChicagoOrange}{RGB}{193,102,34} + \definecolor{ChicagoLightGreen}{RGB}{138,157,69} + \definecolor{ChicagoDarkGreen}{RGB}{101,109,51} + \definecolor{ChicagoBlue}{RGB}{21,95,131} + \definecolor{ChicagoBlueLight}{RGB}{91,150,173} + \definecolor{ChicagoBlueDark}{RGB}{21,67,95} + \definecolor{ChicagoViolet}{RGB}{53,14,32} + +% Colors for the Shading + \definecolor{RedShade1}{RGB}{138,0,0} % Colors taken from UChicago Powerpoint slides + \definecolor{RedShade2}{RGB}{68,0,0} + + +% For the McMaster version, we use the guidelines : https://web.archive.org/web/20201027203234/https://brand.mcmaster.ca/app/uploads/2019/04/brand-guidelines.pdf + +\setbeamercolor*{frametitle}{fg=white} + +\setbeamercolor*{title}{use=structure,fg=white,bg=ChicagoMaroon} + + +%============================================================================================% +% Assign colors +%============================================================================================% + +% Specify base color of the presentation + \usecolortheme[named=ChicagoDarkGray]{structure} + +% Specify other specific colors + \setbeamercolor{block title alerted}{fg=white,bg=ChicagoBlue} + \setbeamercolor{block body alerted}{bg=ChicagoBlueLight!50!white} + + \setbeamercolor{block title}{bg=ChicagoMaroon,fg=white} + \setbeamercolor{block body}{bg=ChicagoLightGray} + + \setbeamercolor{block title example}{bg=ChicagoDarkGreen,fg=white} + \setbeamercolor{block body example}{bg=ChicagoLightGreen,fg=white} + + \setbeamercolor{author in head/foot}{bg=ChicagoMaroon,fg=white} + \setbeamercolor{title in head/foot}{bg=ChicagoDarkGray,fg=white} + \setbeamercolor{date in head/foot}{bg=ChicagoMaroon,fg=white} + \setbeamercolor{date in head/foot}{bg=ChicagoLightGray,fg=ChicagoMaroon} + + \setbeamertemplate{headline}{ + \begin{beamercolorbox}{section in head/foot} \vskip2pt\insertnavigation{\paperwidth}\vskip2pt + \end{beamercolorbox}} + + + +%============================================================================================% +% Theme the blocks +%============================================================================================% + +% Use sharp right angle corners rather than the rounded corners +\setbeamertemplate{blocks}[default] + + + +%============================================================================================% +% Adjust fonts +%============================================================================================% + +% Arial is a proprietary font, therefore shifting to TeX Gyre Heros (https://tug.org/FontCatalogue/texgyreheros/) - Following Mac Guideline book too +\usepackage{tgheros} +\renewcommand{\familydefault}{\sfdefault} + +% Font for the presentation title +\setbeamerfont{title}{size = \huge} + +% Font of the frame titles +\setbeamerfont{frametitle}{size = \Large} + + + +%============================================================================================% +% Inner theme +%============================================================================================% +%%%%%% +% Here we am using the rounded theme for the overall "feel" of the presentation. You can change the specific details by editing that particular option as we have done below. +\useinnertheme{rounded} + + +\setbeamercolor{button}{bg=ChicagoLightGray,fg=white} + + +%============================================================================================% +% Create slide title bar +%============================================================================================% +% Slide title bar features a blend of reds and a watermark of the shield logo on the right hand side + +% Create Shading: + +\colorlet{titleleft}{RedShade1} +\colorlet{titleright}{RedShade2} + +\makeatletter +\pgfdeclarehorizontalshading[titleleft,titleright]{beamer@frametitleshade}{\paperheight}{% + color(0pt)=(titleleft); + %color(0.5\paperwidth)=(titleleft); + color(\paperwidth)=(titleright)} + +\defbeamertemplate*{frametitle}{horizontal shading} +{% + \nointerlineskip% + %\vskip-2pt% + \hbox{\leavevmode + \advance\beamer@leftmargin by -12bp% + \advance\beamer@rightmargin by -12bp% + \beamer@tempdim=\textwidth% + \advance\beamer@tempdim by \beamer@leftmargin% + \advance\beamer@tempdim by \beamer@rightmargin% + \hskip-\Gm@lmargin\hbox{% + \setbox\beamer@tempbox=\hbox{\begin{minipage}[b]{\paperwidth}% + \vbox{}\vskip-.75ex% + \leftskip0.3cm% + \rightskip0.3cm plus1fil\leavevmode + \insertframetitle% + \ifx\insertframesubtitle\@empty% + \strut\par% + \else + \par{\usebeamerfont*{framesubtitle}{\usebeamercolor[fg]{framesubtitle}\insertframesubtitle}\strut\par}% + \fi% + \nointerlineskip + \vbox{}% + \end{minipage}}% + \beamer@tempdim=\ht\beamer@tempbox% + \advance\beamer@tempdim by 2pt% + \begin{pgfpicture}{0pt}{0pt}{\paperwidth}{\beamer@tempdim} + \usebeamercolor{frametitle right} + \pgfpathrectangle{\pgfpointorigin}{\pgfpoint{\paperwidth}{\beamer@tempdim}} + \pgfusepath{clip} + \pgftext[left,base]{\pgfuseshading{beamer@frametitleshade}} + \end{pgfpicture} + \hskip-\paperwidth% + \box\beamer@tempbox% + }% + \hskip-\Gm@rmargin% + }% + \vskip-2pt +} +\makeatother + + +% Add shield logo + + +\addtobeamertemplate{frametitle}{}{% + \begin{textblock*}{1.2em}[1,1](0.97\paperwidth,0mm) + \includegraphics[height=1.1em,width=1.1em,keepaspectratio]{graphics/mcmaster-shield-only-title.png} + \end{textblock*} +} + + + +%============================================================================================% +% Customise enumerates and itemized lists +%============================================================================================% + +% Enumerated lists: +%--------------------- + +\setbeamertemplate{enumerate items}[default] % Use numbers (e.g. "1.") + +\setbeamercolor*{enumerate item}{fg=ChicagoMaroon} +\setbeamercolor*{enumerate subitem}{fg=ChicagoMaroon} +\setbeamercolor*{enumerate subsubitem}{fg=ChicagoMaroon} + + + +% Itemized lists: +%--------------------- + +% Create "shield" shape (Cant remember where I found this code) + +\newcommand\shield{ \tikz [baseline] \path [fill=ChicagoMaroon] (0,1.3ex) -- (0,0.56ex) arc [radius=0.5ex, start angle=-180, end angle=0] -- (1ex,1.3ex) -- cycle ; } + +\defbeamertemplate{itemize item}{image}{\shield} +\defbeamertemplate{itemize subitem}{image}{\shield} +\defbeamertemplate{itemize subsubitem}{image}{\shield} + +\setbeamertemplate{itemize item}[image] +\setbeamertemplate{itemize subitem}[image] +\setbeamertemplate{itemize subsubitem}[image] + +% Use ChicagoMaroon color when the user defines their own itemize marker +\setbeamercolor*{itemize item}{fg=ChicagoMaroon} +\setbeamercolor*{itemize subitem}{fg=ChicagoMaroon} +\setbeamercolor*{itemize subsubitem}{fg=ChicagoMaroon} + + + +% Space out itemized items a bit more +%--------------------- + +\newlength{\wideitemsep} +\setlength{\wideitemsep}{\itemsep} +\addtolength{\wideitemsep}{0.25em} +\let\olditem\item +\renewcommand{\item}{\setlength{\itemsep}{\wideitemsep}\olditem} + + + +%============================================================================================% +% Create title slide +%============================================================================================% + +% Customize the text layout: + +\setbeamerfont{title}{size=\huge} +\defbeamertemplate*{title page}{customized}[1][] +{ + \usebeamerfont{title}\usebeamercolor[white]{title}\inserttitle\par + \usebeamerfont{subtitle}\usebeamercolor[white]{subtitle}\insertsubtitle\par + \bigskip + \bigskip + \bigskip + \bigskip + \centering + \usebeamerfont{author}\insertauthor\par + \smallskip + \usebeamerfont{institute}\insertinstitute\par + \bigskip + \usebeamerfont{date}\insertdate\par + \usebeamercolor[fg]{titlegraphic}\inserttitlegraphic + +} + + +% Create title slide background + +\newcommand\BackgroundShaded{% +\setbeamertemplate{background}{% +\begin{tikzpicture}[every node/.style={inner sep=0,outer sep=0}] + \shade [left color=RedShade1,right color=RedShade2] + (0,0) rectangle (\paperwidth,\paperheight); + \node [above left] (russell) at (\paperwidth,0) %(10,3.5) + {\includegraphics[height=.8\paperheight]{graphics/mcmaster-shield-only-background}}; + \end{tikzpicture} +}} + + + +\renewcommand\maketitle{ + {\BackgroundShaded + \begin{frame} + \titlepage + \end{frame} + } +} + + + + + +%============================================================================================% +% Customize \tableofcontent +%============================================================================================% +% Simplier design. Maroon bold numbers, and black text + +\setbeamerfont{section number projected}{series=\bfseries,size=\normalsize} +\setbeamercolor{section number projected}{bg=white,fg=ChicagoMaroon} +\setbeamertemplate{sections/subsections in toc}[square] +\setbeamercolor{section in toc}{fg=black} +\setbeamercolor{subsection in toc}{fg=black} + + + +%============================================================================================% +% Dont count appendix slides in the number of total slides displayed on lower right corner of each slide. +%============================================================================================% + +\makeatletter + +\let\appendixtotalframenumber\empty +\def\mainend{-1} +\let\appendixorig\appendix + +\def\appendix{ + \edef\mainend{\theframenumber} + \immediate\write\@auxout{\string\global\string\@namedef{mainendframenumber}{\mainend}} + \appendixorig + \def\inserttotalframenumber{\appendixtotalframenumber}% + \setcounter{framenumber}{0} +} + +\def\pageatend{ + \edef\appendixend{\theframenumber} + \ifnum\mainend>0% + \immediate\write\@auxout{\string\global\string\@namedef{appendixtotalframenumber}{\appendixend}}% + \immediate\write\@auxout{\string\global\string\@namedef{inserttotalframenumber}{\mainend}}% + \immediate\write\@auxout{\string\@writefile{nav}{\noexpand \headcommand {% + \noexpand \def\noexpand \inserttotalframenumber{\mainend}}}}% + \immediate\write\@auxout{\string\@writefile{nav}{\noexpand \headcommand {% + \noexpand \def\noexpand \appendixtotalframenumber{\appendixend}}}}% + \else + \fi +} + + +\AtEndDocument{\pageatend} +\makeatother + + + + +%============================================================================================% +% Fix the coloring of items in a ToC +%============================================================================================% +\setbeamerfont{section number projected}{% + series=\bfseries,size=\normalsize} +\setbeamercolor{section number projected}{bg=white,fg=ChicagoMaroon} +\setbeamertemplate{sections/subsections in toc}[square] +\setbeamercolor{section in toc}{fg=black} +\setbeamercolor{subsection in toc}{fg=black} diff --git a/graphics/mcmaster-shield-only-background.png b/graphics/mcmaster-shield-only-background.png new file mode 100644 index 0000000..86ac659 Binary files /dev/null and b/graphics/mcmaster-shield-only-background.png differ diff --git a/graphics/mcmaster-shield-only-title.png b/graphics/mcmaster-shield-only-title.png new file mode 100644 index 0000000..60a4316 Binary files /dev/null and b/graphics/mcmaster-shield-only-title.png differ