pageTransitionXXX occurs at the wrong page

PascaL Kockaert <[email protected]> Sun, 13 Feb 2005 02:56:08 +0100
Newsgroups gmane.comp.tex.texpower.user
Organization ULB-SOA
Message-ID <[email protected]>
\iffalse



 Dear TeXpower users,

 I am fighting with (PDF) page transitions, and do not succeed to get the 
result
 that I would like to obtain.
 My question and a minimal example showing the problem that I want to solve 
are joined at the end of this message. [In fact this whole  message, starting 
with iffalse should compile as a LaTeX document.]


 I have defined a new environment called "StepFrame" as
 follows.
\newcommand{\StepFrame}[3]
{\pageTransitionDissolve
 \stepwise*{\centering
 \parbox[c][2\semcm][c]{0.8\linewidth}{%
    \centering\LARGE\bfseries#1}%
 \par\vspace{\stretch{1}}\noindent
 \resizebox{!}{6\semcm}{\fbox{#2}}%
 \par\vspace{\stretch{1}}\noindent
 \mbox{\step{%
         \afterstep{\pageDuration{1}\pageTransitionReplace}}%
       \step{%
         \afterstep{\stopAdvancing}}%
         \begin{minipage}[l][6\semcm][c]{0.99\linewidth}
              \restep{#3}
         \end{minipage}%
       }}}

 So that a slide containing
    \begin{slide}
    \StepFrame{First Title}{A}{This is a comment}
    \end{slide}
 would appear progressively. First the Title and A will appear 
(pageTransitionReplace). Then, one second later, the comment  should appear 
with a glitter transition. Further transitions should occur only when a key 
is pressed.

 This works pretty well (see slides A and B of the example) except  when the 
comment contains \verb"\step" commands (or equivalents),  like illustrated on 
slide C.

 For example, if the command is made of the three lines

 This time, the explanation
 \bstep{is divided}
 \bstep{into three parts.}

 I would like the glitter transition to occur when
 "This time, the explanation" appears,
 and not for "into three parts." !!!

 Could someone tell me how I should modify my definition of \StepFrame.  Also 
(far less important question) is there a mean to define an environment  
\begin{StepFrame}{a}{b}c\end{StepFrame} that would be equivalent to  
\StepFrame{a}{b}{c} ?

 Many thanks for any answer.

 Pascal




\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% This document explains my question and is also a minimal example.
%%% Jump to "%%% Explanation of the problem" to read my question.
%%% Jump to "%%% Beginning of minimal example" to see the example
%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{powersem}
\usepackage[display]{texpower}
\usepackage{fixseminar}
\usepackage{times}
\usepackage[ps2pdf,pdfpagemode=FullScreen]{hyperref}

\newcommand{\StepFrame}[3]
{\pageTransitionDissolve
 \stepwise*{\centering
 \parbox[c][2\semcm][c]{0.8\linewidth}{\centering\LARGE\bfseries#1}%
 \par\vspace{\stretch{1}}\noindent
 \resizebox{!}{6\semcm}{\fbox{#2}}%
 \par\vspace{\stretch{1}}\noindent
 \mbox{\step{%
         \afterstep{\pageDuration{1}\pageTransitionReplace}}%
       \step{%
         \afterstep{\stopAdvancing}}%
         \begin{minipage}[l][6\semcm][c]{0.99\linewidth}
              \restep{#3}
         \end{minipage}%
       }}}
\begin{document}

%%% Explanation of the problem. Not necessary for minimal example.
\begin{slide}
I have defined a new environment called \texttt{StepFrame} as
follows. \small
\begin{verbatim}
\newcommand{\StepFrame}[3]
{\pageTransitionDissolve
 \stepwise*{\centering
 \parbox[c][2\semcm][c]{0.8\linewidth}{%
    \centering\LARGE\bfseries#1}%
 \par\vspace{\stretch{1}}\noindent
 \resizebox{!}{6\semcm}{\fbox{#2}}%
 \par\vspace{\stretch{1}}\noindent
 \mbox{\step{%
         \afterstep{\pageDuration{1}\pageTransitionReplace}}%
       \step{%
         \afterstep{\stopAdvancing}}%
         \begin{minipage}[l][6\semcm][c]{0.99\linewidth}
              \restep{#3}
         \end{minipage}%
       }}}
\end{verbatim}
\normalsize
\newslide
So that a slide containing
\begin{verbatim}
\begin{slide}
\StepFrame{First Title}{A}{This is a comment}
\end{slide}
\end{verbatim}
would appear progressively. First the Title and A will appear
(pageTransitionReplace). Then, one second later, the comment
should appear with a glitter transition. Further transitions would
occur only when a key is pressed.

This works pretty well (see slides A and B after this one) except
when the comment contains \verb"\step" commands (or equivalents),
like illustrated on slide C.
\end{slide}

%%% Beginning of minimal example

\begin{slide}
\StepFrame{First Title}{A}{%
       This is the text that appears a little while after the title and A
}
\end{slide}

\begin{slide}
\StepFrame{Second Title}{B}{%
       Another explanation for slide B.}
\end{slide}

\begin{slide}
\StepFrame{Third Title}{C}{%
This time, the explanation \bstep{is divided} \bstep{into three
parts.}

\bfseries I would like the glitter transition to occur when ``This
time, the explanation'' appears, and not for ``into three parts.''
!!!}
\end{slide}

%%% End of minimal example.

\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click