summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/presentations/04-18-2.ltxb
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-02-12 01:04:43 +0000
committerKarl Berry <karl@freefriends.org>2010-02-12 01:04:43 +0000
commit6c5a3105a3772c17259244d2a30209278dfc2adc (patch)
tree46fe4dbd9538afaecb233ee7eccb8385dd75ca30 /Master/texmf-dist/doc/latex/presentations/04-18-2.ltxb
parent89fa37c98ade4735241407567ed223cc32bed675 (diff)
new doc examples presentations(_de)
git-svn-id: svn://tug.org/texlive/trunk@16981 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/presentations/04-18-2.ltxb')
-rw-r--r--Master/texmf-dist/doc/latex/presentations/04-18-2.ltxb49
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/presentations/04-18-2.ltxb b/Master/texmf-dist/doc/latex/presentations/04-18-2.ltxb
new file mode 100644
index 00000000000..4e434a68217
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/presentations/04-18-2.ltxb
@@ -0,0 +1,49 @@
+%%
+%% Ein DANTE-Edition Beispiel
+%%
+%% Beispiel 04-18-2 auf Seite 114.
+%%
+%% Copyright (C) 2010 Voss
+%%
+%% It may be distributed and/or modified under the conditions
+%% of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%%
+%% See http://www.latex-project.org/lppl.txt for details.
+%%
+
+% Show page(s) 1,2,3,4,5,6
+
+\PassOptionsToClass{}{beamer}
+\documentclass{beamer}
+\usepackage{beramono}
+
+
+
+
+
+\begin{document}
+\begin{frame}[fragile]{Matrixoperationen}{Benutzung von \texttt{semiverbatim}}
+\setbeamercolor{alerted text}{fg=blue}
+\setbeamerfont{alerted text}{series=\bfseries,family=\ttfamily}
+\begin{semiverbatim} \small
+\uncover<1->{\alert<0>{\alert<6>{sub \color{red}matrix_row2vector} \{}}
+\uncover<2->{\alert<2>{ my $m = shift; my($rows,$cols) = ($m->[1],$m->[2]);}}
+\uncover<2->{\alert<2>{ my $r = shift; # optional, which column from matrix}}
+\uncover<2->{\alert<2>{ croak "Error: matrix hasn't 3D rows" unless ($colsRun also: >> 3);}}
+\uncover<3->{\alert<3>{ if ( defined $r ) \{}}
+\uncover<3->{\alert<3>{ croak "Error: matrix hasn't that row" unless ($r < $rows);}}
+\uncover<3->{\alert<3>{ \}}}
+\uncover<4->{\alert<4>{ else \{}}
+\uncover<4->{\alert<4>{ croak "Error: matrix is not a 3D row matrix"}}
+\uncover<4->{\alert<4>{ unless ($rowsRun also: >> 1);}}
+\uncover<5->{\alert<5>{ $r = 0;}}
+\uncover<4->{\alert<4>{ \}}}
+\uncover<6->{\alert<6>{ return Math::VectorReal->%
+ \alert<6>{\color{red}new(@\{$m->[0][$r]\})};}}
+\uncover<1->{\alert<1>{\}}}
+\end{semiverbatim}
+
+\visible<6>{Beachte den Gebrauch von \alert{\color{red}\texttt{shift}}.}
+\end{frame}
+\end{document}