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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
|
%--------------------------------------
% Create title frame
\titleframe
%--------------------------------------
% Table of contents
\begin{frame}{Overview}
\setbeamertemplate{section in toc}[sections numbered]
\tableofcontents[hideallsubsections]
\end{frame}
%==============================================
\section{Introduction}
%==============================================
\begin{frame}{\insertsectionhead}
\framesubtitle{A short introduction to Trigon}
\themename is a modern, elegant and versatile theme for Beamer, inspired by
the
\href{https://github.com/matze/mtheme}{\textsc{metropolis} theme} from Matthias
Vogelgesang.
\vfill
\themename comes with lots of nice extra features
\begin{itemize}
\item Multiple style variations for title, section and normal slides
\item Simple customization of theme colors
\item Lots of convenient options to tweak the design
\end{itemize}
\end{frame}
%==============================================
\section{Layout}
%==============================================
\subsection{Layout variations}
\begin{frame}[fragile=singleslide]{\insertsectionhead}
\framesubtitle{\insertsubsectionhead}
The general style for the title, section and regular frames can be changed
easily with simple options. Here are some examples for the title page
\begin{figure}[ht!]
\begin{subfigure}[b]{0.3\textwidth}
\frame{\includegraphics[width=\textwidth]{screenshots/layout_example-03.jpg}}
\caption*{plain}
\end{subfigure}
\hspace{\fill}
\begin{subfigure}[b]{0.3\textwidth}
\frame{\includegraphics[width=\textwidth]{screenshots/layout_example-02.jpg}}
\caption*{style1}
\end{subfigure}
\hspace{\fill}
\begin{subfigure}[b]{0.3\textwidth}
\frame{\includegraphics[width=\textwidth]{screenshots/layout_example-01.jpg}}
\caption*{style2 (default)}
\end{subfigure}
\end{figure}
\end{frame}
%--------------------------------------
\subsection{Fonts}
\begin{frame}
\frametitle{\insertsectionhead}
\framesubtitle{\insertsubsectionhead}
This theme is using \textit{Source Sans Pro} font for all elements by default.
This can be disabled by providing the option \texttt{usesourcefonts=false}.
\vfill
Emphasis can be added by using \textbf{bold} typeface, \textit{italic},
\alert{alert} or {\color{tPrim}{simple colors}}.
\vfill
Equations are typsetted with this font as well
\begin{equation*}
F(x|\mu,s) = \int_{-\infty}^x s^{-1}\left(1+e^{-\frac{v-\mu}{s}}\right)^{-2} e^{-\frac{v-\mu}{s}}\;\mathsf{d}v = \frac{1}{1+e^{-\frac{x-\mu}{s}}}
\end{equation*}
\end{frame}
%==============================================
\section{Elements}
%==============================================
\subsection{Charts}
\begin{frame}{\insertsectionhead}
\framesubtitle{\insertsubsectionhead}
\begin{columns}[c, onlytextwidth]
\column{0.47\textwidth}
Use the theme color \texttt{tPrim}, \texttt{tSec}, \texttt{tGrey} and
\texttt{tAccent} to have charts directly fit the main theme of presentation.
\vfill
\begin{itemize}
\item Easy variants using \texttt{color!x} to lighten or darken the colors
\end{itemize}
\hfill
\column{0.47\textwidth}
\center
\resizebox{0.9\textwidth}{!}{%
\begin{tikzpicture}
\pie[color={tPrim, tPrim!75, tPrim!50, tPrim!25},
rotate=90, hide number, text= legend]
{50/tPrim, 32/tPrim!75, 16/tPrim!50, 2/tPrim!25}
\end{tikzpicture}
}
\end{columns}
\end{frame}
\subsection{Lists}
\begin{frame}{\insertsectionhead}
\framesubtitle{\insertsubsectionhead}
\begin{columns}[T,onlytextwidth]
\column{0.28\textwidth}
Items
\begin{itemize}
\item Item 1
\begin{itemize}
\item Subitem 1
\item Subitem 2
\end{itemize}
\item Item 2
\item Item 3
\end{itemize}
\column{0.42\textwidth}
Enumerations
\begin{enumerate}
\item The Fellowship of the Ring,
\item The Two Towers,
\item The Return of the King.
\end{enumerate}
\column{0.30\textwidth}
Descriptions
\begin{description}
\item[Trigon] Modern. \item[Default] Outdated.
\end{description}
\end{columns}
\end{frame}
%--------------------------------------
\subsection{Figures}
\begin{frame}
\frametitle{\insertsectionhead}
\framesubtitle{\insertsubsectionhead}
\begin{figure}
\newcounter{density}
\setcounter{density}{20}
\begin{tikzpicture}
\def\couleur{tAccent}
\def\color{tSec}
\path[coordinate] (0,0) coordinate(A)
++( 60:5cm) coordinate(B)
++(-60:5cm) coordinate(C);
\path[coordinate] (0,0) coordinate(D)
++(60:5cm) coordinate(E)
++(180:5cm) coordinate(F);
\draw[fill=\couleur!\thedensity] (A) -- (B) -- (C) -- cycle;
\draw[fill=\color!\thedensity] (D) -- (E) -- (F) -- cycle;
\foreach \x in {1,...,15}{%
\pgfmathsetcounter{density}{\thedensity+10}
\setcounter{density}{\thedensity}
\path[coordinate] coordinate(X) at (A){};
\path[coordinate] (A) -- (B) coordinate[pos=.15](A)
-- (C) coordinate[pos=.15](B)
-- (X) coordinate[pos=.15](C);
\draw[fill=\couleur!\thedensity] (A)--(B)--(C)--cycle;
}
\setcounter{density}{20}
\foreach \x in {1,...,15}{%
\pgfmathsetcounter{density}{\thedensity+10}
\setcounter{density}{\thedensity}
\path[coordinate] coordinate(X) at (D){};
\path[coordinate] (D) -- (E) coordinate[pos=.15](D)
-- (F) coordinate[pos=.15](E)
-- (X) coordinate[pos=.15](F);
\draw[fill=\color!\thedensity] (D)--(E)--(F)--cycle;
}
\end{tikzpicture}
\caption{Rotated triangles from
\href{http://www.texample.net/tikz/examples/rotated-triangle/}{texample.net}.}
\end{figure}
\end{frame}
%--------------------------------------
\subsection{Tables}
\begin{frame}
\frametitle{\insertsectionhead}
\framesubtitle{\insertsubsectionhead}
\begin{table}[H]
\centering
\caption{A nice table example}
\begin{tabular}{@{} lccc @{}}
\toprule
& \textbf{Velocity} & \textbf{Angle} & \textbf{Vertical force} \\
& $U$ & $\alpha$ & $F_z$ \\
& [m/s] & [$^\circ$] & [N] \\
\midrule
2D simulation & 9 & 2 & 9.23 \\
3D simulation & 10.0 & 3 & 15.039 \\
Experiment A & 11.31 & 2.5 & 13.2 \\
Experiment B & 11.26 & 2.7 & 12.6 \\
Experiment C & 11.33 & 2.47 & 13.6 \\
\bottomrule
\end{tabular}
\end{table}
\end{frame}
%--------------------------------------
\subsection{Blocks}
\begin{frame}
\frametitle{\insertsectionhead}
\framesubtitle{\insertsubsectionhead}
\begin{block}{Regular block}
Just a regular block
\end{block}
\begin{alertblock}{Alert block}
Some important thing
\end{alertblock}
\begin{exampleblock}{Example block}
No difference with regular block to avoid excessive distraction
\end{exampleblock}
\end{frame}
%--------------------------------------
\subsection{Frame footer}
{
\setbeamertemplate{frame footer}{My custom footer}
\begin{frame}[fragile]
\frametitle{\insertsectionhead}
\framesubtitle{\insertsubsectionhead}
\themename defines a custom beamer template to add a text to the footer. It can be set via
\begin{verbatim}\setbeamertemplate{frame footer}{My custom footer}\end{verbatim}
\end{frame}
}
\begin{frame}{References}
Some references to showcase [allowframebreaks] \cite{knuth92,ConcreteMath,Simpson,Er01,greenwade93}
\end{frame}
%==============================================
\section{Conclusion}
%==============================================
\begin{frame}{Summary}
Get the source of this theme and the demo presentation from
\begin{center}\url{gitlab.com/thlamb/beamertheme-trigon}\end{center}
As for \textsc{metropolis}, \themename is licensed under a
\href{http://creativecommons.org/licenses/by-sa/4.0/}{Creative Commons
Attribution-ShareAlike 4.0 International License}.
\begin{center}\ccbysa\end{center}
\end{frame}
%==============================================
%\begin{frame}[standout]
% Questions?
%\end{frame}
\appendix
\begin{frame}[fragile]{Backup slides}
Sometimes, it is useful to add slides at the end of your presentation to
refer to during audience questions.
The best way to do this is to include the \verb|appendixnumberbeamer|
package in your preamble and call \verb|\appendix| before your backup slides.
\themename will automatically turn off slide numbering and progress bars for
slides in the appendix.
\end{frame}
\begin{frame}[allowframebreaks]{References}
\bibliography{demo}
\bibliographystyle{abbrv}
\end{frame}
|