-
Notifications
You must be signed in to change notification settings - Fork 2
/
sample.tex
144 lines (118 loc) · 2.77 KB
/
sample.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
\documentclass{beamer}
\usepackage{beamerthemeshadow}
\usepackage{color}
\usepackage[all]{xy}
%%%% choose your presentation style:
\mode<presentation>
{
\usetheme{Copenhagen} %%%
\usecolortheme{beaver}
%%% set style for ovelays: lists (and other text) appearing one item at a time
%%% This will create a dimmed preview of next item:
\setbeamercovered{transparent}
%%% This will hide it entirely:
%\setbeamercovered{invisible}
}
%% if you don't want page numbers to show:
\setbeamertemplate{footline}[page number]{}
\begin{document}
\title{Sample Beamer presentation}
\author{Elena Machkasova}
\institute[UMM] % (optional, but mostly needed)
{
% \inst{1}%
University of Minnesota, Morris
}
\date[]
{HHMI lunch meeting, June 10 2015}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
\frametitle{Outline}
\tableofcontents
\end{frame}
\section{Main elements of Beamer slides}
\subsection{Math formulas}
\begin{frame}
\frametitle{Text, fonts, and formulas}
Here is some text on my slide.
If I want, I can set up some formulas:
$$
E = mc^2.
$$
This is \alert{important}:
\[
e = \lim_{n \to \infty} {\left( 1 + \frac{1}{n} \right)}^n
\]
You can also use \textbf{boldface} and \textit{italics}.
\end{frame}
\subsection{Simple lists}
\begin{frame}
\frametitle{How to set up lists}
Unordered lists:
\begin{itemize}
\item First item
\item Second item
\item Third item
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{How to set up lists}
Ordered lists:
\begin{enumerate}
\item First item
\item Second item
\item Third item
\end{enumerate}
\end{frame}
\begin{frame}
\frametitle{How to add pictures}
\begin{figure}
%%% note: the file is in the same folder as your .tex file
\includegraphics[height=45mm]{halo.jpg}
\end{figure}
Here we can see halo.
\end{frame}
\section{Making items appear one by one}
\begin{frame}
\frametitle{Simple overlays}
\begin{itemize}
\item First item
\pause
\item Second item
\pause
\item Third item
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{More control over when items appear}
\begin{itemize}
\item <1-> First slide
\item <3> Third slide
\item <2>Second slide only
\item <1->Also first slide
\end{itemize}
\end{frame}
\section{showing program code}
%%% If you are including verbatim text, make the frame fragile
\begin{frame}[fragile]
\frametitle{Including text verbatim}
Typically you include program code verbatim:
\begin{verbatim}
(defn get-match-name [fname]
"extract a function name from a qualified name"
(let [m (nth (re-matches #"(.*)\$(.*)" fname) 2)
matched (if m m (nth (re-matches #"(.*)/(.*)"
fname) 2))]
(if matched
(check-if-anonymous-function
(lookup-funct-name matched))
fname)))
\end{verbatim}
\end{frame}
\begin{frame}
\frametitle{Discussion}
Questions?
\end{frame}
\end{document}