diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/texpower/texpower-doc.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/texpower/texpower-doc.dtx | 684 |
1 files changed, 171 insertions, 513 deletions
diff --git a/Master/texmf-dist/source/latex/texpower/texpower-doc.dtx b/Master/texmf-dist/source/latex/texpower/texpower-doc.dtx index 12da428ead6..ad771a0a56f 100644 --- a/Master/texmf-dist/source/latex/texpower/texpower-doc.dtx +++ b/Master/texmf-dist/source/latex/texpower/texpower-doc.dtx @@ -1,7 +1,8 @@ % \iffalse meta-comment % -------------------------------------------------------------- -% TeXPower bundle - dynamic online presentations with LaTeX +% Part of the TeXPower bundle % Copyright (C) 1999-2004 Stephan Lehmke +% Copyright (C) 2003-2005 Hans Fredrik Nordhaug % % This program is free software; you can redistribute it and/or % modify it under the terms of the GNU General Public License @@ -14,7 +15,7 @@ % GNU General Public License for more details. % -------------------------------------------------------------- % -% texpower-doc.dtx,v 1.3 2004/07/27 16:19:55 hansfn Exp +% texpower-doc.dtx,v 1.13 2005/04/09 23:12:36 hansfn Exp % % \fi % @@ -35,12 +36,12 @@ % %<faq-disp>\ProvidesFile{FAQ-display.tex}% %<faq-print>\ProvidesFile{FAQ-printout.tex}% -%<faq-disp|faq-print> [2004/07/27 TeXPower FAQ] +%<faq-disp|faq-print> [2005/04/07 TeXPower FAQ] % %<manual>\ProvidesFile{manual.tex}% -%<manual> [2004/07/27 TeXPower manual] +%<manual> [2005/04/07 TeXPower manual] %<fulldemo>\ProvidesFile{fulldemo.tex}% -%<fulldemo> [2004/07/27 TeXPower full demo and manual] +%<fulldemo> [2005/04/07 TeXPower full demo and manual] % %<bckwrdexample>\ProvidesFile{bckwrdexample.tex}% %<bgndexample>\ProvidesFile{bgndexample.tex}% @@ -62,9 +63,18 @@ %<slidesdemo>\ProvidesFile{slidesdemo.tex}% %<spanelexample>\ProvidesFile{spanelexample.tex}% %<tabexample>\ProvidesFile{tabexample.tex}% -%<bckwrdexample|bgndexample|divexample|fancyexample|foilsdemo|hilitexample|ifmslidemo> [2004/07/27 TeXPower example file] -%<mathexample|panelexample|parexample|pdfscrdemo|pdfslidemo|picexample|pp4sldemo> [2004/07/27 TeXPower example file] -%<prosperdemo|seminardemo|simpledemo|slidesdemo|spanelexample|tabexample> [2004/07/27 TeXPower example file] +%<verbexample>\ProvidesFile{verbexample.tex}% +%<bckwrdexample|bgndexample|divexample|fancyexample|foilsdemo|hilitexample|ifmslidemo> [2005/04/07 TeXPower example file] +%<mathexample|panelexample|parexample|pdfscrdemo|pdfslidemo|picexample|pp4sldemo> [2005/04/07 TeXPower example file] +%<prosperdemo|seminardemo|simpledemo|slidesdemo|spanelexample|tabexample|verbexample> [2005/04/07 TeXPower example file] +% +%<*version> +%<<KEEPCOMMENTS + +% Version info used in titles +\def\tpversion{v0.2 of April 8, 2005} +%KEEPCOMMENTS +%</version> % % \CheckSum{0} % @@ -87,17 +97,11 @@ %<*config> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: __TPcfg.tex % % Code for user-specific configuration of TeXPower documentation files. % % This file is input by others. Don't compile it separately. % -%----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Mar 22, 2000: First version for the pre-alpha release of TeXPower. -% \hypersetup{baseurl={http://texpower.sourceforge.net/doc/}} \hypersetup{pdfsubject={Documentation and Examples for the texpower package}} \hypersetup{pdfauthor={Stephan Lehmke}} @@ -137,18 +141,6 @@ % Document class powersem, based on seminar.cls for simulating ppower via latex+distiller (instead of pdflatex). % {powersem} -%----------------------------------------------------------------------------------------------------------------- -% -% First part of the preamble of TeXPower demos. -% -%----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Mar 20, 2000: First version for the pre-alpha release of TeXPower. -% v0.0.2 Mar 21, 2000: Remedying an incompatibility between LaTeX releases concerning the implementation of -% \@iiiparbox (Apr 11: this code is now part of texpower.sty). -% v0.0.3 Apr 11, 2000: Color emphasis code moved into texpower. -% %----------------------------------------------------------------------------------------------------------------- % Set slide margins rather small for maximum use of space. This is a demo, remember. @@ -202,24 +194,10 @@ \let\name=\textsc -% Second part of the preamble of TeXPower demos. -% -%----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Mar 20, 2000: First version for the pre-alpha release of TeXPower. -% v0.0.2 Mar 22, 2000: Now loading the config file. -% v0.0.3 Mar 29, 2000: texpower doesn't load hyperref any more; there's now a package fixseminar. -% v0.0.4 Apr 19, 2000: Added \slidetitle command. -% v0.0.5 Sep 11, 2000: Added plainpages=false to the hyperref options to get correct page anchors. -% v0.0.5 Sep 11, 2002: Slight changes to title page. -% - - %----------------------------------------------------------------------------------------------------------------- % We load hyperref and fixseminar which fixes some problems with seminar. % -\usepackage[plainpages=false,bookmarksopen,colorlinks,urlcolor=red,pdfpagemode=FullScreen]{hyperref} +\usepackage[ps2pdf,plainpages=false,bookmarksopen,colorlinks,urlcolor=red,pdfpagemode=FullScreen]{hyperref} \usepackage{fixseminar} %----------------------------------------------------------------------------------------------------------------- @@ -293,34 +271,7 @@ %================================================================================================================= %<*faq-disp> %<<KEEPCOMMENTS -%----------------------------------------------------------------------------------------------------------------- -% File: FAQ-display.tex -% -% Frequently Asked Questions list for the TeXPower bundle (screen version). -% -% This file can be compiled with pdfLaTeX or (standard) LaTeX. When using standard LaTeX, the dvi file produced should -% be processed with -% -% dvips -Ppdf -j0 FAQ-display -% -% afterwards processing the resulting ps file with -% -% distill FAQ-display.ps -% -% (The syntax is for a unix system with tetex 1.0 and distiller 3. Modify appropriately for other configurations.) -% -% The resulting pdf file is meant for presenting `interactively' with Adobe Acrobat Reader. -% -%----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 May 31, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 Jun 14, 2000: Changed slidesmag to 4 so slides look less `squeezed'. The `display' version is for demonstrating -% effects, not a template for `real' presentations. -% -%----------------------------------------------------------------------------------------------------------------- % Enable all color emphasis and highlighting options; use a light background and slifonts. \PassOptionsToPackage{coloremph,colormath,colorhighlight,lightbackground}{texpower} @@ -358,16 +309,6 @@ %================================================================================================================= %<*faq-print> %<<KEEPCOMMENTS -%----------------------------------------------------------------------------------------------------------------- -% File: FAQ-printout.tex -% -% Frequently Asked Questions list for the TeXPower bundle (printout version). -% -%----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 May 31, 2000: First version for the pre-alpha release of TeXPower. -% \documentclass[12pt]{scrartcl} @@ -448,22 +389,6 @@ %================================================================================================================= %<*faq> %<<KEEPCOMMENTS -% -%----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 May 31, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 Jun 9, 2000: Some additions in the `problems' and `how to' section. -% -% v0.0.3 Jun 15, 2000: Additions in the `usage', `how to', and `problems' sections. -% -% v0.0.4 Jun 22, 2000: Additions in the `usage' and `problems' section. -% -% v0.0.5 May 15, 2003: Update related to move to SourceForge.net. -% -\def\docversion{v0.0.5 of May 15, 2003} -\def\tpversion{v0.0.9d of May 15, 2003} \providecommand{\vanishcolor}{} @@ -475,7 +400,7 @@ \makeslidetitle {% Frequently asked questions list% - \thanks{FAQ \docversion\ for \TeX Power \tpversion\ (alpha).}% + \thanks{FAQ for \TeX Power \tpversion .}% }% \setcounter{firststep}{0} @@ -1068,18 +993,6 @@ to release the counter \code{mycounter}. %================================================================================================================= %<*manual> %<<KEEPCOMMENTS -%----------------------------------------------------------------------------------------------------------------- -% File: manual.tex -% -% (Preliminary) documentation of the TeXPower bundle. -% -%----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Mar 20, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 Apr 11, 2000: Now producing a document which is meant for printing on paper. -% \documentclass[12pt]{scrartcl} @@ -1176,49 +1089,6 @@ to release the counter \code{mycounter}. %================================================================================================================= %<*fulldemo> %<<KEEPCOMMENTS -%----------------------------------------------------------------------------------------------------------------- -% File: fulldemo.tex -% -% Demo & Manual for the package texpower.sty (pre-alpha release). -% -% This file can be compiled with pdfLaTeX or (standard) LaTeX. When using standard LaTeX, the dvi file produced should -% be processed with -% -% dvips -Ppdf fulldemo -% -% afterwards processing the resulting ps file with -% -% distill fulldemo.ps -% -% (The syntax is for a unix system with tetex 1.0 and distiller 3. Modify appropriately for other configurations.) -% -% The resulting pdf file is meant for presenting `interactively' with Adobe Acrobat Reader. -% -%----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Oct 26, 1999: seven examples completed; parts of inline documentation -% -% v0.0.2 Feb 18, 2000: inline documentation of examples completed -% -% v0.0.3 Mar 1, 2000: added examples for \pause and page transitions; Documentation section started -% -% v0.0.4 Mar 10, 2000: Documentation for the first pre-alpha release completed -% -% v0.0.5 Mar 20, 2000: Documentation split into several files to reduce compilation problems; tested with pdflatex -% -% v0.0.6 May 2, 2000: Some small changes in preparation of the update to TeXpower v0.0.7. -% -% v0.0.7 May 24, 2000: Some small changes in preparation of the update to TeXpower v0.0.8. -% -% v0.0.8 Aug 29, 2000: Added backgroundstyle command for the update to TeXpower v0.0.9. -% - - -%----------------------------------------------------------------------------------------------------------------- - -% Version info -\def\tpversion{v0.0.9d of May 15, 2003 (alpha)} % Enable all color emphasis and highlighting options; use a light background and slifonts. @@ -1244,6 +1114,7 @@ to release the counter \code{mycounter}. {% Yes. % PsTricks is used for creating the picture example. + \usepackage[noxcolor]{pstricks} \usepackage{pstcol} \usepackage{pst-node} @@ -1323,12 +1194,12 @@ to release the counter \code{mycounter}. \newslide \minisec{Disclaimer} - This is a \emph{alpha} release of the \TeX Power bundle. + This is still work inprogress. During the subsequent error correction and extension of the functionality, the syntax and implementation of the macros described here are liable to change. - The transformation to the dtx format is also not completed. + Even though we are using dtx-files, these are still not fully documented dtx-files. \newslide @@ -1422,44 +1293,11 @@ to release the counter \code{mycounter}. %================================================================================================================= %<*docu> %<<KEEPCOMMENTS -% -%----------------------------------------------------------------------------------------------------------------- -% -% Documentation of the TeXPower bundle. -% -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Mar 20, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 Mar 29, 2000: Added `usage and basic options' section. -% -% v0.0.3 Apr 04, 2000: Added `Color Emphasis and Highlighting' section. -% -% v0.0.4 Apr 12, 2000: A lot of small additions in preparation of the update to TeXpower v0.0.7. -% -% v0.0.5 May 31, 2000: Updated for TeXpower v0.0.8. -% -% v0.0.6 Jun 09, 2000: Some updates for TeXpower v0.0.8b. -% -% v0.0.6a Jun 13, 2000: Some updates for TeXpower v0.0.8c. -% -% v0.0.6b Jun 23, 2000: Some updates for TeXpower v0.0.8e. -% -% v0.0.6c Jul 25, 2000: Some updates for TeXpower v0.0.8g. Colors section rewritten for new color management kernel. -% -% v0.0.7 May 15, 2003: Added index and updates for TeXpower v0.0.9d. -% -% v0.0.8 July 27, 2004: Added the "Miscellaneous commands" section. Moved the tpslifonts doc into tpslifonts.dtx. -% -%----------------------------------------------------------------------------------------------------------------- -% -\def\docversion{v0.0.8 of July 27, 2004} -\def\tpversion{v0.1b of July 27, 2004} \makeslidetitle {% Documentation% - \thanks{Documentation \docversion\ for \TeX Power \tpversion\ (alpha).}% + \thanks{Documentation for \TeX Power \tpversion .}% }% The \TeX Power bundle contains style and class files for creating dynamic online presentations with \LaTeX. @@ -1491,9 +1329,6 @@ The other, more sophisticated examples demonstrate the expressive power of the \code{texpower} package. Look at the commented code of these examples to find out how to achieve special effects and create your own presentation effects with \TeX Power. -For the first \emph{alpha} release, this documentation will be completed. For the first \emph{beta} release, when the -code is a little more stable, the \code{texpower} package will be made into a properly documented \code{.dtx} file. - \newslide %----------------------------------------------------------------------------------------------------------------- @@ -1554,11 +1389,22 @@ This way, not only `visible' page contents will be duplicated, but also some `in side effects. For instance, a \macroname{section} command creates a whatsit for writing the table of contents entry. Duplicating this -whatsit will also duplicate the toc entry. +whatsit will also duplicate the toc entry. So, whatsit items effecting file access are inhibited when duplicating page +material. \newslide -So, whatsit items effecting file access are inhibited when duplicating page material. +The current version of \code{texpower} is a little smarter when handling whatsits. Some commands (related to writing to +files and hyperlinks) are made stepwise-aware. This means that links can point to the actual subpage where the +anchor is and not to the last (sub)page of an incremental page. However, if you want the old behaviour just use +\begin{description} +\item[\present{option: \code{oldfiltering}}]\indexpckopt{texpower}{oldfiltering} switches on the old + (pre 0.2) very aggressive/robust filtering of whatsits. +\end{description} +The \code{oldfiltering} can be turned on and off inside the document using \macroname{oldfilteringon/off}. This command is +useful if \code{texpower} isn't smart enough... + +\newslide A second type of whatsits is created by \TeX's \macroname{special} command which is used for instance for color management. Some drivers, like \code{dvips} and \code{textures}, use a color stack which is controlled by @@ -1641,6 +1487,10 @@ There are some boolean registers provided and set automatically by \code{texpowe \subsection{Miscellaneous commands}\label{Sec:MiscCmd} Some important commands that don't fit in the latter sections: \begin{description} +\item[\present{\macroname{oldfilteringon}}]\indexmacro{oldfilteringon} + reverts to the old (pre v0.2) aggressive/robust filtering of whatsits. +\item[\present{\macroname{oldfilteringoff}}]\indexmacro{oldfilteringoff} + turns on the new better treatment of whatsits. \item[\present{\commandapp{currentpagevalue}{\carg{value}}}]\indexmacro{currentpagevalue} sets how to find the number of the current page, \commandapp{value}{page} is default. Used to name the hyper target on the first subpage of every page. Also used in the @@ -1653,6 +1503,17 @@ Some important commands that don't fit in the latter sections: \newslide +\subsection{Page Anchors}\label{Sec:PageAnch} + +For each physical page \TeX Power (when in display mode) makes a number of subpages - this is +the dynamics. For convenience \TeX Power defines an anchor to the first subpage of physical page n, +\code{firstpage.n}\indexcode{firstpage.n}. The standard page anchor for physical page n, +\code{page.n}\indexcode{page.n}, points to the last subpage of physical page n. If you want to +link to any other subpage just insert a \macroname{hyperlink} in the standard way assuming you haven't +turned on the old filtering (\ref{Sec:Dupl}). + +\newslide + \subsection{Dependencies on other packages} \code{textpower} always loads the packages \code{ifthen} and \code{calc}, as the extended command syntax provided by these is indispensable for the macros to work. They are in the \code{base} and \code{tools} area of the \LaTeX{} @@ -1693,8 +1554,8 @@ The following packages are neccessary for certain features of \code{texpower}: \subsection{What else is part of the \TeX Power bundle?} Besides the package \code{texpower} (which is described here), there are four more packages, \code{tpslifonts}, \code{fixseminar}, \code{automata} and -\code{tplists}, and one document class, -\code{powersem}, in the \TeX Power bundle which so far have no documentation +\code{tplists}, and one document class, \code{powersem}, in the \TeX Power bundle. +Except for \code{tpslifonts} and \code{tplists} these files have no documentation of their own. They will be described in this section until they are turned into \code{dtx} files producing their own documentation. @@ -1811,7 +1672,7 @@ automata are supported so far. \minisec{The package \code{tplists}}\indexfile{tplists}{package} Experimental package providing easy dynamic lists. Currently there are stepped, flipped and dimmed versions of itemize and enumerate (and corresponding lists from the \code{eqlist} and \code{paralist} package). For more information -and an example read the start of the file \code{tplists.sty}. +and an example, compile (and then read) the file \code{tplists.dtx}. \newslide @@ -1910,8 +1771,8 @@ and an example read the start of the file \code{tplists.sty}. \emph{completely} into \carg{contents}, where \macroname{step} can be used freely (see \nameref{Sec:Ex}). \item As \carg{contents} is read as a macro argument, constructs involving \concept{catcode} changes (like - \macroname{verb} or language switches) won't work in \carg{contents}. Using a suggestion by \name{Ross - Moore}, I hope to remedy this until the \emph{alpha} release. + \macroname{verb} or language switches) won't work in \carg{contents} \textbf{unless} you use the + \code{fragilesteps} environment (\ref{Sec:fragilesteps}). \newslide @@ -1935,13 +1796,19 @@ and an example read the start of the file \code{tplists.sty}. Commands accessing toc files and such (like \macroname{section}) are taken care of by the whatsit suppression mechanism (compare section \ref{Sec:Dupl}). + \end{enumerate} - Labels and hyperlinks work sort of (giving a lot of warnings though). + \newslide + + \subsection{\code{fragilesteps} environment}\label{Sec:fragilesteps}% - I will try to remedy remaining problems until the first \emph{alpha} release. - \end{enumerate} + The \code{fragilesteps}\indexcode{fragilesteps} environment is a wrapper around \macroname{stepwise} + that makes it possible to use verbatim. The code for this environment is based on similar code from beamer - an + excellent presentation class written by Till Tantau - thanks! Using the \code{fragilesteps} environment + enables the use of the \code{listings} package to display code line by line. There are some examples in + \code{verbexample.tex}. - \newslide + \newslide \subsection{\macroname{boxedsteps} and \macroname{nonboxedsteps}}\label{Sec:boxedsteps}% By default, \carg{stepcontents} belonging to a \macroname{step} which is not yet `active' are ignored altogether. This @@ -1988,11 +1855,9 @@ and an example read the start of the file \code{tplists.sty}. \subsection{Custom versions of \macroname{stepwise}}% Sometimes, it might happen that vertical spacing is different on every page of a sequence generated by - \macroname{stepwise}, making lines `wobble'. + \macroname{stepwise}, making lines `wobble'. This is usually fixed if you use \macroname{liststepwise} or + \macroname{parstepwise} (described below) in stead of \macroname{stepwise}. - This is caused by interactions between different ways vertical spacing is added to the page. Hopefully, problems - caused this way can be reduced until the first \emph{alpha} release. - \newslide There are two custom versions of \macroname{stepwise} which should produce better vertical spacing. @@ -3557,32 +3422,9 @@ and an example read the start of the file \code{tplists.sty}. %<*bckwrdexample> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: bckwrdexample.tex % % Backwards writing example for the package texpower.sty. % -% This file can be compiled with pdfLaTeX or (standard) LaTeX. When using standard LaTeX, the dvi file produced should -% be processed with -% -% dvips -Ppdf -j0 bckwrdexample -% -% afterwards processing the resulting ps file with -% -% distill bckwrdexample.ps -% -% (The syntax is for a unix system with tetex 1.0 and distiller 3. Modify appropriately for other configurations.) -% -% The resulting pdf file is meant for presenting `interactively' with Adobe Acrobat Reader. -% -%----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Mar 20, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 Apr 26, 2000: Some small changes in preparation of the update to TeXpower v0.0.7. -% -% v0.0.3 May 18, 2000: New file name to avoid confusion with ``background''. -% %----------------------------------------------------------------------------------------------------------------- % Set background color to black and use slifonts. @@ -3682,23 +3524,9 @@ and an example read the start of the file \code{tplists.sty}. %<*bgndexample> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: bgndexample.tex % % Background style example for the package texpower.sty. % -% This file can be compiled with pdfLaTeX or (standard) LaTeX. When using standard LaTeX, the dvi file produced should -% be converted to pdf afterwards (using dvips+distill/ps2pdf or dvipdf, for instance). -% -% The resulting pdf file is meant for presenting `interactively' with Adobe Acrobat Reader. -% -%----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Aug 10, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 Apr 29, 2003: Adapted to TeXPower v0.0.9c. -% -%COMMENT %----------------------------------------------------------------------------------------------------------------- % Use slifonts and a dark background. @@ -3746,16 +3574,6 @@ and an example read the start of the file \code{tplists.sty}. %</bgndexample> %<*bgndexample-src> %<<KEEPCOMMENTS -%----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Aug 12, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 Apr 29, 2003: Adapted to TeXPower v0.0.9c. -% -%----------------------------------------------------------------------------------------------------------------- -% - \centerslidestrue \title{The \TeX Power bundle\\[2ex]{\normalfont Structured @@ -4091,33 +3909,9 @@ Applications of gradients: %<*divexample> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: divexample.tex % % Divisibility example (demonstrating \step's optional arguments) for the package texpower.sty. % -% This file can be compiled with pdfLaTeX or (standard) LaTeX. When using standard LaTeX, the dvi file produced should -% be processed with -% -% dvips -Ppdf -j0 divexample -% -% afterwards processing the resulting ps file with -% -% distill divexample.ps -% -% (The syntax is for a unix system with tetex 1.0 and distiller 3. Modify appropriately for other configurations.) -% -% The resulting pdf file is meant for presenting `interactively' with Adobe Acrobat Reader. -% -%----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Mar 20, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 Apr 26, 2000: Some small changes in preparation of the update to TeXpower v0.0.7. -% -% v0.0.3 May 18, 2000: New file name. -% - %----------------------------------------------------------------------------------------------------------------- % We input the generic preamble. @@ -4196,9 +3990,7 @@ Applications of gradients: %================================================================================================================= %<*fancyexample> %<<KEEPCOMMENTS -%----------------------------------------------------------------------------------------------------------------- -% File: fancyexample.tex -% + \documentclass[KOMA,letterpaper,landscape,display,calcdimensions]{powersem} \usepackage{graphicx} @@ -4207,7 +3999,7 @@ Applications of gradients: \usepackage{palatino} -\usepackage[pdfpagemode={FullScreen}]{hyperref} +\usepackage[ps2pdf,pdfpagemode={FullScreen}]{hyperref} \usepackage{fixseminar} \usepackage[whitebackground]{texpower} @@ -4222,7 +4014,7 @@ Applications of gradients: \renewcommand{\slidebottommargin}{2cm} \newcounter{nosteps} -\setcounter{nosteps}{100} +\setcounter{nosteps}{10} % Controls the "resolution" - a value of 100 gives a *very* long compilation time. \newcounter{mycount} \makeatletter @@ -4248,7 +4040,7 @@ Applications of gradients: \DeclareRobustCommand*\appearIV[1] {% \SOUL@setup - \def\SOUL@everytoken{\makebox[\widthof{\the\SOUL@token\SOUL@setkern\SOUL@charkern}+2em-2em*\real{#1}]{\scalebox{#1}{\setcounter{mycount}{\value{nosteps}*4-\value{nosteps}*4*\real{#1}}\rotatebox[origin=c]{\value{mycount}}{\the\SOUL@token\SOUL@setkern\SOUL@charkern}}}}% + \def\SOUL@everytoken{\makebox[\widthof{\the\SOUL@token\SOUL@setkern\SOUL@charkern}+2em-2em*\real{#1}]{\scalebox{#1}{\setcounter{mycount}{\value{nosteps}*4-\value{nosteps}*4*\real{#1}}\rotatebox[origin=c]{\themycount}{\the\SOUL@token\SOUL@setkern\SOUL@charkern}}}}% \SOUL@% }% \makeatother @@ -4309,7 +4101,7 @@ Applications of gradients: {% \mkfactor{\mag}{\value{substep}/\value{nosteps}}% \setcounter{mycount}{2*(\value{nosteps}-\value{substep})}% - \strut\rotatebox[origin=c]{\value{mycount}}{\makebox[0pt]{\smash{\scalebox{\mag}{The frumious Bandersnatch!"}}}}% + \strut\rotatebox[origin=c]{\themycount}{\makebox[0pt]{\smash{\scalebox{\mag}{The frumious Bandersnatch!"}}}}% } \medskip @@ -4349,15 +4141,10 @@ Applications of gradients: %<*foilsdemo> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: foilsdemo.tex % % Simple examples the for combining the foils class with the dynamic features provided by the package texpower.sty. % %----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 May 25, 2000: First version for the pre-alpha release of TeXPower. -% \documentclass[landscape]{foils} @@ -4550,39 +4337,9 @@ Applications of gradients: %<*hilitexample> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: hilitexample.tex % % Highlighting example for the package texpower.sty. % -% This file can be compiled with pdfLaTeX or (standard) LaTeX. When using standard LaTeX, the dvi file produced should -% be processed with -% -% dvips -Ppdf -j0 hilitexample -% -% afterwards processing the resulting ps file with -% -% distill hilitexample.ps -% -% (The syntax is for a unix system with tetex 1.0 and distiller 3. Modify appropriately for other configurations.) -% -% The resulting pdf file is meant for presenting `interactively' with Adobe Acrobat Reader. -% -%----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Mar 20, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 Apr 27, 2000: Some small changes in preparation of the update to TeXpower v0.0.7. -% Added demo for \highlighttext. -% Itemize demo now checks whether color is activated. -% -% v0.0.3 May 26, 2000: Added an example for how to make the text in a paragraph `stand out' from the background. -% -% v0.0.4 Jun 07, 2000: Now using \hidedimmed and \highlightenhanced. -% -% v0.0.5 Jul 19, 2000: stepitemize example rewritten for TeXPower v0.0.8g. -% - %----------------------------------------------------------------------------------------------------------------- % Use slifonts. @@ -4732,17 +4489,10 @@ Instead of displaying incrementally, we can just `flip through' some items by hi %<*ifmslidemo> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: ifmslidemo.tex % % Simple examples the for combining the ifmslide package with the dynamic features provided by the package texpower.sty. % %----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 May 25, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 Jul 31, 2000: Slightly updated for ifmslide v0.43. -% \documentclass[KOMA,landscape,display]{powersem} @@ -4942,38 +4692,9 @@ Instead of displaying incrementally, we can just `flip through' some items by hi %<*mathexample> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: mathexample.tex % % Math example for the package texpower.sty. % -% This file can be compiled with pdfLaTeX or (standard) LaTeX. When using standard LaTeX, the dvi file produced should -% be processed with -% -% dvips -Ppdf -j0 mathexample -% -% afterwards processing the resulting ps file with -% -% distill mathexample.ps -% -% (The syntax is for a unix system with tetex 1.0 and distiller 3. Modify appropriately for other configurations.) -% -% The resulting pdf file is meant for presenting `interactively' with Adobe Acrobat Reader. -% -%----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Mar 20, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 Apr 19, 2000: Using \bstep instead of \boxedsteps. -% -% v0.0.3 Apr 27, 2000: Some small changes in preparation of the update to TeXpower v0.0.7. -% -% v0.0.4 May 24, 2000: texpower 0.0.8 now supports equation numbers in the argument of \stepwise, so align* was -% changed to align. -% - - - %----------------------------------------------------------------------------------------------------------------- % Enable all color emphasis and highlighting options. Use white background and slifonts. @@ -5027,7 +4748,7 @@ Instead of displaying incrementally, we can just `flip through' some items by hi % frame is reduced. \setlength{\highlightboxsep}{1pt}% % - \begin{align} + \begin{align*} \lefteqn {% \min @@ -5155,7 +4876,7 @@ Instead of displaying incrementally, we can just `flip through' some items by hi \right) \right) } - \end{align} + \end{align*} }% \newslide %KEEPCOMMENTS @@ -5164,26 +4885,9 @@ Instead of displaying incrementally, we can just `flip through' some items by hi %<*panelexample> %<<KEEPCOMMENTS %------------------------------------------------------------------------------ -% File: panelexample.tex % % Example for the panel facilities of TeXPower. % -% This file can be compiled with pdfLaTeX or (standard) LaTeX. When -% using standard LaTeX, the dvi file produced should -% be converted to pdf afterwards (using dvips+distill/ps2pdf or -% dvipdf, for instance). -% -% The resulting pdf file is meant for presenting `interactively' with -% Adobe Acrobat Reader. -% -%------------------------------------------------------------------------------ -% Author: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.1 Nov 14, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.2 May 02, 2003: English version. -% - %------------------------------------------------------------------------------ % Enable all color emphasis and highlighting options. Use white % background and slifonts. @@ -5451,33 +5155,9 @@ Instead of displaying incrementally, we can just `flip through' some items by hi %<*parexample> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: parexample.tex % % Paragraph example for the package texpower.sty. % -% This file can be compiled with pdfLaTeX or (standard) LaTeX. When using standard LaTeX, the dvi file produced should -% be processed with -% -% dvips -Ppdf -j0 parexample -% -% afterwards processing the resulting ps file with -% -% distill parexample.ps -% -% (The syntax is for a unix system with tetex 1.0 and distiller 3. Modify appropriately for other configurations.) -% -% The resulting pdf file is meant for presenting `interactively' with Adobe Acrobat Reader. -% -%----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Mar 20, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 Apr 27, 2000: Some small changes in preparation of the update to TeXpower v0.0.7. -% -% v0.0.3 May 26, 2000: Added an example for \hidetext. -% - %----------------------------------------------------------------------------------------------------------------- % Use slifonts. @@ -5563,18 +5243,11 @@ Instead of displaying incrementally, we can just `flip through' some items by hi %<*pdfscrdemo> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: pdfscrdemo.tex % % Simple examples the for combining the pdfscreen package with the dynamic features provided by the package % texpower.sty. % %----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 May 25, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 Jul 31, 2000: Slightly updated for PDFScreen v.1.5. -% \documentclass[12pt]{article} @@ -5773,15 +5446,10 @@ Instead of displaying incrementally, we can just `flip through' some items by hi %<*pdfslidemo> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: pdfslidemo.tex % % Simple examples the for combining the pdfslide package with the dynamic features provided by the package texpower.sty. % %----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 May 25, 2000: First version for the pre-alpha release of TeXPower. -% \documentclass{article} @@ -5979,32 +5647,9 @@ Instead of displaying incrementally, we can just `flip through' some items by hi %<*picexample> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: picexample.tex % % Picture example for the package texpower.sty. % -% This file can be compiled with pdfLaTeX or (standard) LaTeX. When using standard LaTeX, the dvi file produced should -% be processed with -% -% dvips -Ppdf -j0 picexample -% -% afterwards processing the resulting ps file with -% -% distill picexample.ps -% -% (The syntax is for a unix system with tetex 1.0 and distiller 3. Modify appropriately for other configurations.) -% -% The resulting pdf file is meant for presenting `interactively' with Adobe Acrobat Reader. -% -% Note that different pictures are produced with pdflatex and latex, because pdflatex does not support PSTricks. -% -%----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Mar 20, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 Apr 27, 2000: Some small changes in preparation of the update to TeXpower v0.0.7. -% %----------------------------------------------------------------------------------------------------------------- % Use slifonts and a dark background. @@ -6021,6 +5666,7 @@ Instead of displaying incrementally, we can just `flip through' some items by hi {% Yes. % PsTricks (sic) is used for creating the picture example. + \usepackage[noxcolor]{pstricks} \usepackage{pstcol} \usepackage{pst-node} @@ -6053,19 +5699,12 @@ Instead of displaying incrementally, we can just `flip through' some items by hi %================================================================================================================= %<*picltxexample> %<<KEEPCOMMENTS +% % Code for the LaTeX picture example for the package texpower.sty. % % This file is input by others. Don't compile it separately. % %----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Mar 21, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 Apr 19, 2000: Using \bstep instead of \boxedsteps. -% -% v0.0.3 Apr 28, 2000: Some small changes in preparation of the update to TeXpower v0.0.7. -% % % This has nothing to do with \stepwise, just setting up the picture... @@ -6079,15 +5718,15 @@ Instead of displaying incrementally, we can just `flip through' some items by hi % % In the following picture, picture items are built incrementally. % - % \stepwise generates a sequence of slides, all alike. The only difference ist that on every slide, one more of the + % \parstepwise generates a sequence of slides, all alike. The only difference ist that on every slide, one more of the % \step commands occurring in the argument of \stepwise are `activated'. This way the stuff inside the argument of - % \stepwise is gone through `step by step'. + % \parstepwise is gone through `step by step'. (\parstepwise is a special case of \stepwise.) % {% \setlength{\unitlength}{1.35\semcm}% \footnotesize% \setlength{\fboxsep}{1.5pt}% - \stepwise + \parstepwise {% \begin{center} \begin{picture}(12,13)(-7,-16) @@ -6180,16 +5819,6 @@ Instead of displaying incrementally, we can just `flip through' some items by hi % This file is input by others. Don't compile it separately. % %----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Mar 21, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 Apr 19, 2000: Using \bstep instead of \boxedsteps. -% -% v0.0.3 Apr 28, 2000: Some small changes in preparation of the update to TeXpower v0.0.7. -% - -%----------------------------------------------------------------------------------------------------------------- % % This has nothing to do with \stepwise, just setting up the picture... % @@ -6206,11 +5835,11 @@ Instead of displaying incrementally, we can just `flip through' some items by hi % % In the following picture, picture items are built incrementally. % -% \stepwise generates a sequence of slides, all alike. The only difference ist that on every slide, one more of the +% \parstepwise generates a sequence of slides, all alike. The only difference ist that on every slide, one more of the % \step commands occurring in the argument of \stepwise are `activated'. This way the stuff inside the argument of -% \stepwise is gone through `step by step'. +% \parstepwise is gone through `step by step'. (\parstepwise is a special case of \stepwise.) % -\stepwise +\parstepwise {% \begin{center} \large @@ -6291,16 +5920,11 @@ Instead of displaying incrementally, we can just `flip through' some items by hi %<*pp4sldemo> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: pp4sldemo.tex % % Simple examples the for combining the foils class with the pp4slide package and the dynamic features provided by the % package texpower.sty. % %----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 May 25, 2000: First version for the pre-alpha release of TeXPower. -% \documentclass[landscape]{foils} @@ -6491,11 +6115,9 @@ Instead of displaying incrementally, we can just `flip through' some items by hi %================================================================================================================= %<*prosperdemo> %<<KEEPCOMMENTS -%----------------------------------------------------------------------------------------------------------------- -% File: prosperdemo.tex % \documentclass[pdf,colorBG,slideColor,whitecross]{prosper} -\usepackage[display]{texpower} +\usepackage[display,oldfiltering]{texpower} \begin{document} \ifpdf No way to compile a prosper document with pdftex! @@ -6533,17 +6155,10 @@ Instead of displaying incrementally, we can just `flip through' some items by hi %<*seminardemo> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: seminardemo.tex % % Simple examples the for combining the seminar class with the dynamic features provided by the package texpower.sty. % %----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Jun 02, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 May 26, 2003: Slightly adapted to new version of fixseminar. -% \documentclass[portrait,semrot]{seminar} @@ -6757,18 +6372,10 @@ Instead of displaying incrementally, we can just `flip through' some items by hi %<*simpledemo> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: simpledemo.tex % % Simple examples the for the dynamic features provided by the package texpower.sty. % %----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Apr 17, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 May 24, 2000: texpower 0.0.8 now supports equation numbers in the argument of \stepwise, so eqnarray* was -% changed to eqnarray. -% \documentclass[12pt]{article} @@ -6954,15 +6561,10 @@ Instead of displaying incrementally, we can just `flip through' some items by hi %<*slidesdemo> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: slidesdemo.tex % % Simple examples the for combining the slides class with the dynamic features provided by the package texpower.sty. % %----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 May 25, 2000: First version for the pre-alpha release of TeXPower. -% \documentclass[landscape]{slides} @@ -7171,16 +6773,16 @@ Instead of displaying incrementally, we can just `flip through' some items by hi %<*spanelexample> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: spanelexample.tex % % Very simple panel example - compare with panelexample.tex \documentclass[calcdimensions,landscape,letterpaper,KOMA]{powersem} -\usepackage[colorlinks,pdfpagemode=FullScreen,plainpages=false]{hyperref} +\usepackage[ps2pdf,colorlinks,pdfpagemode=FullScreen,plainpages=false]{hyperref} \usepackage[lightbackground,display]{texpower} \renewcommand{\currentpagevalue}{\value{slide}} +\usepackage{fixseminar} \usepackage{tpslifonts} \newlength{\buttonwidth} @@ -7269,31 +6871,9 @@ and with plain replace page transition %<*tabexample> %<<KEEPCOMMENTS %----------------------------------------------------------------------------------------------------------------- -% File: tabexample.tex % % Tabular example for the package texpower.sty. % -% This file can be compiled with pdfLaTeX or (standard) LaTeX. When using standard LaTeX, the dvi file produced should -% be processed with -% -% dvips -Ppdf -j0 tabexample -% -% afterwards processing the resulting ps file with -% -% distill tabexample.ps -% -% (The syntax is for a unix system with tetex 1.0 and distiller 3. Modify appropriately for other configurations.) -% -% The resulting pdf file is meant for presenting `interactively' with Adobe Acrobat Reader. -% -%----------------------------------------------------------------------------------------------------------------- -% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de> -% -% v0.0.1 Mar 20, 2000: First version for the pre-alpha release of TeXPower. -% -% v0.0.2 Apr 27, 2000: Some small changes in preparation of the update to TeXpower v0.0.7. -% - %----------------------------------------------------------------------------------------------------------------- % Use slifonts. @@ -7326,13 +6906,9 @@ and with plain replace page transition % \newcommand{\tabend}{\\\hline}% - \stepwise - {% - \hrule height 0pt\relax% This is neccessary to avoid a glitch in vertical spacing. Don't ask me why. I'll try to get - % this right until the first alpha version. + \liststepwise{% \begin{center} - \step - {% + \step{% \begin{tabular}{|l|l|l|} \hline They can & be built & line by line% @@ -7359,6 +6935,77 @@ and with plain replace page transition %KEEPCOMMENTS %</tabexample-src> %================================================================================================================= +%<*verbexample> +%<<KEEPCOMMENTS +%----------------------------------------------------------------------------------------------------------------- +% +% Example showing the use of verbatim/fragile steps (using the fragilesteps environment). +% +%----------------------------------------------------------------------------------------------------------------- + +\documentclass[12pt,a4paper]{article} +\usepackage[display]{texpower} +\usepackage{ fancyvrb,listings,alltt} +% Command to easily include some lines of code from a file +\def\listcodefromfile#1#2#3{% +\lstinputlisting[firstline=#1,lastline=#2,aboveskip=0pt,belowskip=0pt]{#3}} +\begin{document} + +\begin{center} +{\textbf{Example showing the use of verbatim/fragile steps with the fragilesteps environment}} +\end{center} + +A simple example (with alltt) showing steps with verbatim text. +Multiple lines in one step is only supported by alltt (and only for the +standard step command, not bstep). +\pause +\begin{fragilesteps} +\begin{alltt} + One\step{ + Two + Three} + Four +\end{alltt} +\end{fragilesteps} + +\pause + +An easy example (with listings) for including small parts of code in each step. +If you want to include code line by line look at the next example. Notice that in this +example you really don't need to use the fragilesteps environment, because +there are no verbatim code - the next example however... +\lstset{language=Java} +\begin{fragilesteps} +\step{\listcodefromfile{1}{3}{dummy.java}} +\step{\listcodefromfile{4}{7}{dummy.java}} +\end{fragilesteps} + +\pause + +A (fancy) example using the fancyvrb interface of the listings package. +The re(b)step command is used to make some lines of code appear at the same time. +(You can not include multiple lines in each (b)step command.) +\pause +\lstset{fancyvrb=true} +\fvset{commandchars=\\\[\]} +\begin{fragilesteps} +\begin{Verbatim}[fontfamily=cmr] + public long recur(int n) { +\bstep[ if (n<1) {] +\rebstep[ return 0;] +\bstep[ } else if (n == 1) {] +\rebstep[ return 1;] +\bstep[ } else {] +\rebstep[ return \bstep[recur(n-1)+recur(n-2);]] +\rebstep[ }] + } +\end{Verbatim} +\end{fragilesteps} + +\end{document} +%KEEPCOMMENTS +%</verbexample> +%================================================================================================================= %<*end> \end{slide} \end{document} @@ -7645,6 +7292,17 @@ showpage %%EOF %KEEPCOMMENTS %</fig-3> +%<*dummy-java> +%<<KEEPCOMMENTS + public int dummy(int n) { + if (n<1) { + return 0; + } else { + return 1; + } + } +%KEEPCOMMENTS +%</dummy-java> %================================================================================================================= % % Local Variables: |