Re: Correct use of \value{step} in \overlays ?

"Hans F. Nordhaug" <[email protected]> Fri, 3 Sep 2004 15:54:55 +0200
Newsgroups gmane.comp.tex.texpower.user
Message-ID <[email protected]>
On Fri, Sep 03, 2004 at 01:57:18PM +0200, [email protected] wrote:
> Hi all,
> 
> another tricky question here: It seems that setting 
> \overlays[\value{step}=1]{3}{\stepcontents} shows all overlays side by
> side for the first step and the second step and third step both show the
> results of the third step ???
> 
> I have attached an example below for illustration. How do I accomplish
> that for each \item on the left the corresponding image is displayed on
> the right ? Or to rephrase the question: \overlays{3}{\stepcontents} 
> works as expected, how do I move its steps backwards to coincide with
> the ones in itemize ? 
[cut] 

By reseting the stepcommand counter - the total number of step commands which
have been activated so far. Example:

%--- Start example -------------
\documentclass[30pt,landscape]{foils}

\usepackage[colorhighlight,whitebackground,display]{texpower}
\usepackage[pdftex]{geometry}
\usepackage{hyperref}
\usepackage{graphics}
\geometry{headsep=3ex,hscale=0.9}

\renewcommand{\rmdefault}{pbk}
\renewcommand{\sfdefault}{pag}
\renewcommand{\ttdefault}{pcr}

\begin{document}
\centering
\foilhead[-2\baselineskip]{Analysen}
\pause
\liststepwise*{ 
\begin{minipage}{.2\textwidth}
\begin{itemize}
      \step{\item One}
      \step{\item Two}
      \step{\item Three}
\end{itemize}
\setcounter{stepcommand}{0}  %% THE TRICK
\end{minipage}
\hfill
\begin{minipage}{.7\textwidth}
%\overlays[\value{step}=\value{stepcommand}]{3}{%
\overlays{3}{%
\resizebox{4cm}{!}{\includegraphics{overlay\thesubstep.jpg}}}
\end{minipage}
}
\pause
Some more text
\end{document}
%--- End example -------------

This wasn't that bad? 

Regards,
Hans

PS! Have you tried the tplists package now for your other problem?


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click