From 1befaebeb44676788098841c9a4c3a81e2d9d0a7 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Thu, 30 Mar 2023 14:30:01 -0700 Subject: ported from previous version --- Makefile | 2 + README.md | 3 ++ beamerthemeUVic.sty | 82 +++++++++++++++++++++++++++++++++++++++ images/UVic_logo_BW_reversed.pdf | Bin 0 -> 12302 bytes main.pdf | Bin 0 -> 22584 bytes main.tex | 82 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 169 insertions(+) create mode 100644 Makefile create mode 100644 README.md create mode 100644 beamerthemeUVic.sty create mode 100644 images/UVic_logo_BW_reversed.pdf create mode 100644 main.pdf create mode 100644 main.tex diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b3d3faf --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +all: + latexmk -shell-escape -xelatex -interaction=nonstopmode -synctex=1 -pretex="\newif\ifnotes \notesfalse" -usepretex main.tex \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..f563548 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# UVic LaTeX beamer template + +Forked from Nicholas Bruce's version on Overleaf. diff --git a/beamerthemeUVic.sty b/beamerthemeUVic.sty new file mode 100644 index 0000000..b29939d --- /dev/null +++ b/beamerthemeUVic.sty @@ -0,0 +1,82 @@ +% beamerthemeUVic.sty v1.0 (February 27, 2021) +% by Nicholas Bruce (nsbruce@uvic.ca) +% +% based off of the beamerthemeUCBerkeley by Overleaf +% colors, background, typography from the UVic Edge Brand as of Feb. 2021 + +\ProvidesPackage{beamerthemeUVic} + +\RequirePackage{silence} +\WarningsOff[mathdesign/mdbch] + +\RequirePackage{etoolbox} +\setbeamertemplate{navigation symbols}{} +\setbeamertemplate{caption}[numbered] + +\RequirePackage{fontspec} +% \setromanfont{Verdana} +% \setsansfont{Open Sans Regular} + +\RequirePackage{tikz} + +\definecolor{UVicBlue}{RGB}{0,94,184} +\definecolor{UVicYellow}{RGB}{234,170,0} +\definecolor{UVicRed}{RGB}{210,38,48} +\definecolor{UVicDarkBlue}{RGB}{0,46,93} +\definecolor{UVicEngineering}{RGB}{255,117,0} +\definecolor{UVicTableBlue1}{RGB}{204,230,255} +\definecolor{UVicTableBlue2}{RGB}{230,243,255} + +\setbeamertemplate{title page}[default][left] +\setbeamerfont{title}{family=\sffamily,size=\Huge} +\setbeamerfont{author}{size=\Large} + +\setbeamersize{text margin left=2em, text margin right=2em} + +\setbeamertemplate{frametitle}{\vskip0.1\paperheight\insertframetitle} +\setbeamerfont{frametitle}{family=\sffamily,series=\mdseries,size=\LARGE} +\setbeamerfont{block title}{family=\sffamily,size=\large} +\setbeamercolor{titlelike}{fg=UVicDarkBlue} +\setbeamerfont{normal text}{family=\rmfamily} +\setbeamercolor{normal text}{fg=UVicDarkBlue} +\setbeamercolor{structure}{fg=UVicDarkBlue} +\setbeamercolor{block title}{fg=UVicBlue} + +\setbeamertemplate{itemize item}{\textbullet} +\setbeamertemplate{itemize subitem}{--} +\setbeamertemplate{itemize subsubitem}{\textbullet} +\setlength{\leftmargini}{1.25em} +\setlength{\leftmarginii}{1em} +\setlength{\leftmarginiii}{1em} + +\pgfdeclareimage[height=0.07\paperheight]{logo}{images/UVic_logo_BW_reversed.pdf} + +\usetikzlibrary{calc} +\setbeamertemplate{background}{% +\begin{tikzpicture}[overlay,remember picture] + \fill[UVicDarkBlue] (current page.south west) -- ++(0, 0.10\paperheight) -- ++(\paperwidth, 0) -- (current page.south east) -- cycle; + \fill[UVicBlue] ($ (current page.south west) + (0.708333\paperwidth, 0)$) -- ++(-0.18055\paperwidth, 0) -- ++(40:0.15557\paperheight) -- ++(0.17\paperwidth, 0) -- cycle; + \fill[UVicYellow] (current page.south east) -- +(-0.12\paperwidth, 0) -- +(-0.12\paperwidth,0.1\paperheight) -- +(\paperwidth, 0.1\paperheight) -- cycle; + \fill[UVicRed] ($ (current page.south west) + (0.88888\paperwidth, 0)$) -- ++(-0.125\paperwidth, 0) -- ++(45:0.14142\paperheight) -- ++(0.1255\paperwidth, 0) -- cycle; + \node[anchor=south west,inner sep=0pt,draw=none,xshift=0.055\paperheight,yshift=0.015\paperheight] at (current page.south west) {\pgfuseimage{logo}};% +\end{tikzpicture}% +} + +\setbeamertemplate{footline}{% +\vskip0.15\paperheight +} + +\newcommand{\smallframetitle}{% + \setbeamertemplate{frametitle}{\vskip0.15\paperheight\insertframetitle} + \setbeamerfont{frametitle}{size=\large,series=\bfseries} +} +\newcommand{\normalframetitle}{% + \setbeamertemplate{frametitle}{\vskip0.2\paperheight\insertframetitle} + \setbeamerfont{frametitle}{size=\LARGE,series=\mdseries} +} + +\renewcommand{\arraystretch}{1.2} +\newcommand{\tableheadrow}{\rowcolor{UVicYellow}} +\newcommand{\tableheadcol}[1]{{\bfseries\color{white}#1}} +% \rowcolors{2}{UVicTableBlue1}{UVicTableBlue2} +\AtBeginEnvironment{tabular}{\color{black}} \ No newline at end of file diff --git a/images/UVic_logo_BW_reversed.pdf b/images/UVic_logo_BW_reversed.pdf new file mode 100644 index 0000000..9e4d778 Binary files /dev/null and b/images/UVic_logo_BW_reversed.pdf differ diff --git a/main.pdf b/main.pdf new file mode 100644 index 0000000..4d1c3c6 Binary files /dev/null and b/main.pdf differ diff --git a/main.tex b/main.tex new file mode 100644 index 0000000..a24664b --- /dev/null +++ b/main.tex @@ -0,0 +1,82 @@ +\documentclass[8pt,xcolor={table,dvipsnames,t}]{beamer} +\usepackage{graphicx} +\usepackage{parskip} +\usepackage{amsmath} +\usepackage{amssymb} +\usepackage{environ} +\usepackage{tcolorbox} +\usepackage{caption} +\usepackage{subcaption} +\usepackage{tikz,ifthen} +\usepackage{xparse} +\usepackage{listings} +\usepackage{minted} +\usepackage{multicol} +\usetikzlibrary{calc,intersections,through,backgrounds} + +\usepackage[english]{babel} +\usepackage[autostyle, english = american]{csquotes} +\MakeOuterQuote{"} +\usepackage[lined]{algorithm2e} +\setlength{\parskip}{\baselineskip} + +\DeclareMathOperator*{\argmax}{arg\,max} +\DeclareMathOperator*{\argmin}{arg\,min} + +\usepackage{pgfpages} + +\ifdef{\ifnotes}{ + \ifnotes + \setbeameroption{show notes on second screen=right} + \fi +}{} + +\setbeamertemplate{note page}{\pagecolor{yellow!5}\insertnote} +\usepackage{palatino} + +\setbeamertemplate{blocks}[rounded][shadow=true] +\setbeamercolor{block body}{bg=orange, fg=black} + +% +% Custom font for a frame. +% +\newcommand{\customframefont}[1]{ +\setbeamertemplate{itemize/enumerate body begin}{#1} +\setbeamertemplate{itemize/enumerate subbody begin}{#1} +} + +\NewEnviron{framefont}[1]{ +\customframefont{#1} % for itemize/enumerate +{#1 % For the text outside itemize/enumerate +\BODY +} +\customframefont{\normalsize} +} + +\usetheme{UVic} + + +\title{UVic \LaTeX beamer template} +\author{\texorpdfstring{Author\newline\newline\url{email@uvic.ca}}{Author}} +\date{\today} + +\begin{document} + +\begin{frame} + \titlepage +\end{frame} + +\begin{frame}{Template} + + Common text. + + \begin{itemize} + \item Item 1. + \begin{itemize} + \item Item 2. + \end{itemize} + \end{itemize} + +\end{frame} + +\end{document} -- cgit v1.2.3