• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión49098b353e8b69fc80bb4ac05bfcfce2cfc4cbee (tree)
Tiempo2019-03-07 07:11:26
AutorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

Example of a presentation with the beamer metropolis style.

Cambiar Resumen

Diferencia incremental

diff -r 3e7505659924 -r 49098b353e8b latex-documents/metropolis2.tex
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/latex-documents/metropolis2.tex Wed Mar 06 23:11:26 2019 +0100
@@ -0,0 +1,341 @@
1+
2+\documentclass[10pt]{beamer}
3+
4+\usetheme[progressbar=frametitle]{metropolis}
5+\usepackage{appendixnumberbeamer}
6+
7+\usepackage{booktabs}
8+\usepackage[scale=2]{ccicons}
9+
10+\usepackage{pgfplots}
11+\usepgfplotslibrary{dateplot}
12+
13+\usepackage{xspace}
14+\newcommand{\themename}{\textbf{\textsc{metropolis}}\xspace}
15+
16+\title{Metropolis}
17+\subtitle{A modern beamer theme}
18+% \date{\today}
19+\date{}
20+\author{Matthias Vogelgesang}
21+\institute{Center for modern beamer themes}
22+% \titlegraphic{\hfill\includegraphics[height=1.5cm]{logo.pdf}}
23+
24+\begin{document}
25+
26+\maketitle
27+
28+\begin{frame}{Table of contents}
29+ \setbeamertemplate{section in toc}[sections numbered]
30+ \tableofcontents[hideallsubsections]
31+\end{frame}
32+
33+\section{Introduction}
34+
35+\begin{frame}[fragile]{Metropolis}
36+
37+ The \themename theme is a Beamer theme with minimal visual noise
38+ inspired by the \href{https://github.com/hsrmbeamertheme/hsrmbeamertheme}{\textsc{hsrm} Beamer
39+ Theme} by Benjamin Weiss.
40+
41+ Enable the theme by loading
42+
43+ \begin{verbatim} \documentclass{beamer}
44+ \usetheme{metropolis}\end{verbatim}
45+
46+ Note, that you have to have Mozilla's \emph{Fira Sans} font and XeTeX
47+ installed to enjoy this wonderful typography.
48+\end{frame}
49+\begin{frame}[fragile]{Sections}
50+ Sections group slides of the same topic
51+
52+ \begin{verbatim} \section{Elements}\end{verbatim}
53+
54+ for which \themename provides a nice progress indicator \ldots
55+\end{frame}
56+
57+\section{Titleformats}
58+
59+\begin{frame}{Metropolis titleformats}
60+ \themename supports 4 different titleformats:
61+ \begin{itemize}
62+ \item Regular
63+ \item \textsc{Smallcaps}
64+ \item \textsc{allsmallcaps}
65+ \item ALLCAPS
66+ \end{itemize}
67+ They can either be set at once for every title type or individually.
68+\end{frame}
69+
70+{
71+ \metroset{titleformat frame=smallcaps}
72+\begin{frame}{Small caps}
73+ This frame uses the \texttt{smallcaps} titleformat.
74+
75+ \begin{alertblock}{Potential Problems}
76+ Be aware, that not every font supports small caps. If for example you typeset your presentation with pdfTeX and the Computer Modern Sans Serif font, every text in smallcaps will be typeset with the Computer Modern Serif font instead.
77+ \end{alertblock}
78+\end{frame}
79+}
80+
81+{
82+\metroset{titleformat frame=allsmallcaps}
83+\begin{frame}{All small caps}
84+ This frame uses the \texttt{allsmallcaps} titleformat.
85+
86+ \begin{alertblock}{Potential problems}
87+ As this titleformat also uses smallcaps you face the same problems as with the \texttt{smallcaps} titleformat. Additionally this format can cause some other problems. Please refer to the documentation if you consider using it.
88+
89+ As a rule of thumb: Just use it for plaintext-only titles.
90+ \end{alertblock}
91+\end{frame}
92+}
93+
94+{
95+\metroset{titleformat frame=allcaps}
96+\begin{frame}{All caps}
97+ This frame uses the \texttt{allcaps} titleformat.
98+
99+ \begin{alertblock}{Potential Problems}
100+ This titleformat is not as problematic as the \texttt{allsmallcaps} format, but basically suffers from the same deficiencies. So please have a look at the documentation if you want to use it.
101+ \end{alertblock}
102+\end{frame}
103+}
104+
105+\section{Elements}
106+
107+\begin{frame}[fragile]{Typography}
108+ \begin{verbatim}The theme provides sensible defaults to
109+\emph{emphasize} text, \alert{accent} parts
110+or show \textbf{bold} results.\end{verbatim}
111+
112+ \begin{center}becomes\end{center}
113+
114+ The theme provides sensible defaults to \emph{emphasize} text,
115+ \alert{accent} parts or show \textbf{bold} results.
116+\end{frame}
117+
118+\begin{frame}{Font feature test}
119+ \begin{itemize}
120+ \item Regular
121+ \item \textit{Italic}
122+ \item \textsc{SmallCaps}
123+ \item \textbf{Bold}
124+ \item \textbf{\textit{Bold Italic}}
125+ \item \textbf{\textsc{Bold SmallCaps}}
126+ \item \texttt{Monospace}
127+ \item \texttt{\textit{Monospace Italic}}
128+ \item \texttt{\textbf{Monospace Bold}}
129+ \item \texttt{\textbf{\textit{Monospace Bold Italic}}}
130+ \end{itemize}
131+\end{frame}
132+
133+\begin{frame}{Lists}
134+ \begin{columns}[T,onlytextwidth]
135+ \column{0.33\textwidth}
136+ Items
137+ \begin{itemize}
138+ \item Milk \item Eggs \item Potatos
139+ \end{itemize}
140+
141+ \column{0.33\textwidth}
142+ Enumerations
143+ \begin{enumerate}
144+ \item First, \item Second and \item Last.
145+ \end{enumerate}
146+
147+ \column{0.33\textwidth}
148+ Descriptions
149+ \begin{description}
150+ \item[PowerPoint] Meeh. \item[Beamer] Yeeeha.
151+ \end{description}
152+ \end{columns}
153+\end{frame}
154+\begin{frame}{Animation}
155+ \begin{itemize}[<+- | alert@+>]
156+ \item \alert<4>{This is\only<4>{ really} important}
157+ \item Now this
158+ \item And now this
159+ \end{itemize}
160+\end{frame}
161+\begin{frame}{Figures}
162+ \begin{figure}
163+ \newcounter{density}
164+ \setcounter{density}{20}
165+ \begin{tikzpicture}
166+ \def\couleur{alerted text.fg}
167+ \path[coordinate] (0,0) coordinate(A)
168+ ++( 90:5cm) coordinate(B)
169+ ++(0:5cm) coordinate(C)
170+ ++(-90:5cm) coordinate(D);
171+ \draw[fill=\couleur!\thedensity] (A) -- (B) -- (C) --(D) -- cycle;
172+ \foreach \x in {1,...,40}{%
173+ \pgfmathsetcounter{density}{\thedensity+20}
174+ \setcounter{density}{\thedensity}
175+ \path[coordinate] coordinate(X) at (A){};
176+ \path[coordinate] (A) -- (B) coordinate[pos=.10](A)
177+ -- (C) coordinate[pos=.10](B)
178+ -- (D) coordinate[pos=.10](C)
179+ -- (X) coordinate[pos=.10](D);
180+ \draw[fill=\couleur!\thedensity] (A)--(B)--(C)-- (D) -- cycle;
181+ }
182+ \end{tikzpicture}
183+ \caption{Rotated square from
184+ \href{http://www.texample.net/tikz/examples/rotated-polygons/}{texample.net}.}
185+ \end{figure}
186+\end{frame}
187+\begin{frame}{Tables}
188+ \begin{table}
189+ \caption{Largest cities in the world (source: Wikipedia)}
190+ \begin{tabular}{lr}
191+ \toprule
192+ City & Population\\
193+ \midrule
194+ Mexico City & 20,116,842\\
195+ Shanghai & 19,210,000\\
196+ Peking & 15,796,450\\
197+ Istanbul & 14,160,467\\
198+ \bottomrule
199+ \end{tabular}
200+ \end{table}
201+\end{frame}
202+\begin{frame}{Blocks}
203+ Three different block environments are pre-defined and may be styled with an
204+ optional background color.
205+
206+ \begin{columns}[T,onlytextwidth]
207+ \column{0.5\textwidth}
208+ \begin{block}{Default}
209+ Block content.
210+ \end{block}
211+
212+ \begin{alertblock}{Alert}
213+ Block content.
214+ \end{alertblock}
215+
216+ \begin{exampleblock}{Example}
217+ Block content.
218+ \end{exampleblock}
219+
220+ \column{0.5\textwidth}
221+
222+ \metroset{block=fill}
223+
224+ \begin{block}{Default}
225+ Block content.
226+ \end{block}
227+
228+ \begin{alertblock}{Alert}
229+ Block content.
230+ \end{alertblock}
231+
232+ \begin{exampleblock}{Example}
233+ Block content.
234+ \end{exampleblock}
235+
236+ \end{columns}
237+\end{frame}
238+\begin{frame}{Math}
239+ \begin{equation*}
240+ e = \lim_{n\to \infty} \left(1 + \frac{1}{n}\right)^n
241+ \end{equation*}
242+\end{frame}
243+\begin{frame}{Line plots}
244+ \begin{figure}
245+ \begin{tikzpicture}
246+ \begin{axis}[
247+ mlineplot,
248+ width=0.9\textwidth,
249+ height=6cm,
250+ ]
251+
252+ \addplot {sin(deg(x))};
253+ \addplot+[samples=100] {sin(deg(2*x))};
254+
255+ \end{axis}
256+ \end{tikzpicture}
257+ \end{figure}
258+\end{frame}
259+\begin{frame}{Bar charts}
260+ \begin{figure}
261+ \begin{tikzpicture}
262+ \begin{axis}[
263+ mbarplot,
264+ xlabel={Foo},
265+ ylabel={Bar},
266+ width=0.9\textwidth,
267+ height=6cm,
268+ ]
269+
270+ \addplot plot coordinates {(1, 20) (2, 25) (3, 22.4) (4, 12.4)};
271+ \addplot plot coordinates {(1, 18) (2, 24) (3, 23.5) (4, 13.2)};
272+ \addplot plot coordinates {(1, 10) (2, 19) (3, 25) (4, 15.2)};
273+
274+ \legend{lorem, ipsum, dolor}
275+
276+ \end{axis}
277+ \end{tikzpicture}
278+ \end{figure}
279+\end{frame}
280+\begin{frame}{Quotes}
281+ \begin{quote}
282+ Veni, Vidi, Vici
283+ \end{quote}
284+\end{frame}
285+
286+{%
287+\setbeamertemplate{frame footer}{My custom footer}
288+\begin{frame}[fragile]{Frame footer}
289+ \themename defines a custom beamer template to add a text to the footer. It can be set via
290+ \begin{verbatim}\setbeamertemplate{frame footer}{My custom footer}\end{verbatim}
291+\end{frame}
292+}
293+
294+\begin{frame}{References}
295+ Some references to showcase [allowframebreaks] \cite{knuth92,ConcreteMath,Simpson,Er01,greenwade93}
296+\end{frame}
297+
298+\section{Conclusion}
299+
300+\begin{frame}{Summary}
301+
302+ Get the source of this theme and the demo presentation from
303+
304+ \begin{center}\url{github.com/matze/mtheme}\end{center}
305+
306+ The theme \emph{itself} is licensed under a
307+ \href{http://creativecommons.org/licenses/by-sa/4.0/}{Creative Commons
308+ Attribution-ShareAlike 4.0 International License}.
309+
310+ \begin{center}\ccbysa\end{center}
311+
312+\end{frame}
313+
314+{\setbeamercolor{palette primary}{fg=black, bg=yellow}
315+\begin{frame}[standout]
316+ Questions?
317+\end{frame}
318+}
319+
320+\appendix
321+
322+\begin{frame}[fragile]{Backup slides}
323+ Sometimes, it is useful to add slides at the end of your presentation to
324+ refer to during audience questions.
325+
326+ The best way to do this is to include the \verb|appendixnumberbeamer|
327+ package in your preamble and call \verb|\appendix| before your backup slides.
328+
329+ \themename will automatically turn off slide numbering and progress bars for
330+ slides in the appendix.
331+\end{frame}
332+
333+\begin{frame}[allowframebreaks]{References}
334+
335+ \bibliography{demo}
336+ \bibliographystyle{abbrv}
337+
338+\end{frame}
339+
340+\end{document}
341+