12.6.12

Adding footnotes in tables (or other floats)



I recently wanted to put a footnote reference inside a table. Unfortunately, LaTeX
makes it somewhat difficult to add footnotes inside floats (e.g., tabular). If you try
to put a footnote inside a tabular, then pdflatex will show the reference but not the footnote itself! I came across several suggestions for fixing this:
One idea is to put the table in a minipage. This causes the footnote to show up at
the bottom of the table (in its own numbering system) — but I wanted the footnote
to show up at the bottom of the page like other footnotes!
Another idea was to manually specify the footnote number inside the text and then
use the\footnotetext command (outside the tabular) to manually add the footer. Unfortunately, this is not a robust solution since it forces you to manually maintain
this footnote number inside the tabular.
Building on the previous idea, I discovered a way to make footnotes appear inside tabularswithout breaking the automatic numbering of footnotes. Here is my
approach:
  1. Include the “fmtcount” package so that you can display the values of 
  2. counters (e.g., the footnote counter):
    \usepackage{fmtcount}
  3. Immediately before your tabular, increment the footnote counter:
    \addtocounter{footnote}{1}
  4. Next, specify the contents of the footnote:
    \footnotetext[\value{footnote}]{your text here}
  5. Finally, add a reference to the footnote inside the table:
    $^{\decimal{footnote}}$
You can extend this idea to add multiple footnotes within a single tabular
by adjusting the counters (using \addtocounter) appropriately. Here is a
complete example of how to add two footnotes inside a single tabular
(you can see the PDF output here):
\documentclass[12pt]{article}
 
\usepackage{fmtcount} % displaying latex counters
 
\begin{document}
    \title{An Example of Footnotes Inside a Tabular}
    \author{David Gridley Underhill}
    \maketitle
 
% manually add a footnote which exists inside the table
\addtocounter{footnote}{1}
\footnotetext[\value{footnote}]{my first footnote}
 
% add another footnote
\addtocounter{footnote}{1}
\footnotetext[\value{footnote}]{my second footnote}
 
% reset the counter to the first footnote's value
\addtocounter{footnote}{-1}
 
\begin{tabular}{|l|l|}
  \hline
  % this next row references the first footnote I added above, and then
  % advances the counter to the next footnote.
  {\bf First Column} & {\bf Second Column}$^{\decimal{footnote}}
   $\addtocounter{footnote}{1} \\
 
  \hline
  % now reference the second footnote from above -- don't increment 
  %the footnote 
  % counter beyond the last footnote!
  X & Y$^{\decimal{footnote}}$ \\
 
  \hline
\end{tabular}
 
\end{document}

Footnotes in tables


The standard LaTeX \footnote command doesn’t work in tables; the table traps the footnotes and they can’t escape to the bottom of the page. As a result, you get footnote marks in the table, and nothing else.
This accords with common typographic advice: footnotes and tables are reckoned not to mix.
The solution, if you accept the advice, is to use “table notes”. The package threeparttable provides table notes, and threeparttablex additionally supports them in longtables. Threeparttable works happily in ordinary text, or within a table float.
The ctable package extends the model of threeparttable, and also uses the ideas of the booktabs package. The \ctable command does the complete job of setting the table, placing the caption, and defining the notes. The “table” may consist of diagrams, and a parameter in \ctable’s optional argument makes the float that is created a “figure” rather than a “table”.
If you really want “real” footnotes in tables, despite the expert advice, you can:
·         Use \footnotemark to position the little marker appropriately, and then put in \footnotetext commands to fill in the text once you’ve closed thetabular environment. This is described in Lamport’s book, but it gets messy if there’s more than one footnote.
·         Stick the table in a minipage. Footnotes in the table then “work”, in the minipage’s style, with no extra effort. (This is, in effect, somewhat like table notes, but the typeset appearance isn’t designed for the job.)
·         Use tabularx or longtable from the LaTeX tools distribution; they’re noticeably less efficient than the standard tabular environment, but they do allow footnotes.
·         Use tablefootnote; it provides a \tablefootnote, which does the job without fuss.
·         Use footnote, which provides an savenotes which collects all footnotes and emits them at the end of the environment; thus if you put your tabularenvironment inside the environment, the footnotes will appear as needed. Alternatively, you may use \makesavenoteenv{tabular} in the preamble of your document, and tables will all behave as if they were inside a savenotes environment.
·         Use mdwtab from the same bundle; it will handle footnotes as you might expect, and has other facilities to increase the beauty of your tables. Unfortunately, it may be incompatible with other table-related packages, though not those in the standard ‘tools’ bundle.
All the techniques listed will work, to some extent, whether in a float or in ordinary text. The author of this FAQ answer doesn’t actually recommend any of them, believing that table notes are the way to go…
ctable.sty
footnote.sty
longtable.sty
mdwtab.sty
tablefootnote.sty
threeparttable.sty
threeparttablex.sty
tabularx.sty

For more info visit 

Notas al pie


La forma más sencilla de incluir notas a pie de página en LATEX es usando:
\footnote{''nota al pie''}
Por ejemplo, si escribimos
 ... y, de hecho, el mal entendimiento respecto del carácter puramente existencial del axioma de elección ha llevado a muchas discusiones estériles durante algunas décadas\footnote{cf. F. P. Ramsey. \textit{The foundations of Mathematics}, London Mathematical Society.}
obtenemos

En realidad, la instrucción general para poner notas al pie de página es la siguiente:
\footnote[''marca'']{''nota al pie''}
El valor opcional determina el tipo de marca de la nota al pie. Por ejemplo, si queremos que la marca de nuestra nota al pie sea 3, entonces escribimos \footnote[3]{''nota al pie''}.
Más aún, podemos cambiar el tipo de numeración de las notas al pie como sigue:
\renewcommand{\thefootnote}{\arabic{footnote}}Numeración arábiga: 1, 2, 3...
\renewcommand{\thefootnote}{\roman{footnote}}Numeración romana en minúsculas: i, ii, iii...
\renewcommand{\thefootnote}{\Roman{footnote}}Numeración romana en ayúsculas: I, II, III...
\renewcommand{\thefootnote}{\alph{footnote}}Numeración alfabética en minúsculas a, b, c...
\renewcommand{\thefootnote}{\Alph{footnote}}Numeración alfabética en mayúsculas: A, B, C...
\renewcommand{\thefootnote}{\fnsymbol{footnote}}No números, sino símbolos diversos

El largo y el ancho de la línea de la nota al pie está determinada por la definición del comando \footnoterule. La definición original que da LATEX de este comando equivale a la siguiente:
\newcommand{\footnoterule}{\vspace*{-3pt}
  \noindent\rule{2in}{0.4pt}\vspace*{2.6pt}}
Así, si queremos que la línea de la nota al pie tenga un largo de 5cm y un ancho de 1pt, escribimos en el preámbulo
\renewcommand{\footnoterule}{\vspace*{-3pt}
  \noindent\rule{5cm}{1pt}\vspace*{2.6pt}}
Con esta definición, el aspecto de la página del ejemplo anterior sería la siguiente:

11.6.12

Online LaTeX Compilers and plugins for PowerPoint


10.6.12

Ejemplo beamer comentado


\title{beamer examples}
\subtitle{created with beamer 3.x}
\author{Matthias Pospiech}
\institute{University of Hannover}
\titlegraphic{}
\date{\today}
% --------------------------------------------------- Slide --
\begin{frame}[plain]
  \titlepage
\end{frame}
% --------------------------------------------------- Slide --
% \section[Contents]{}
% ------------------------------------------------------------
% \begin{frame}
%  \frametitle{Contents}
%  \tableofcontents[%
%   currentsection, % causes all sections but the current to be shown in a semi-transparent way.
% %   currentsubsection, % causes all subsections but the current subsection in the current section to ...
% %   hideallsubsections, % causes all subsections to be hidden.
%   hideothersubsections, % causes the subsections of sections other than the current one to be hidden.
% %   part=, % part number causes the table of contents of part part number to be shown
%   pausesections, % causes a \pause command to be issued before each section. This is useful if you
% %   pausesubsections, %  causes a \pause command to be issued before each subsection.
% %   sections={ overlay specification },
%  ]
% \end{frame}
% --------------------------------------------------- PART ---
\part{Tutorial}
\frame{\partpage}
% ------------------------------------------------------------
\begin{frame}
 \frametitle{Contents}
 \tableofcontents[%
%   currentsection, % causes all sections but the current to be shown in a semi-transparent way.
%   currentsubsection, % causes all subsections but the current subsection in the current section to ...
%   hideallsubsections, % causes all subsections to be hidden.
%   hideothersubsections, % causes the subsections of sections other than the current one to be hidden.
%   part=, % part number causes the table of contents of part part number to be shown
  pausesections, % causes a \pause command to be issued before each section. This is useful if you
%   pausesubsections, %  causes a \pause command to be issued before each subsection.
%   sections={ overlay specification },
 ]
\end{frame}
% ------------------------------------------------------------
\section{Tutorial: Euclid's Presentation}
% ------------------------------------------------------------
% --------------------------------------------------- Slide --
\subsection{Creating a Simple Frame}
% ------------------------------------------------------------
\begin{frame}
  \frametitle{What Are Prime Numbers?}
  A prime number is a number that has exactly two divisors.
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}
  \frametitle{What Are Prime Numbers?}
  \begin{definition}
    A \alert{prime number} is a number that has exactly two divisors
  \end{definition}
  \begin{example}
    \begin{itemize}
    \item 2 is prime (two divisors: 1 and 2).
    \item 3 is prime (two divisors: 1 and 3).
    \item 4 is not prime (\alert{three} divisors: 1, 2, and 4).
    \end{itemize}
  \end{example}
\end{frame}
% --------------------------------------------------- Slide --
\subsection{Creating Simple Overlays}
% ------------------------------------------------------------
\begin{frame}
  \frametitle{What Are Prime Numbers?}
  \begin{definition}
    A \alert{prime number} is a number that has exactly two divisors
  \end{definition}
  \begin{example}
  \begin{itemize}
   \item 2 is prime (two divisors: 1 and 2).
     \pause
   \item 3 is prime (two divisors: 1 and 3).
     \pause
   \item 4 is not prime (\alert{three} divisors: 1, 2, and 4).
  \end{itemize}
  \end{example}
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}
  \frametitle{There Is No Largest Prime Number}
  \framesubtitle{The proof uses \textit{reductio ad absurdum}.}
  \begin{theorem}
    There is no largest prime number.
  \end{theorem}
  \begin{proof}
    \begin{enumerate}
    \item<1-> Suppose $p$ were the largest prime number.
    \item<2-> Let $q$ be the product of the first $p$ numbers.
    \item<3-> Then $q + 1$ is not divisible by any of them.
    \item<1-> Thus $q + 1$ is also prime and greater than $p$.\qedhere
    \end{enumerate}
  \end{proof}
  \uncover<4->{The proof used \textit{reductio ad absurdum}.}
\end{frame}
% --------------------------------------------------- Slide --
\subsection{Structuring a Frame}
% ------------------------------------------------------------
\newtheorem{answeredquestions}[theorem]{Answered Questions}
\newtheorem{openquestions}[theorem]{Open Questions}
% ------------------------------------------------------------
\begin{frame}
  \frametitle{What's Still To Do?}
  \begin{block}{Answered Questions}
    How many primes are there?
  \end{block}
  \begin{block}{Open Questions}
    Is every even number the sum of two primes?
  \end{block}
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}
  \frametitle{What's Still To Do?}
  \begin{itemize}
  \item Answered Questions
    \begin{itemize}
    \item How many primes are there?
    \end{itemize}
  \item Open Questions
    \begin{itemize}
    \item Is every even number the sum of two primes?
    \end{itemize}
  \end{itemize}
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}
  \frametitle{What's Still To Do?}
  \begin{columns}
    \column{.5\textwidth}
      \begin{block}{Answered Questions}
        How many primes are there?
      \end{block}
    \column{.5\textwidth}
      \begin{block}{Open Questions}
        Is every even number the sum of two primes?
        \cite{Goldbach1742}
      \end{block}
  \end{columns}
\end{frame}
% --------------------------------------------------- Slide --
\subsection{Verbatim Text}
% ------------------------------------------------------------
\begin{frame}[fragile]
  \frametitle{An Algorithm For Finding Primes Numbers.}
 \begin{verbatim}
int main (void)
{
  std::vector is_prime (100, true);
  for (int i = 2; i < 100; i++)
    if (is_prime[i])
      {
        std::cout << i << " ";
        for (int j = i; j < 100;
            is_prime [j] = false, j+=i);
      }
  return 0;
}
 \end{verbatim}
%  \begin{uncoverenv}<2>
%     Note the use of \verb|std::|.
%  \end{uncoverenv}
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}[fragile]
  \frametitle{An Algorithm For Finding Primes Numbers.}
\begin{semiverbatim}
\uncover<1->{\alert<0>{int main (void)}}
\uncover<1->{\alert<0>{\{}}
\uncover<1->{\alert<1>{ \alert<4>{std::}vector is_prime (100, true);}}
\uncover<1->{\alert<1>{ for (int i = 2; i < 100; i++)}}
\uncover<2->{\alert<2>{    if (is_prime[i])}}
\uncover<2->{\alert<0>{      \{}}
\uncover<3->{\alert<3>{        \alert<4>{std::}cout << i << " ";}}
\uncover<3->{\alert<3>{        for (int j = i; j < 100;}}
\uncover<3->{\alert<3>{             is_prime [j] = false, j+=i);}}
\uncover<2->{\alert<0>{      \}}}
\uncover<1->{\alert<0>{ return 0;}}
\uncover<1->{\alert<0>{\}}}
\end{semiverbatim}
  \visible<4->{Note the use of \alert{\texttt{std::}}.}
\end{frame}
% --------------------------------------------------- PART ---
\part{Howtos}
\frame{\partpage}
% ------------------------------------------------------------
\begin{frame}
 \frametitle{Contents}
 \tableofcontents[%
%   currentsection, % causes all sections but the current to be shown in a semi-transparent way.
%   currentsubsection, % causes all subsections but the current subsection in the current section to ...
%   hideallsubsections, % causes all subsections to be hidden.
%   hideothersubsections, % causes the subsections of sections other than the current one to be hidden.
%   part=, % part number causes the table of contents of part part number to be shown
  pausesections, % causes a \pause command to be issued before each section. This is useful if you
%   pausesubsections, %  causes a \pause command to be issued before each subsection.
%   sections={ overlay specification },
 ]
\end{frame}
% ------------------------------------------------------------
\section{How To Uncover Things Piecewise}
% ------------------------------------------------------------
\subsection{Uncovering an Enumeration Piecewise}
% ------------------------------------------------------------
\begin{frame}
\begin{itemize}
\item<1-> First point.
\item<2-> Second point.
\item<3-> Third point.
\end{itemize}
 
\begin{itemize}[<+->]
\item First point.
\item Second point.
\item Third point.
\end{itemize}
 
\begin{itemize}[<+->]
\item First point.
\item<.-> Second point.
\item Third point.
\end{itemize}
\end{frame}
% --------------------------------------------------- Slide --
\subsection{Hilighting the Current Item in an Enumeration}
% ------------------------------------------------------------
\begin{frame}
\begin{itemize}
\item<1-| alert@1> First point.
\item<2-| alert@2> Second point.
\item<3-| alert@3> Third point.
\end{itemize}
or
\begin{itemize}[<+-| alert@+>]
\item First point.
\item Second point.
\item Third point.
\end{itemize}
\end{frame}
% --------------------------------------------------- Slide --
\subsection{Changing Symbol Before an Enumeration}
% ------------------------------------------------------------
\newenvironment{ballotenv}
{\only{%
  \setbeamertemplate{itemize item}{code for showing a ballot}%
  \setbeamertemplate{itemize subitem}{code for showing a smaller ballot}%
  \setbeamertemplate{itemize subsubitem}{code for showing a smaller ballot}}}
{}
\begin{frame}
\begin{itemize}
\item<1-| ballot@1> First point.
\item<2-| ballot@2> Second point.
\item<3-| ballot@3> Third point.
\end{itemize}
and
\begin{itemize}[<+-| ballot@+>]
\item First point.
\item Second point.
\item Third point.
\end{itemize}
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}
In the following example, more and more items become "checked" from slide to slide:
\begin{itemize}[]
\item First point.
\item Second point.
\item Third point.
\end{itemize}
\end{frame}
% --------------------------------------------------- Slide --
\subsection{Uncovering Piecewise}
% ------------------------------------------------------------
\begin{frame}
Uncovering Tagged Formulas Piecewise
\begin{align}
  A &= B \\
    \uncover<2->{&= C \\}
    \uncover<3->{&= D \\}
    \notag
  \end{align}
\vskip-1.5em
\end{frame}
 
\begin{frame}
Uncovering a Table Rowwise \newline
\rowcolors[]{1}{blue!20}{blue!10}
\begin{tabular}{l!{\vrule}cccc}
  Class & A & B & C & D \\\hline
  X     & 1 & 2 & 3 & 4 \pause\\
  Y     & 3 & 4 & 5 & 6 \pause\\
  Z     &5&6&7&8
\end{tabular}
\end{frame}
 
\begin{frame}
Uncovering a Table Columnwise \newline
\rowcolors[]{1}{blue!20}{blue!10}
\begin{tabular}{l!{\vrule}c<{\onslide<2->}c<{\onslide<3->}c<{\onslide<4->}c<{\onslide}c}
  Class & A & B & C & D \\
  X     & 1 & 2 & 3 & 4 \\
  Y     & 3 & 4 & 5 & 6 \\
  Z     &5&6&7&8
\end{tabular}
\end{frame}
% --------------------------------------------------- PART ---
\part{Building a Presentation}
\frame{\partpage}
% ------------------------------------------------------------
\begin{frame}
 \frametitle{Contents}
 \tableofcontents[%
%    currentsection, % causes all sections but the current to be shown in a semi-transparent way.
%   currentsubsection, % causes all subsections but the current subsection in the current section to ...
   hideallsubsections, % causes all subsections to be hidden.
%   hideothersubsections, % causes the subsections of sections other than the current one to be hidden.
%   part=, % part number causes the table of contents of part part number to be shown
  pausesections, % causes a \pause command to be issued before each section. This is useful if you
%   pausesubsections, %  causes a \pause command to be issued before each subsection.
%   sections={ overlay specification },
 ]
\end{frame}
% --------------------------------------------------- Slide --
\section{Creating Overlays}
% ------------------------------------------------------------
\subsection{The Pause Commands}
% ------------------------------------------------------------
\begin{frame}
  \begin{itemize}
  \item
    Shown from first slide on.
  \pause
  \item
    Shown from second slide on.
    \begin{itemize}
    \item
      Shown from second slide on.
    \pause
    \item
      Shown from third slide on.
    \end{itemize}
  \item
    Shown from third slide on.
  \pause
  \item
    Shown from fourth slide on.
  \end{itemize}
  Shown from fourth slide on.
  \begin{itemize}
  \onslide
  \item
    Shown from first slide on.
  \pause
  \item
    Shown from fifth slide on.
  \end{itemize}
\end{frame}
% --------------------------------------------------- Slide --
\subsection{Commands with Overlay Specifications}
% ------------------------------------------------------------
\begin{frame}
  \textbf{This line is bold on all three slides.}
  \textbf<2>{This line is bold only on the second slide.}
  \textbf<3>{This line is bold only on the third slide.}
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}
  \only<1>{This line is inserted only on slide 1.}
  \only<2>{This line is inserted only on slide 2.}
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}
  Shown on first slide.
  \onslide<2-3>
  Shown on second and third slide.
  \begin{itemize}
  \item
    Still shown on the second and third slide.
  \onslide+<4->
  \item
    Shown from slide 4 on.
  \end{itemize}
  Shown from slide 4 on.
  \onslide
  Shown on all slides.
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}
  \onslide<1>{Same effect as the following command.}
  \uncover<1>{Same effect as the previous command.}
  \onslide+<2>{Same effect as the following command.}
  \visible<2>{Same effect as the previous command.}
  \onslide*<3>{Same effect as the following command.}
  \only<3>{Same effect as the previous command.}
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}
\temporal<3-4>{Shown on 1, 2}{Shown on 3, 4}{Shown 5, 6, 7, ...}
\temporal<3,5>{Shown on 1, 2, 4}{Shown on 3, 5}{Shown 6, 7, 8, ...}
\end{frame}
% --------------------------------------------------- Slide --
\def\colorize<#1>{%
  \temporal<#1>{\color{red!50}}{\color{black}}{\color{black!50}}}
\begin{frame}
  \begin{itemize}
    \colorize<1> \item First item.
    \colorize<2> \item Second item.
    \colorize<3> \item Third item.
    \colorize<4> \item Fourth item.
  \end{itemize}
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}
  \begin{enumerate}
  \item<3-| alert@3>[0.] A zeroth point, shown at the very end.
  \item<1-| alert@1> The first and main point.
  \item<2-| alert@2> The second point.
  \end{enumerate}
\end{frame}
% --------------------------------------------------- Slide --
\subsection{Environments with Overlay Specifications}
% ------------------------------------------------------------
\begin{frame}
  \frametitle{A Theorem on Infinite Sets}
  \begin{theorem}<1->
    There exists an infinite set.
  \end{theorem}
  \begin{proof}<3->
    This follows from the axiom of infinity.
  \end{proof}
  \begin{example}<2->
    The set of natural numbers is infinite.
  \end{example}
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}
  This line is always shown.
  \begin{onlyenv}<2>
    This line is inserted on slide 2.
  \end{onlyenv}
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}
  This
  \begin{altenv}<2>{(}{)}{[}{]}
    word
  \end{altenv}
  is in round brackets on slide 2 and in square brackets on slide 1.
\end{frame}
% --------------------------------------------------- Slide --
\subsection{Dynamically Changing Text or Images}
% ------------------------------------------------------------
\begin{frame}
 \begin{overlayarea}{\textwidth}{3cm}
    \only<1>{Some text for the first slide.\\ Possibly several lines long.}
    \only<2>{Replacement on the second slide.}
 \end{overlayarea}
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}
 \begin{overprint}
    \onslide<1| handout:1>
      Some text for the first slide.\\
      Possibly several lines long.
    \onslide<2| handout:0>
      Replacement on the second slide. Supressed for handout.
 \end{overprint}
\end{frame}
% --------------------------------------------------- Slide --
\subsection{Advanced Overlay Specifications}
% ------------------------------------------------------------
\begin{frame}
  \begin{actionenv}<1-| alert@3-4,6>
    This text is shown the same way as the text below.
  \end{actionenv}
  \begin{uncoverenv}<2->
    \begin{alertenv}<3-4,6>
      This text is shown the same way as the text above.
    \end{alertenv}
  \end{uncoverenv}
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}
 \begin{itemize}
  \item<+-> Apple
  \item<+-> Peach
  \item<+-> Plum
  \item<+-> Orange
 \end{itemize}
 
 \begin{itemize}[<+-| alert@+>]
  \item Apple
  \item Peach
  \item Plum
  \item Orange
 \end{itemize}
 
 \begin{itemize}[<+->]
  \item This is \alert<.>{important}.
  \item We want to \alert<.>{highlight} this and \alert<.>{this}.
  \item What is the \alert<.>{matrix}?
 \end{itemize}
\end{frame}
% --------------------------------------------------- Slide --
% \section{Adding Parts}
% % ------------------------------------------------------------
% \frame{\titlepage}
% \section*{Outlines}
% \subsection{Part I: Review of Previous Lecture}
% \frame{
%   \frametitle{Outline of Part I}
%   \tableofcontents[part=1]}
% \subsection{Part II: Today's Lecture}
% \frame{
%   \frametitle{Outline of Part II}
%   \tableofcontents[part=2]}
% \part{Review of Previous Lecture}
% \frame{\partpage}
% \section[Previous Lecture]{Summary of the Previous Lecture}
% \subsection{Topics}
% \frame{...}
% \subsection{Learning Objectives}
% \frame{...}
% \part{Today's Lecture}
% \frame{\partpage}
% \section{Topic A}
% \frame{\tableofcontents[currentsection]}
% \subsection{Foo}
% \frame{...}
% \section{Topic B}
% \frame{\tableofcontents[currentsection]}
% \subsection{bar}
% \frame{...}
% --------------------------------------------------- Slide --
\section{Structuring a Presentation: The Interactive Global Structure}
% ------------------------------------------------------------
\subsection{Adding Hyperlinks and Buttons}
% ------------------------------------------------------------
\begin{frame}
  \begin{itemize}
  \item<1-> First item.
  \item<2-> Second item.
  \item<3-> Third item.
  \end{itemize}
  \hyperlink{jumptosecond}{\beamergotobutton{Jump to second slide}}
  \hypertarget<2>{jumptosecond}{}
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}[label=threeitems]
  \begin{itemize}
  \item<1-> First item.
  \item<2-> Second item.
  \item<3-> Third item.
  \end{itemize}
  \hyperlink{threeitems<2>}{\beamergotobutton{Jump to second slide}}
\end{frame}
% --------------------------------------------------- Slide --
\frame{
  \begin{theorem}
    ...
  \end{theorem}
  \begin{overprint}
  \onslide<1>
    \hfill\hyperlinkframestartnext{\beamerskipbutton{Skip proof}}
  \onslide<2>
    \begin{proof}
      ...
    \end{proof}
  \end{overprint}
}
% --------------------------------------------------- Slide --
% \frame<1>[label=mytheorem]
% {
%   \begin{theorem}
%     ...
%   \end{theorem}
%   \begin{overprint}
%   \onslide<1>
%     \hfill\hyperlink{mytheorem<2>}{\beamergotobutton{Go to proof details}}
%   \onslide<2>
%     \begin{proof}
%       ...
%     \end{proof}
%     \hfill\hyperlink{mytheorem<1>}{\beamerreturnbutton{Return}}
%   \end{overprint}
% }
% \appendix
% \againframe<2>{mytheorem}
% % --------------------------------------------------- Slide --
% \subsection{Repeating a Frame at a Later Point}
% % ------------------------------------------------------------
% \frame<1-2>[label=myframe]
% {
%   \begin{itemize}
%   \item First subject.
%   \item Second subject.
%   \item Third subject.
%   \end{itemize}
% }
% \frame
% {
%   Some stuff explaining more on the second matter.
% }
% \againframe<3>{myframe}
% --------------------------------------------------- Slide --
% \subsection{Adding Anticipated Zooming}
% % ------------------------------------------------------------
% \begin{frame}<1>[label=zooms]
%   \frametitle<1>{A Complicated Picture}
%   \framezoom<1><2>[border](0cm,0cm)(2cm,1.5cm)
%   \framezoom<1><3>[border](1cm,3cm)(2cm,1.5cm)
%   \framezoom<1><4>[border](3cm,2cm)(3cm,2cm)
%   \pgfimage[height=8cm]{complicatedimagefilename}
% \end{frame}
% \againframe<2->[plain]{zooms}
% --------------------------------------------------- Slide --
\section{Structuring a Presentation: The Local Structure}
% ------------------------------------------------------------
\subsection{Itemizations, Enumerations, and Descriptions}
% ------------------------------------------------------------
\begin{frame}
  There are three important points:
  \begin{enumerate}
  \item<1-> A first one,
  \item<2-> a second one with a bunch of subpoints,
    \begin{itemize}
    \item first subpoint. (Only shown from second slide on!).
    \item<3-> second subpoint added on third slide.
    \item<4-> third subpoint added on fourth slide.
    \end{itemize}
  \item<5-> and a third one.
  \end{enumerate}
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}
\begin{itemize}[<+->]
\item This is shown from the first slide on.
\item This is shown from the second slide on.
\item This is shown from the third slide on.
\item<1-> This is shown from the first slide on.
\item This is shown from the fourth slide on.
\end{itemize}
\end{frame}
% --------------------------------------------------- Slide --
\begin{frame}
\begin{description}[<+->][longest label]
\item[short] Some text.
\item[longest label] Some text.
\item[long label] Some text.
\end{description}
\end{frame}
% --------------------------------------------------- Slide --
\subsection{Block Environments}
% ------------------------------------------------------------
\begin{frame}
 \begin{block}<1->{Definition}
    A \alert{set} consists of elements.
 \end{block}
 \begin{alertblock}{Wrong Theorem}
    $1=2$.
 \end{alertblock}
 \begin{exampleblock}{Example}
    The set $\{1,2,3,5\}$ has four elements.
 \end{exampleblock}
\end{frame}
% --------------------------------------------------- Slide --
\subsection{Theorem Environments}
% ------------------------------------------------------------
\begin{frame}
  \frametitle{A Theorem on Infinite Sets}
  \begin{theorem}<1->
    There exists an infinite set.
  \end{theorem}
  \begin{proof}<2->
    This follows from the axiom of infinity.
  \end{proof}
  \begin{example}<3->[Natural Numbers]
    The set of natural numbers is infinite.
  \end{example}
\end{frame}
% --------------------------------------------------- Slide --
\subsection{Framed and Boxed Text}
% ------------------------------------------------------------
\begin{frame}
 \begin{beamercolorbox}[ht=2.5ex,dp=1ex,center]{title in head/foot}
    \usebeamerfont{title in head/foot}
    \insertshorttitle
 \end{beamercolorbox}%
 \begin{beamercolorbox}[ht=2.5ex,dp=1ex,center]{author in head/foot}
    \usebeamerfont{author in head/foot}
    \insertshortauthor
 \end{beamercolorbox}
 \mbox{}\medskip\newline
 Typesetting a postit:\newline
 \setbeamercolor{postit}{fg=black,bg=yellow}
 \begin{beamercolorbox}[sep=1em,wd=5cm]{postit}
    Place me somewhere!
 \end{beamercolorbox}
 \mbox{}\medskip\newline
 \begin{beamerboxesrounded}[upper=block head,lower=block body,shadow=true]{Theorem}
    $A = B$.
 \end{beamerboxesrounded}
\end{frame}
% --------------------------------------------------- Slide --
\subsection{Splitting a Frame into Multiple Columns}
% ------------------------------------------------------------
\begin{frame}
 \begin{columns}[t]
    \begin{column}{5cm}
      Two\\lines.
    \end{column}
    \begin{column}{5cm}
      One line (but aligned).
    \end{column}
 \end{columns}
\end{frame}
% --------------------------------------------------- Slide --
\section{Animations, Sounds, and Slide Transitions}
% ------------------------------------------------------------
\subsection{Animations Created by Showing Slides in Rapid Succession}
% ------------------------------------------------------------
% \begin{frame}
%   \frametitle{A Five Slide Animation}
%   \animate<2-4>
%   ... code for creating an animation with five slides ...
% \end{frame}
% --------------------------------------------------- Slide --
\newcount\opaqueness
\begin{frame}
  anomations only work in full screen mode in Acrobat Reader !
  \animate<2-10>
  \animatevalue<1-10>{\opaqueness}{100}{0}
  \begin{colormixin}{\the\opaqueness!averagebackgroundcolor}
    \frametitle{Fadeout Frame}
    This text (and all other frame content) will fade out when the
    second slide is shown. This even works with
    {\color{green!90!black}colored} \alert{text}.
  \end{colormixin}
\end{frame}
\newcount\opaqueness
\newdimen\offset
\begin{frame}
  \frametitle{Flying Theorems (You Really Shouldn't!)}
  \animate<2-14>
  \animatevalue<1-15>{\opaqueness}{100}{0}
  \animatevalue<1-15>{\offset}{0cm}{-5cm}
  \begin{colormixin}{\the\opaqueness!averagebackgroundcolor}
  \hskip\offset
    \begin{minipage}{\textwidth}
      \begin{theorem}
        This theorem flies out.
      \end{theorem}
    \end{minipage}
  \end{colormixin}
  \animatevalue<1-15>{\opaqueness}{0}{100}
  \animatevalue<1-15>{\offset}{-5cm}{0cm}
  \begin{colormixin}{\the\opaqueness!averagebackgroundcolor}
  \hskip\offset
    \begin{minipage}{\textwidth}
      \begin{theorem}
        This theorem flies in.
      \end{theorem}
    \end{minipage}
  \end{colormixin}
\end{frame}
% --------------------------------------------------- Slide --
\subsection{Slide Transitions}
% ------------------------------------------------------------
\begin{frame}
 Slide Transitions only work in full screen mode in Acrobat Reader !
  \begin{example}<1,6,11>[examples for Slide Transitions]{This line is shown on each slide of slide transitions}\end{example}
  \begin{example}<2,7,12>[examples for Slide Transitions]{This line is shown on each slide of slide transitions}\end{example}
  \begin{example}<3,8>[examples for Slide Transitions]{This line is shown on each slide of slide transitions}\end{example}
  \begin{example}<4,9>[examples for Slide Transitions]{This line is shown on each slide of slide transitions}\end{example}
  \begin{example}<5,10>[examples for Slide Transitions]{This line is shown on each slide of slide transitions}\end{example}
  \transdissolve<1>[duration=0.2]
  \transblindshorizontal<2>
  \transblindsvertical<3>
  \transboxin<4>
  \transboxout<5>
  \transdissolve<6>[duration=0.2]
  \transglitter<7>[direction=90]
  \transsplitverticalin<8>
  \transsplitverticalout<9>
  \transsplithorizontalin<10>
  \transsplithorizontalout<11>
  \transwipe<12>[direction=90]
\end{frame}
 
% --------------------------------------------------- Slide --
\section{Adding Notes}
% ------------------------------------------------------------
\begin{frame}
  \begin{itemize}
  \item<1-> Eggs
  \item<2-> Plants
    \note[item]<2>{Tell joke about plants.}
    \note[item]<2>{Make it short.}
  \item<3-> Animals
  \end{itemize}
\end{frame}
 
% % --------------------------------------------------- Slide --
% \begin{frame}
%
% \end{frame}
 
% ------------------------------------------------------------
\begin{thebibliography}{10}
\bibitem{Goldbach1742}[Goldbach, 1742]
  Christian Goldbach.
  \newblock A problem we should try to solve before the ISPN '43 deadline,
  \newblock \emph{Letter to Leonhard Euler}, 1742.
\end{thebibliography}