-
Notifications
You must be signed in to change notification settings - Fork 42
/
focus-demo.tex
149 lines (131 loc) · 4.75 KB
/
focus-demo.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
% !TeX TS-program = xelatex
% !BIB TS-program = bibtex
% Full instructions available at:
% https://github.com/pcafrica/focus-beamertheme
\documentclass{beamer}
\usetheme{focus}
\title{Focus: \\ A Minimalist Beamer Theme}
\subtitle{Subtitle}
\author{Author 1\texorpdfstring{\\}{,} Author 2}
\titlegraphic{\includegraphics[scale=1.25]{focus-logo.pdf}}
\institute{Institute Name \\ Institute Address}
\date{dd mm yyyy}
% Footline info is printed only if [numbering=fullbar].
%\footlineinfo{Custom footline text}
\begin{document}
\begin{frame}
\maketitle
\end{frame}
% Use starred version (e.g. \section*{Section name})
% to disable (sub)section page.
\section{Section 1}
\subsection{Subsection 1.1}
\begin{frame}{Simple frame}
This is a simple frame.
\end{frame}
\begin{frame}[plain]{Plain frame}
This is a frame with plain style and it is numbered.
\end{frame}
\subsection{Subsection 1.2}
\begin{frame}[t]
This frame has an empty title and is aligned to top.
\end{frame}
\begin{frame}[noframenumbering]{No frame numbering}
This frame is not numbered and is citing reference \cite{knuth74}.
\end{frame}
\begin{frame}{Typesetting and Math}
The packages \texttt{fontenc} and \texttt{FiraSans}\footnote{\url{https://fonts.google.com/specimen/Fira+Sans}}\textsuperscript{,}\footnote{\url{http://mozilla.github.io/Fira/}} are used to properly set the main fonts.
\vfill
This theme provides styling commands to typeset \emph{emphasized}, \alert{alerted}, \textbf{bold}, \textcolor{example}{example text}, \dots
\vfill
\texttt{FiraSans} also provides support for mathematical symbols:
\begin{align*}
e^{i\pi} + 1 & = 0, \\
\int_{-\infty}^\infty e^{-x^2}\,\mathrm{d}x & = \sqrt{\pi}.
\end{align*}
\end{frame}
\section{Section 2}
\begin{frame}{Blocks}
\begin{block}{Block}
Text.
\end{block}
\pause
\begin{alertblock}{Alert block}
Alert \alert{text}.
\end{alertblock}
\pause
\begin{exampleblock}{Example block}
Example \textcolor{example}{text}.
\end{exampleblock}
\end{frame}
\begin{frame}{Lists}
\begin{columns}[t, onlytextwidth]
\column{0.33\textwidth}
Items:
\begin{itemize}
\item Item 1
\begin{itemize}
\item Subitem 1.1
\item Subitem 1.2
\end{itemize}
\item Item 2
\item Item 3
\end{itemize}
\column{0.33\textwidth}
Enumerations:
\begin{enumerate}
\item First
\item Second
\begin{enumerate}
\item Sub-first
\item Sub-second
\end{enumerate}
\item Third
\end{enumerate}
\column{0.33\textwidth}
Descriptions:
\begin{description}
\item[First] Yes.
\item[Second] No.
\end{description}
\end{columns}
\end{frame}
\setbeamertemplate{caption}[numbered]
\begin{frame}{Figures and Tables}
\begin{columns}
\column{0.4\textwidth}
\begin{figure}
\centering
\includegraphics{focus-logo.pdf}
\caption{Figure caption.}
\label{fig:focuslogo}
\end{figure}
\column{0.6\textwidth}
\begin{table}
\centering
\begin{tabular}{rcc}
& Heading 1 & Heading 2 \\\hline
Row 1 & \(v_{11}\) & \(v_{12}\) \\
Row 2 & \(v_{21}\) & \(v_{22}\) \\
Row 3 & \(v_{31}\) & \(v_{32}\) \\
\end{tabular}
\caption{Table caption.}
\label{tab:demo}
\end{table}
\end{columns}
\end{frame}
\begin{frame}[focus]
Thanks for using \textbf{Focus}!
\end{frame}
\appendix
\begin{frame}{References}
\nocite{*}
\bibliography{focus-demo_bibliography}
\bibliographystyle{plain}
\end{frame}
\begin{frame}{Backup frame}
This is a backup frame, useful to include additional material for questions from the audience.
\vfill
The package \texttt{appendixnumberbeamer} is used not to number appendix frames.
\end{frame}
\end{document}