summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/sample/beamerthemetamu.tex
blob: 12b755e55dad5fead3ae76bcbed1c54f81d9d641 (plain)
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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
% Set onlycurpagenum when you do not want to show total page number.
% Set secheader if you want to show a headline with (sub)section names.
% Set infolines if you want to show a headline and a footline.
\documentclass[onlycurpagenum,infolines,xcolor=table]{beamer}
% Copyright 2017 Alick Zhao <alick9188@gmail.com>
%
% Last modified on: 2017-07-16

% This file is modified from a solution template for:

% - Giving a talk on some subject.
% - The talk is between 15min and 45min long.
% - Style is ornate.

% Copyright 2004 by Till Tantau <tantau@users.sourceforge.net>.
%
% In principle, this file can be redistributed and/or modified under
% the terms of the GNU Public License, version 2.
%
% However, this file is supposed to be a template to be modified
% for your own needs. For this reason, if you use this file as a
% template and not specifically distribute it as part of a another
% package/program, I grant the extra permission to freely copy and
% modify this file as you see fit and even to delete this copyright
% notice.

\mode<presentation>
{
\usetheme{tamu}
} % end of mode presentation

\usepackage{graphicx} % includegraphics support (already specified)
%\graphicspath{{fig/}} % directories that hold graphics
\usepackage{amsmath} % for math
\usepackage{amssymb} % for additional math symbols
\usepackage{siunitx} % for si units
\usepackage[style=ieee]{biblatex}
%\usepackage{listings} % for typesetting source code
%\usepackage{algorithmic} % for typesetting algorithms

\usepackage{iftex}
\ifXeTeX
\usepackage{fontspec}
%\renewcommand\familydefault{\sfdefault} % for slides
\else
  \usepackage[utf8]{inputenc}
\fi

\usepackage{calligra}
\usepackage{colortbl}
\colorlet{tableheader}{blue!40}
\colorlet{oddrow}{blue!20}
\colorlet{evenrow}{blue!10}

\newcommand*{\tamu}{Texas A\&M University}

\title{Beamer Template for \tamu}

\newcommand*{\theauthor}{Alick Zhao}
\author{\theauthor}

\institute[TAMU] % (optional, but mostly needed)
{
\tamu
}
% - Use the \inst command only if there are several affiliations.
% - Keep it simple, no one is interested in your street address.

\date % (optional)
{\today}

%\subject{Talks}

\hypersetup{
pdfauthor={Alick Zhao},
pdfsubject={Talks},
pdfkeywords={beamer,TAMU,theme},
unicode=true,
}

% Delete this, if you do not want the table of contents to pop up at
% the beginning of each subsection:
%\AtBeginSubsection[]
%{
%  \begin{frame}<beamer>{Outline}
%    \tableofcontents[currentsection,currentsubsection]
%  \end{frame}
%}


% If you wish to uncover everything in a step-wise fashion, uncomment
% the following command:

%\beamerdefaultoverlayspecification{<+->}

% listings setup
%\lstset{basicstyle=\ttfamily,breaklines=true}

% hyperref setup
%\hypersetup{
%pdfpagemode=FullScreen,
%}

\ExecuteBibliographyOptions{citetracker=true,sorting=none}

% Suppress publisher, location, note, etc. in citations.
\AtEveryCitekey{%
  %\ifentrytype{article}
    %{\clearfield{title}}
    %{}%
  \clearlist{publisher}%
  \clearlist{location}%
  \clearfield{isbn}%
  \clearfield{issn}%
  \clearfield{note}}

% Number of each bibliography entry in brackets
\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}}

\makeatletter
% Citation number in brackets.
\renewcommand\@makefntext[1]{%
  \normalfont[\@thefnmark]\enspace #1}
\makeatother

% Provide \notefullcite for footnote citations.
% cf. http://www.texdev.net/2010/03/08/biblatex-numbered-citations-as-footnotes/

% NOTE: for vanilla footnote coexistence, refer to
% http://tex.stackexchange.com/questions/20754/tuning-numbered-citations-as-footnote
% http://tex.stackexchange.com/questions/20787/biblatex-cite-with-footnote-only-once-with-use-of-brackets

\DeclareCiteCommand{\notefullcite}[\mkbibbrackets]
  {\usebibmacro{cite:init}%
   \usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \usebibmacro{notefullcite}%
   \usebibmacro{cite:comp}}
  {}
  {\usebibmacro{cite:dump}%
   \usebibmacro{postnote}}

\newbibmacro*{notefullcite}{%
  \ifciteseen
    {}
    {\footnotetext[\thefield{labelnumber}]{%
       \usedriver{}{\thefield{entrytype}}.}}}

% Decrease the footnote size.
\let\oldfootnotesize\footnotesize
\renewcommand*{\footnotesize}{\oldfootnotesize\tiny}

\addbibresource{beamerthemetamu-refs.bib}  % path to the bib database

% Disable the navigation symbol bar.
\beamertemplatenavigationsymbolsempty

\newcommand*{\tamulogo}{%
\IfFileExists{tamu-logo.pdf}{%
\includegraphics[scale=.5]{tamu-logo.pdf}}{%
}}

\begin{document}

\titlegraphic{\tamulogo}
\begin{frame}
\titlepage
\end{frame}

\begin{frame}{Outline}
\tableofcontents
% You might wish to add the option [pausesections]
\end{frame}


% Since this a solution template for a generic talk, very little can
% be said about how it should be structured. However, the talk length
% of between 15min and 45min and the theme suggest that you stick to
% the following rules:

% - Exactly two or three sections (other than the summary).
% - At *most* three subsections per section.
% - Talk about 30s to 2min per frame. So there should be between about
%   15 and 30 frames, all told.

\section{Sample Section}

\begin{frame}
  \frametitle{Bullet Items}
  \begin{itemize}
    \item Computers/computing everywhere --- $10^4$ CPUs per person
      \begin{itemize}
        \item Real-world computing --- sensors and actuators
        \item Massively distributed and embedded
        \item Collect data and make decisions
      \end{itemize}
    \item Massive data --- a TeraByte per person per day
      \begin{itemize}
        \item Sensors, personal, scientific, business, etc\ldots
        \item Extract information from this mass of data
        \item Serious privacy issues
      \end{itemize}
    \item People will spend much time in virtual environments
      \begin{itemize}
        \item Integrating digital and physical worlds
        \item Games, Interactive Movies, Virtual Classrooms --- many connected
        to physical spaces
      \end{itemize}
  \end{itemize}
\end{frame}

\begin{frame}
  \frametitle{A Block Example}
  \begin{block}{Computers/computing everywhere --- $10^4$ CPUs per person}
    \begin{itemize}
      \item Real-world computing --- sensors and actuators
      \item Massively distributed and embedded
      \item Collect data and make decisions
    \end{itemize}
  \end{block}
\end{frame}

\begin{frame}{Figure/Table in Columns}
  \begin{columns}
    \begin{column}{.5\textwidth}
      \begin{figure}[htbp]
        \centering
        \includegraphics{beamericonarticle.pdf}
        \caption{A sample figure.}
      \end{figure}
    \end{column}
    \begin{column}{.5\textwidth}
      \begin{table}[htbp]
        \centering
        \caption{A sample table.}
        \label{tab:sample}
        \rowcolors{2}{oddrow}{evenrow}
        \begin{tabular}{ccc}
          \rowcolor{tableheader}
          Header & Value \\
          Even & $2$\\
          Odd & $3$\\
        \end{tabular}
      \end{table}
    \end{column}
  \end{columns}
\end{frame}

\begin{frame}{Formulas}
  \begin{itemize}
    \item Electromagnetic Wave
      \begin{itemize}
        \item Maxwell:
          \begin{align}
            \nabla \times \mathbf{E} & = - \frac{\partial
            \mathbf{B}}{\partial t}\\
            \nabla \times \mathbf{H} & = \mathbf{J} +
            \frac{\partial \mathbf{D}}{\partial t}\\
            \nabla \cdot \mathbf{D} & = \rho \\
            \nabla \cdot\mathbf{B} & = 0
            \label{eqn:maxwell}
          \end{align}
      \end{itemize}
    \item Probability
      \begin{itemize}
        \item Normal Distribution $\mathcal{N}(\mu,\sigma^2)$:
          \[
          \int_{-\infty}^{\infty}\frac{1}{\sigma\sqrt{2\pi}}\mathrm{e}^{-\frac{(x-\mu)^2}{2\sigma^2}}\mathrm{d}x= 1 \, .
          \]
      \end{itemize}
  \end{itemize}
\end{frame}

\begin{frame}{Formulas With Texts}
  Formulas in plain texts: {\rmfamily $P_\text{out}$}
  \begin{itemize}
    \item Formulas in lists
      \begin{itemize}
        \item EARTH model
\begin{equation}
  P_\text{in} = \begin{cases}
    N_{\text{TRX}} P_0 + \Delta_\text{p} P_\text{out}, & 0 < P_\text{out} \le P_\text{max} \\
    N_{\text{TRX}} P_\text{sleep}, & P_\text{out} = 0
  \end{cases}
\end{equation}
      \end{itemize}
  \end{itemize}
  \begin{exampleblock}{Formulas in blocks}
    Here is the EARTH model again:\rmfamily
\begin{equation}
  P_\text{in} = \begin{cases}
    N_{\text{TRX}} P_0 + \Delta_\text{p} P_\text{out}, & 0 < P_\text{out} \le P_\text{max} \\
    N_{\text{TRX}} P_\text{sleep}, & P_\text{out} = 0
  \end{cases}
\end{equation}
  \end{exampleblock}
\end{frame}

\begin{frame}
  \frametitle{Title}
  \framesubtitle{Subtitle}
  \begin{itemize}
    \item Item 1
    \item Item 2
    \item Footnote citations~\notefullcite{beameruserguide,shannon1948}
  \end{itemize}
\end{frame}

\section{Various Samples}
\subsection{Sample Subsection}
\subsection{Another Sample Subsection}
\subsection{Yet Another Sample Subsection}

\section{Summary}

\begin{frame}{Summary}
  \begin{itemize}
    \item Lorem ipsum
  \end{itemize}
  \vspace{1cm}
  \begin{itemize}
    \item An outlook to the future.
  \end{itemize}
\end{frame}

\appendix
\section<presentation>*{\appendixname}

% Final page.
\begin{frame}[plain]
  \begin{center}
    {\Huge\calligra Thank you!\\}
    \bigskip
    \theauthor\\
    \nolinkurl{alick9188@gmail.com}\\
    \smallskip
    \tamulogo
  \end{center}
\end{frame}
\end{document}
%%% vim: set sw=2 isk+=\: et tw=70 formatoptions+=mM: