-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcambridge2.2.tex
61 lines (50 loc) · 2.31 KB
/
cambridge2.2.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
\documentclass[10pt, xcolor={dvipsnames}]{beamer}
\usetheme{CambridgeUS}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{tikz}
\title{Cambridge US style with headline and no footline}
\subtitle{Colors are taken from green color palettes here: \url{https://colorhunt.co/palettes/green}}
\author{Vachan Potluri}
\date{\today}
\definecolor{structurebg}{HTML}{36AE7C}
\definecolor{primary}{HTML}{D6CDA4}
\definecolor{secondary}{HTML}{3D8361}
\definecolor{tertiary}{HTML}{1C6758}
\definecolor{alertfg}{HTML}{EF5B0C}
\definecolor{blocktitlebg}{HTML}{4B8673}
\definecolor{blocktitlefg}{HTML}{FAF3E3}
\definecolor{blockbodybg}{HTML}{CFE8A9}
\makeatletter
\setbeamercolor{structure}{fg=black,bg=structurebg}
\setbeamercolor{palette primary}{use=structure,fg=structure.bg!20!black,bg=primary} % bottom right block
\setbeamercolor{palette secondary}{use=structure,fg=white,bg=secondary} % bottom middle block
\setbeamercolor{palette tertiary}{use=structure,bg=tertiary,fg=white} % bottom left block
\setbeamercolor{block title}{fg=blocktitlefg,bg=blocktitlebg}
\setbeamercolor{block body}{fg=black,bg=blockbodybg!10}
\setbeamercolor{frametitle}{parent=palette primary}
\setbeamercolor{title}{parent=frametitle} % presentation title
\setbeamercolor{item projected}{use=structure,fg=black,bg=structure.bg} % changes only enumerate color. \setbeamercolor{enumerate item}{...} wont work
\setbeamercolor{subitem projected}{fg=white,bg=structure.bg!40!black} % changes only enumerate color
\setbeamercolor{itemize item}{fg=structure.bg!60!black} % changes only itemize color
\setbeamercolor{itemize subitem}{fg=structure.bg!30!black} % changes only itemize color
\setbeamercolor{alerted text}{fg=alertfg}
\setbeamercolor{caption name}{fg=alerted text.fg}
\setbeamertemplate{itemize item}[triangle]
\setbeamertemplate{itemize subitem}[circle]
\setbeamertemplate{enumerate items}[circle]
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}{%
\hfill%
\begin{tikzpicture}
\node[rectangle, inner sep=1pt, fill=primary, anchor=center] at (0em,0em) {\textcolor{structurebg!20!black}{\tiny\insertframenumber{}/\inserttotalframenumber}};
\end{tikzpicture}
\hspace{-0.35em}
\vspace{0.25em}
}
\makeatother
\setlength{\leftmargini}{2em}
\setlength{\leftmarginii}{1em}
\begin{document}
\input{common_content}
\end{document}