Seite 1 von 1

Druck bestimmter Slides von Beamer Klasse

Verfasst: Mo 16. Nov 2015, 22:02
von hoizi
Hallo,

ich habe meine erste Latex Beamer Präsentation erstellt.
Nun möchte ich ein Handout drucken.
Google liefert natürlich tausendfach das Ergebnis [handout].
Das Problem: Manche meiner Folien enthalten Bilder, die von Bildern "überdeckt" werden, bzw. in manchen Folien "update" ich items in der itemize Umgebung.
Das Ergebnis: Ein SEHR hässliches Handout.
Gibt es eine Möglichkeit nur die "fertige" Folie, also OHNE die Zwischenschritte zu drucken bzw. ein pdf dieser Ansichten zu erstellen?

Als Minimalbeispiel habe ich eine Folie eingefügt die diese Eigenschaften hat.
Mit [handout] sieht das sehr hässlich aus. Das PDF das ohne [handout] produziert wird nicht, aber es hat 10 Seiten.....
%MINIMAL BSP
\documentclass[handout]{beamer}


\usepackage[ngerman]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{url}
\usepackage[super, square, comma, numbers, sort&compress]{natbib}
\usepackage{color}
\usepackage{ulem}
\bibliographystyle{plainnat}
\newtheorem*{bem}{}
\newcommand{\rem}[1]{\textcolor{red}{\xout{#1}}}
\setbeamerfont{block body example}{family=\ttfamily,size=\scriptsize}

\usetheme{Boadilla}

\usecolortheme{default}




\begin{document}

\frame{\frametitle{Functions}
On first view, one might think, that Functions are very limited, compared to Methods. Functions can only hold one statement, the code of a Function is not compiled and they can only be used in annotations.\\ \visible<5->{
But, the power of Function comes from the fact that they can be used in annotations, while Methods cannot.}
\visible<2->{\begin{exampleblock}{}
\begin{itemize}
\item [] \textcolor[rgb]{0,0,1}{method} Pythagoras(\textcolor[rgb]{0.2,0.8,0.8}{a}:\textcolor[rgb]{0,0,1}{int},\textcolor[rgb]{0.2,0.8,0.8}{b}:\textcolor[rgb]{0,0,1}{int}) \textcolor[rgb]{0,0,1}{returns}(\textcolor[rgb]{0.2,0.8,0.8}{c}:\textcolor[rgb]{0,0,1}{int})
\item<1|only@1> []
\item<2|only@2> []
\item<3|only@3> []
\item<4|only@4> []
\item<5|only@5> []
\item<6|only@6> [] \visible<6-8>{\quad\textcolor[rgb]{0,0,1}{ensures} square(a)$>=$0}\quad\visible<7-8>{$\leftarrow$ \textsf{This will work}}
\item<7|only@7> [] \visible<6-8>{\quad\textcolor[rgb]{0,0,1}{ensures} square(a)$>=$0}\quad\visible<7-8>{$\leftarrow$ \textsf{This will work}}
\item<8|only@8> [] \visible<6-8>{\quad\textcolor[rgb]{0,0,1}{ensures} square(a)$>=$0}\quad\visible<7-8>{$\leftarrow$ \textsf{This will work}}
\item<9|only@9> []
\item<10|only@10> [] \quad\textcolor[rgb]{0,0,1}{ensures} c==square(a)+square(b)

\item [] \{
\item<2|only@2> [] \visible<3-8>{\quad\textcolor[rgb]{0,0,1}{var} \textcolor[rgb]{0.2,0.8,0.8}{c}:=square(a)+square(b);} \quad\visible<4-8>{$\leftarrow$ \textsf{This will not work}}
\item<3|only@3> [] \visible<3-8>{\quad\textcolor[rgb]{0,0,1}{var} \textcolor[rgb]{0.2,0.8,0.8}{c}:=square(a)+square(b);} \quad\visible<4-8>{$\leftarrow$ \textsf{This will not work}}
\item<4|only@4> [] \visible<3-8>{\quad\textcolor[rgb]{0,0,1}{var} \textcolor[rgb]{0.2,0.8,0.8}{c}:=square(a)+square(b);} \quad\visible<4-8>{$\leftarrow$ \textsf{This will not work}}
\item<5|only@5> [] \visible<3-8>{\quad\textcolor[rgb]{0,0,1}{var} \textcolor[rgb]{0.2,0.8,0.8}{c}:=square(a)+square(b);} \quad\visible<4-8>{$\leftarrow$ \textsf{This will not work}}
\item<6|only@6> [] \visible<3-8>{\quad\textcolor[rgb]{0,0,1}{var} \textcolor[rgb]{0.2,0.8,0.8}{c}:=square(a)+square(b);} \quad\visible<4-8>{$\leftarrow$ \textsf{This will not work}}
\item<7|only@7> [] \visible<3-8>{\quad\textcolor[rgb]{0,0,1}{var} \textcolor[rgb]{0.2,0.8,0.8}{c}:=square(a)+square(b);} \quad\visible<4-8>{$\leftarrow$ \textsf{This will not work}}
\item<8|only@8> [] \visible<3-8>{\quad\textcolor[rgb]{0,0,1}{var} \textcolor[rgb]{0.2,0.8,0.8}{c}:=square(a)+square(b);} \quad\visible<4-8>{$\leftarrow$ \textsf{This will not work}}
\item<9|only@9> [] 
\item<10|only@10> [] \quad c:=a*a+b*b;

\item [] \}
\end{itemize}
\end{exampleblock}}

\visible<8->{This means, one can use Functions to prove correctness of a Method.}
}

\end{document}

%ENDE

Verfasst: Di 17. Nov 2015, 08:21
von Noch so einer
Man kann Teile auch auf einen Modus beschränken, indem man als Beschränkung beispielsweise <beamer> angibt. Hier einmal per \only<beamer> gezeigt:
\documentclass[handout]{beamer}


\usepackage[ngerman]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{url}
\usepackage[super, square, comma, numbers, sort&compress]{natbib}
\usepackage{color}
\usepackage{ulem}
\bibliographystyle{plainnat}
\newtheorem*{bem}{}
\newcommand{\rem}[1]{\textcolor{red}{\xout{#1}}}
\setbeamerfont{block body example}{family=\ttfamily,size=\scriptsize}

\usetheme{Boadilla}

\usecolortheme{default}




\begin{document}

\frame{\frametitle{Functions}
On first view, one might think, that Functions are very limited, compared to Methods. Functions can only hold one statement, the code of a Function is not compiled and they can only be used in annotations.\\ \visible<5->{
But, the power of Function comes from the fact that they can be used in annotations, while Methods cannot.}
\visible<2->{\begin{exampleblock}{}
\begin{itemize}
\item [] \textcolor[rgb]{0,0,1}{method} Pythagoras(\textcolor[rgb]{0.2,0.8,0.8}{a}:\textcolor[rgb]{0,0,1}{int},\textcolor[rgb]{0.2,0.8,0.8}{b}:\textcolor[rgb]{0,0,1}{int}) \textcolor[rgb]{0,0,1}{returns}(\textcolor[rgb]{0.2,0.8,0.8}{c}:\textcolor[rgb]{0,0,1}{int})
\only<beamer>{\item<1|only@1> []}%
\only<beamer>{\item<2|only@2> []}%
\only<beamer>{\item<3|only@3> []}%
\only<beamer>{\item<4|only@4> []}%
\only<beamer>{\item<5|only@5> []}%
\only<beamer>{\item<6|only@6> [] \visible<6-8>{\quad\textcolor[rgb]{0,0,1}{ensures} square(a)$>=$0}\quad\visible<7-8>{$\leftarrow$ \textsf{This will work}}}%
\only<beamer>{\item<7|only@7> [] \visible<6-8>{\quad\textcolor[rgb]{0,0,1}{ensures} square(a)$>=$0}\quad\visible<7-8>{$\leftarrow$ \textsf{This will work}}}%
\only<beamer>{\item<8|only@8> [] \visible<6-8>{\quad\textcolor[rgb]{0,0,1}{ensures} square(a)$>=$0}\quad\visible<7-8>{$\leftarrow$ \textsf{This will work}}}%
\only<beamer>{\item<9|only@9> []}%
\only<beamer>{\item<10|only@10> [] \quad\textcolor[rgb]{0,0,1}{ensures} c==square(a)+square(b)}%

\item [] \{
\only<beamer>{\item<2|only@2> [] \visible<3-8>{\quad\textcolor[rgb]{0,0,1}{var} \textcolor[rgb]{0.2,0.8,0.8}{c}:=square(a)+square(b);} \quad\visible<4-8>{$\leftarrow$ \textsf{This will not work}}}
\only<beamer>{\item<3|only@3> [] \visible<3-8>{\quad\textcolor[rgb]{0,0,1}{var} \textcolor[rgb]{0.2,0.8,0.8}{c}:=square(a)+square(b);} \quad\visible<4-8>{$\leftarrow$ \textsf{This will not work}}}%
\only<beamer>{\item<4|only@4> [] \visible<3-8>{\quad\textcolor[rgb]{0,0,1}{var} \textcolor[rgb]{0.2,0.8,0.8}{c}:=square(a)+square(b);} \quad\visible<4-8>{$\leftarrow$ \textsf{This will not work}}}%
\only<beamer>{\item<5|only@5> [] \visible<3-8>{\quad\textcolor[rgb]{0,0,1}{var} \textcolor[rgb]{0.2,0.8,0.8}{c}:=square(a)+square(b);} \quad\visible<4-8>{$\leftarrow$ \textsf{This will not work}}}
\only<beamer>{\item<6|only@6> [] \visible<3-8>{\quad\textcolor[rgb]{0,0,1}{var} \textcolor[rgb]{0.2,0.8,0.8}{c}:=square(a)+square(b);} \quad\visible<4-8>{$\leftarrow$ \textsf{This will not work}}}%
\only<beamer>{\item<7|only@7> [] \visible<3-8>{\quad\textcolor[rgb]{0,0,1}{var} \textcolor[rgb]{0.2,0.8,0.8}{c}:=square(a)+square(b);} \quad\visible<4-8>{$\leftarrow$ \textsf{This will not work}}}%
\only<beamer>{\item<8|only@8> [] \visible<3-8>{\quad\textcolor[rgb]{0,0,1}{var} \textcolor[rgb]{0.2,0.8,0.8}{c}:=square(a)+square(b);} \quad\visible<4-8>{$\leftarrow$ \textsf{This will not work}}}%
\only<beamer>{\item<9|only@9> []}%
\item<10|only@10> [] \quad c:=a*a+b*b;

\item [] \}
\end{itemize}
\end{exampleblock}}

\visible<8->{This means, one can use Functions to prove correctness of a Method.}
}

\end{document}
Wobei Dein ursprünglicher Code und damit auch obiger Code eine Menge Optimierungspotential bietet.

Verfasst: Di 17. Nov 2015, 20:58
von hoizi
Vielen Dank,

ist meine erste Beamer Präsentation, ich versuche mich durchzukämpfen :)