diff options
author | Karl Berry <karl@freefriends.org> | 2010-02-12 01:04:43 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-02-12 01:04:43 +0000 |
commit | 6c5a3105a3772c17259244d2a30209278dfc2adc (patch) | |
tree | 46fe4dbd9538afaecb233ee7eccb8385dd75ca30 /Master/texmf-dist/doc/latex/presentations/02-04-2.ltxpd | |
parent | 89fa37c98ade4735241407567ed223cc32bed675 (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/02-04-2.ltxpd')
-rw-r--r-- | Master/texmf-dist/doc/latex/presentations/02-04-2.ltxpd | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/presentations/02-04-2.ltxpd b/Master/texmf-dist/doc/latex/presentations/02-04-2.ltxpd new file mode 100644 index 00000000000..22bb48ee35f --- /dev/null +++ b/Master/texmf-dist/doc/latex/presentations/02-04-2.ltxpd @@ -0,0 +1,50 @@ +%% +%% Ein DANTE-Edition Beispiel +%% +%% Beispiel 02-04-2 auf Seite 26. +%% +%% 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 + +\documentclass[size=12pt,paper=screen,mode=present,display=slidesnotes, style=simple,nopagebreaks]{powerdot} +\pagestyle{empty} +\setcounter{page}{6} +\usepackage[utf8]{inputenc} +\usepackage[ngerman]{babel} +\AtBeginDocument{\renewcommand\today{% + \the\day-\the\month-\the\year}} +\newcommand\Datum[1][\today]{\textsf{#1}} + +\usepackage{listings,pst-node} + +\begin{document} +\begin{slide}[method=file]{Das optionale Argument} +Eine Demonstration für kommentierte Listings mit dem gleichnamigen Paket. +\lstset{escapechar=|,basicstyle=\ttfamily\small,xrightmargin=-2cm,language=[LaTeX]TeX, + literate={ä}{{\"a}}1{ö}{{\"o}}1{ü}{{\"u}}1{Ä}{{\"A}}1{Ö}{{\"O}}1{Ü}{{\"U}}1{ß}{\ss}1} +\begin{lstlisting} +\AtBeginDocument{\renewcommand\today{\the\day-\the\month-\the\year}} |\pause| +\newcommand\Datum[1]|\rnode{A}{[\string\today]}|{\textsf{#1}}} +|\pause| +Heute ist der \Datum. +Frühlingsanfang ist am \Datum|\rnode{B}{[21.\,März]}|. +\end{lstlisting} +\smallskip Ausgabe:\\ +\fbox{Heute ist der \Datum. Frühlingsanfang ist am \Datum[21.\,März].} + +\bigskip +\onslide*{4-}{% +Achtung: \rnode{C}{Hier} wird das optionale Argument für das Makro +\texttt{\textbackslash Datum} benutzt, sodass die \rnode{D}{Vorgabe} +überschrieben wird.\psset{arrowscale=2} +\nccurve[angleA=210,angleB=190]{->}{D}{A}\ncarc[arcangle=5]{<-}{B}{C}} +\end{slide} +\end{document} |