-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslides.tex
174 lines (157 loc) · 6.53 KB
/
slides.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
\documentclass[11pt, aspectratio=43]{beamer}
\usetheme[blue,square]{cbflec}% loading the custom theme
% Auxillary packages that you may use; not necessary for the custom theme
\usepackage{charter}
\usepackage{threeparttable}
\usepackage{booktabs}
\usepackage{hyperref}
\hypersetup{colorlinks=true,
urlcolor=purple,
}
\title{A Simple Beamer Theme for Lectures}
\subtitle{theme \textbf{cbflec} for colorblind-friendly slides}
%\author{Name Surname \\ \texttt{[email protected]}}
\date{\today}
%\institute{Your University}
\begin{document}
\section{\inserttitle}
\begin{frame}[plain] % plain frame to suppress the page number on the title page
\titlepage
\end{frame}
\subsection{Colors}
\begin{tframe}
Why different colors?
\end{tframe}
\begin{frame}{Color Picks}
\begin{itemize}
\item Colors suitable for color-blind readers based on \href{https://www.nature.com/articles/nmeth.1618}{Wong (2011)}
\end{itemize}
\vspace{1ex}
\begin{minipage}{\textwidth}
\centering
\includegraphics[scale=0.4]{cbf_colors.png}\\
\footnotesize Source: Wong (2011)
\end{minipage}
\end{frame}
\begin{frame}{Color Picks, Cont.}
\begin{itemize}
\item \textcolor{blue}{Blue} for
\begin{itemize}
\item title page
\item frame title (bold series)
\item itemize item markers (enumerate item markers are in black)
\item transition frame
\end{itemize}
\item \textcolor{red}{Red} for
\begin{itemize}
\item highlighting
\item description item
\item alert environment
\end{itemize}
\item \textcolor{yellow}{Yellow} as an alternative color for the transition frame background
\item \textcolor{orange}{Orange} for the block environment
\item \textcolor{teal}{Teal} for the example environment
\end{itemize}
\end{frame}
\begin{frame}[fragile]
\frametitle{Title Page}
\begin{itemize}
\item Title page is inspired by \href{https://blog.hamaluik.ca/posts/better-beamer-themes/}{Kenton Hamaluik}
\item I don't like to have author and institution information on lecture slides
\item My students know these already!
\item But \textbf{cbflec} allows you to have them on the title page. Try!
\item It also works fine with aspect ratio 16:9, which I prefer for my lectures (\verb!\documentclass[aspectratio=169]{beamer}!)
\end{itemize}
\end{frame}
\begin{frame}{Descriptions}
\begin{itemize}
\item Description item labels are left aligned by default
\begin{description}
\item[Lion] King of the savanna.
\item[Tiger] King of the jungle.
\end{description}
\end{itemize}
\end{frame}
\begin{frame}{Blocks}
\begin{block}{Let's discuss...}
Blocks are useful to pose questions for classroom discussion!
\end{block}
\end{frame}
\subsection{Use Transition Frames Along with Subsections}
\begin{tframe}
Subsection titles prepare students for a new part in the lecture\\[2ex]
Reveal here one or two key points before you explain them in detail
\end{tframe}
\begin{frame}{Transition Frame}
\begin{itemize}
\item Inspiration for using transition frames like the previous one comes from \href{https://paulgp.github.io/beamer_tips.pdf}{Paul Goldsmith-Pinkham}
\item \textbf{cbflec} offers two background color options (blue in addition to GP's yellow color suggestion) (see the last slide)
\end{itemize}
\end{frame}
\begin{frame}[fragile]
\frametitle{Subsections and Transtion Frames}
\begin{itemize}
\item Subsectioning allows you to structure your presentation
\item Use \textbf{hyperref} package to create bookmarks
\item Call the \verb!tframe! environment right after \verb|\subsection{subsection title}|
\item New frame shows the subsection title automatically as above
\item You can insert more text to tframes as follows:
\begin{verbatim}
\subsection{Questions}
\begin{tframe}
Questions go here
\end{tframe}
\end{verbatim}
\end{itemize}
\end{frame}
\begin{frame}{Table Example}
No ``Table:" or ``Figure:" label in captions by default
\begin{table}[h]
\centering
\begin{threeparttable}
\caption{Defense R\&D Spending to Total Government R\&D Spending}
\label{tab:def_rd}
\begin{tabular}{lrrrrr}
\toprule
& 1981 & 1989 & 1999 & 2007 & 2018\\
\cmidrule{2-6} \cmidrule{3-6} \cmidrule{4-6} \cmidrule{5-6} \cmidrule{6-6}
United States & 54.6 & 65.5 & 53.2 & 49.1 & 46.7\\
United Kingdom & 46.3 & 44.7 & 37.1 & 23.0 & 14.1\\
France & 38.4 & 37.0 & 22.7 & 28.8 & 6.9\\
Sweden & 15.4 & 24.7 & 7.4 & 16.4 & 3.7\\
Germany & 8.9 & 12.8 & 8.3 & 6.0 & 3.3\\
Italy & 6.5 & 6.8 & 1.3 & 4.5 & 0.6\\
Japan & 4.8{\footnotesize{}\tnote{\textdagger}} & 5.1 & 4.6 & 4.5 & 2.7\\
Canada & 5.5 & 6.7 & 5.4 & 3.2 & 2.2{\footnotesize{}\tnote{\textdaggerdbl}}\\
\bottomrule
\end{tabular}
\begin{tablenotes}[flushleft, para]
\scriptsize
\item[] \textit{Source:} OECD Main Science and Technology Indicators. Numbers are in percentage terms.
\item[\textdagger] In 1988 due to data availability.
\item[\textdaggerdbl] In 2016 due to data availability.
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{frame}
\subsection{How to Use}
\begin{tframe}
\end{tframe}
\begin{frame}[fragile]
\frametitle{How to Use \textbf{cbflec}}
\begin{itemize}
\item \textbf{cbflec} offers two color options for the transition frame's background color
\item Insert \verb!\usetheme[blue]{cbflec}! for blue
\begin{itemize}
\item text color on tframes will be white
\end{itemize}
\item Or insert \verb|\usetheme[yellow]{cbflec}| for yellow
\begin{itemize}
\item text color on tframes will be black
\end{itemize}
\item \textbf{cbflec} also offers three options for itemize item markers: circle (default), square, and triangle
\item Insert \verb!\usetheme[blue,square]{cbflec}! to get blue transition background and square item markers (the order of parameters does not matter)
\item Place \textit{beamerthemecbflec.sty} file in the same folder as your .tex file before calling it
\end{itemize}
\end{frame}
\end{document}