From 8bae5899d625a43fb355777b3ca65556eba522d2 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 13 Apr 2012 22:26:14 +0000 Subject: present 2.2 (12apr12) git-svn-id: svn://tug.org/texlive/trunk@25953 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/plain/present/present.tex | 41 +++++++++++++++++-------- 1 file changed, 29 insertions(+), 12 deletions(-) (limited to 'Master/texmf-dist/tex/plain/present') diff --git a/Master/texmf-dist/tex/plain/present/present.tex b/Master/texmf-dist/tex/plain/present/present.tex index 0c0ac1843f0..de4abf256f0 100644 --- a/Master/texmf-dist/tex/plain/present/present.tex +++ b/Master/texmf-dist/tex/plain/present/present.tex @@ -2,7 +2,7 @@ % % present.tex % Some macros for preparing presentations in TeX, using pdftex -% Version 2.1 +% Version 2.2 % Copyright 2010-2012 Matthias Meister % % This work may be distributed and/or modified under the @@ -11,7 +11,7 @@ % The latest version of this license is in % http://www.latex-project.org/lppl.txt % -% This work has the LPPL maintenance status `maintained'. +% This work has the LPPL maintenance status 'maintained'. % % The Current Maintainer of this work is: % @@ -19,6 +19,7 @@ % % The work consists of the following files: % present.tex (the macro collection) +% present-transitions.tex (additional macros, providing transition effects) % HowToTalkTeX.tex (an example of present.tex in use and a documentation) % HowToTalkTeX.pdf (pdf obtained from HowToTalkTex.tex with pdftex) % Stern.png (auxiliary file) @@ -27,6 +28,7 @@ % Pfeil2.pdf (auxiliary file) % Pfeil3.pdf (auxiliary file) % Pfeil4.pdf (auxiliary file) +% background.png (auxiliary file) % % (The auxiliary files are used in present.tex and HowToTalkTeX.tex, and % therefore should remain unchanged, too) @@ -125,8 +127,8 @@ % Added October 3rd, 2010 % Define colours -\def\backgroundcolour{0.8 1.0 0.8} % Colour of page background -\def\textcolour{0.0 0.0 0.0} % Colour of text +\def\backgroundcolour{1.0 1.0 1.0} % Colour of page background +\def\textcolour{0.0 0.0 1.0} % Colour of text \def\attentioncolour{1 0 0} % Colour for "Attention" \newdimen\vsh@ft % vertical shift for background image, vsh@ft+\voffset=-25.4mm @@ -155,7 +157,7 @@ % slide number does not change \def\SlideTitle#1{% % Set the slide title, show it as the headline -\headline{% % of the slide in slidetitlefont, with a +\global\headline{% % of the slide in slidetitlefont, with a \vbox to 5mm{% % horizontal line separating the headline from \hbox to \hsize{\slidetitlefont #1}% % the main body of the slide \vskip3pt plus 1fil minus 1fil @@ -163,8 +165,8 @@ }}} \def\SlideFoot{% % Set the footline of the slide, separated by -\footline{% % a horizontal slide from the main body of the -\vbox to 5mm {% % slide. This macro takes no argument. +\global\footline{% % a horizontal slide from the main body of the +\vbox to 5mm {% % slide. This macro takes no argument. \hrule height 1pt depth 0pt % Several possibilities are provided below. \vskip3pt plus 1fil minus 1fil % Only one of the following options should be \hbox to \hsize{% % uncommented. @@ -190,8 +192,10 @@ LinkBar} % it at several places in your talk. The definition given % Make #2 a link to the destination named #1 in the presentation. % A destination is created and named with the \target control word. % -\def\link#1#2{% -\pdfstartlink attr {/Border [0 0 0]} goto name {#1} #2\pdfendlink} +\def\link#1#2{% +\pdfstartlink attr {/Border [0 0 0]} goto name {#1} +#2% +\pdfendlink} % % Creates named destination at position where it is issued. #1 is name of destination. @@ -203,7 +207,7 @@ LinkBar} % it at several places in your talk. The definition given % Used in the PageBar. Uses the predefined actions PrevPage etc. % \def\pagelink#1#2{% -\pdfstartlink +\pdfstartlink attr {/Border [0 0 0]} user {/Subtype /Link /A <>}% #2% \pdfendlink} @@ -213,7 +217,7 @@ attr {/Border [0 0 0]} user {/Subtype /Link /A <>}% % #1 is the destination (in the same document); it can be a named or other destination % #2 defines the rectangle which is the active link area, specified by % four space separated numbers corresponding to lower left and upper right corners -% #3 is the border width (in "default user-space units", probably pixels) +% #3 is the border width (in "default user-space units") % #4 is the RGB-color, specified as three space separated numbers R G B between 0 and 1 % \def\linkarea#1#2#3#4{% @@ -252,7 +256,7 @@ attr {/Border [0 0 0]} user {/Subtype /Link /A <>}% %#3\pdfendlink} \footline{} % Set some -\StandardAspect % defaultvalues +\StandardAspect % default values % % Added 28. August 2010. Not part of version 1.0 @@ -277,4 +281,17 @@ attr {/Border [0 0 0]} user {/Subtype /Link /A <>}% \def\rm{\fam=0} %% Added 14. September 2010. Use roman font in math. +%%% +%%% Macros for incremental showing of slides (frames). +%%% Added 29. March 2012 +%%% +\newcount\ind@x +\newcount\m@xind +\long\def\Frames#1#2{\m@xind=#1\long\def\Fr@mes{#2}} +\def\endFrames{\ind@x=0% +\loop\advance\ind@x by 1\begingroup\Fr@mes\endgroup\ifnum\ind@x<\m@xind\NewFrame\repeat} +\def\onframe#1#2{\ifnum\ind@x=#1#2\else\relax\fi} +\def\afterframe#1#2{\ifnum\ind@x>#1#2\else\relax\fi} +\def\beforeframe#1#2{\ifnum\ind@x<#1#2\else\relax\fi} +\def\hide{\setcolour\backgroundcolour} \catcode`\@=12 -- cgit v1.2.3