diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | beamerthemeUVic.sty | 82 | ||||
-rw-r--r-- | images/UVic_logo_BW_reversed.pdf | bin | 0 -> 12302 bytes | |||
-rw-r--r-- | main.pdf | bin | 0 -> 22584 bytes | |||
-rw-r--r-- | main.tex | 82 |
6 files changed, 169 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b3d3faf --- /dev/null +++ b/Makefile | |||
@@ -0,0 +1,2 @@ | |||
1 | all: | ||
2 | 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 @@ | |||
1 | # UVic LaTeX beamer template | ||
2 | |||
3 | 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 @@ | |||
1 | % beamerthemeUVic.sty v1.0 (February 27, 2021) | ||
2 | % by Nicholas Bruce ([email protected]) | ||
3 | % | ||
4 | % based off of the beamerthemeUCBerkeley by Overleaf | ||
5 | % colors, background, typography from the UVic Edge Brand as of Feb. 2021 | ||
6 | |||
7 | \ProvidesPackage{beamerthemeUVic} | ||
8 | |||
9 | \RequirePackage{silence} | ||
10 | \WarningsOff[mathdesign/mdbch] | ||
11 | |||
12 | \RequirePackage{etoolbox} | ||
13 | \setbeamertemplate{navigation symbols}{} | ||
14 | \setbeamertemplate{caption}[numbered] | ||
15 | |||
16 | \RequirePackage{fontspec} | ||
17 | % \setromanfont{Verdana} | ||
18 | % \setsansfont{Open Sans Regular} | ||
19 | |||
20 | \RequirePackage{tikz} | ||
21 | |||
22 | \definecolor{UVicBlue}{RGB}{0,94,184} | ||
23 | \definecolor{UVicYellow}{RGB}{234,170,0} | ||
24 | \definecolor{UVicRed}{RGB}{210,38,48} | ||
25 | \definecolor{UVicDarkBlue}{RGB}{0,46,93} | ||
26 | \definecolor{UVicEngineering}{RGB}{255,117,0} | ||
27 | \definecolor{UVicTableBlue1}{RGB}{204,230,255} | ||
28 | \definecolor{UVicTableBlue2}{RGB}{230,243,255} | ||
29 | |||
30 | \setbeamertemplate{title page}[default][left] | ||
31 | \setbeamerfont{title}{family=\sffamily,size=\Huge} | ||
32 | \setbeamerfont{author}{size=\Large} | ||
33 | |||
34 | \setbeamersize{text margin left=2em, text margin right=2em} | ||
35 | |||
36 | \setbeamertemplate{frametitle}{\vskip0.1\paperheight\insertframetitle} | ||
37 | \setbeamerfont{frametitle}{family=\sffamily,series=\mdseries,size=\LARGE} | ||
38 | \setbeamerfont{block title}{family=\sffamily,size=\large} | ||
39 | \setbeamercolor{titlelike}{fg=UVicDarkBlue} | ||
40 | \setbeamerfont{normal text}{family=\rmfamily} | ||
41 | \setbeamercolor{normal text}{fg=UVicDarkBlue} | ||
42 | \setbeamercolor{structure}{fg=UVicDarkBlue} | ||
43 | \setbeamercolor{block title}{fg=UVicBlue} | ||
44 | |||
45 | \setbeamertemplate{itemize item}{\textbullet} | ||
46 | \setbeamertemplate{itemize subitem}{--} | ||
47 | \setbeamertemplate{itemize subsubitem}{\textbullet} | ||
48 | \setlength{\leftmargini}{1.25em} | ||
49 | \setlength{\leftmarginii}{1em} | ||
50 | \setlength{\leftmarginiii}{1em} | ||
51 | |||
52 | \pgfdeclareimage[height=0.07\paperheight]{logo}{images/UVic_logo_BW_reversed.pdf} | ||
53 | |||
54 | \usetikzlibrary{calc} | ||
55 | \setbeamertemplate{background}{% | ||
56 | \begin{tikzpicture}[overlay,remember picture] | ||
57 | \fill[UVicDarkBlue] (current page.south west) -- ++(0, 0.10\paperheight) -- ++(\paperwidth, 0) -- (current page.south east) -- cycle; | ||
58 | \fill[UVicBlue] ($ (current page.south west) + (0.708333\paperwidth, 0)$) -- ++(-0.18055\paperwidth, 0) -- ++(40:0.15557\paperheight) -- ++(0.17\paperwidth, 0) -- cycle; | ||
59 | \fill[UVicYellow] (current page.south east) -- +(-0.12\paperwidth, 0) -- +(-0.12\paperwidth,0.1\paperheight) -- +(\paperwidth, 0.1\paperheight) -- cycle; | ||
60 | \fill[UVicRed] ($ (current page.south west) + (0.88888\paperwidth, 0)$) -- ++(-0.125\paperwidth, 0) -- ++(45:0.14142\paperheight) -- ++(0.1255\paperwidth, 0) -- cycle; | ||
61 | \node[anchor=south west,inner sep=0pt,draw=none,xshift=0.055\paperheight,yshift=0.015\paperheight] at (current page.south west) {\pgfuseimage{logo}};% | ||
62 | \end{tikzpicture}% | ||
63 | } | ||
64 | |||
65 | \setbeamertemplate{footline}{% | ||
66 | \vskip0.15\paperheight | ||
67 | } | ||
68 | |||
69 | \newcommand{\smallframetitle}{% | ||
70 | \setbeamertemplate{frametitle}{\vskip0.15\paperheight\insertframetitle} | ||
71 | \setbeamerfont{frametitle}{size=\large,series=\bfseries} | ||
72 | } | ||
73 | \newcommand{\normalframetitle}{% | ||
74 | \setbeamertemplate{frametitle}{\vskip0.2\paperheight\insertframetitle} | ||
75 | \setbeamerfont{frametitle}{size=\LARGE,series=\mdseries} | ||
76 | } | ||
77 | |||
78 | \renewcommand{\arraystretch}{1.2} | ||
79 | \newcommand{\tableheadrow}{\rowcolor{UVicYellow}} | ||
80 | \newcommand{\tableheadcol}[1]{{\bfseries\color{white}#1}} | ||
81 | % \rowcolors{2}{UVicTableBlue1}{UVicTableBlue2} | ||
82 | \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 --- /dev/null +++ b/images/UVic_logo_BW_reversed.pdf | |||
Binary files differ | |||
diff --git a/main.pdf b/main.pdf new file mode 100644 index 0000000..4d1c3c6 --- /dev/null +++ b/main.pdf | |||
Binary files 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 @@ | |||
1 | \documentclass[8pt,xcolor={table,dvipsnames,t}]{beamer} | ||
2 | \usepackage{graphicx} | ||
3 | \usepackage{parskip} | ||
4 | \usepackage{amsmath} | ||
5 | \usepackage{amssymb} | ||
6 | \usepackage{environ} | ||
7 | \usepackage{tcolorbox} | ||
8 | \usepackage{caption} | ||
9 | \usepackage{subcaption} | ||
10 | \usepackage{tikz,ifthen} | ||
11 | \usepackage{xparse} | ||
12 | \usepackage{listings} | ||
13 | \usepackage{minted} | ||
14 | \usepackage{multicol} | ||
15 | \usetikzlibrary{calc,intersections,through,backgrounds} | ||
16 | |||
17 | \usepackage[english]{babel} | ||
18 | \usepackage[autostyle, english = american]{csquotes} | ||
19 | \MakeOuterQuote{"} | ||
20 | \usepackage[lined]{algorithm2e} | ||
21 | \setlength{\parskip}{\baselineskip} | ||
22 | |||
23 | \DeclareMathOperator*{\argmax}{arg\,max} | ||
24 | \DeclareMathOperator*{\argmin}{arg\,min} | ||
25 | |||
26 | \usepackage{pgfpages} | ||
27 | |||
28 | \ifdef{\ifnotes}{ | ||
29 | \ifnotes | ||
30 | \setbeameroption{show notes on second screen=right} | ||
31 | \fi | ||
32 | }{} | ||
33 | |||
34 | \setbeamertemplate{note page}{\pagecolor{yellow!5}\insertnote} | ||
35 | \usepackage{palatino} | ||
36 | |||
37 | \setbeamertemplate{blocks}[rounded][shadow=true] | ||
38 | \setbeamercolor{block body}{bg=orange, fg=black} | ||
39 | |||
40 | % | ||
41 | % Custom font for a frame. | ||
42 | % | ||
43 | \newcommand{\customframefont}[1]{ | ||
44 | \setbeamertemplate{itemize/enumerate body begin}{#1} | ||
45 | \setbeamertemplate{itemize/enumerate subbody begin}{#1} | ||
46 | } | ||
47 | |||
48 | \NewEnviron{framefont}[1]{ | ||
49 | \customframefont{#1} % for itemize/enumerate | ||
50 | {#1 % For the text outside itemize/enumerate | ||
51 | \BODY | ||
52 | } | ||
53 | \customframefont{\normalsize} | ||
54 | } | ||
55 | |||
56 | \usetheme{UVic} | ||
57 | |||
58 | |||
59 | \title{UVic \LaTeX beamer template} | ||
60 | \author{\texorpdfstring{Author\newline\newline\url{[email protected]}}{Author}} | ||
61 | \date{\today} | ||
62 | |||
63 | \begin{document} | ||
64 | |||
65 | \begin{frame} | ||
66 | \titlepage | ||
67 | \end{frame} | ||
68 | |||
69 | \begin{frame}{Template} | ||
70 | |||
71 | Common text. | ||
72 | |||
73 | \begin{itemize} | ||
74 | \item Item 1. | ||
75 | \begin{itemize} | ||
76 | \item Item 2. | ||
77 | \end{itemize} | ||
78 | \end{itemize} | ||
79 | |||
80 | \end{frame} | ||
81 | |||
82 | \end{document} | ||