Re[2]: Stepwise

Agustín E. Bolzán <[email protected]> Thu, 27 Mar 2003 15:06:21 -0300
Newsgroups gmane.comp.tex.texpower.user
Organization INIFTA
Message-ID <[email protected]>
Hello Stephan Lehmke,

Nice to hear from you once again!

About the solutions you sent I can say:

SL> \activatestep is used only on first activation anyway.

SL> For this purpose, you should hook into \displaystep:

SL> \newcommand{\mydisplay}[1]
SL> {%
SL>   {%
SL>     \ifthenelse{\boolean{firstactivation}}
SL>     {\color{blue}{\Huge\Pisymbol{pzd}{42}}\bfseries}
SL>     {{\Huge\color{yellow}\Pisymbol{pzd}{51}}}%
SL>     #1%
SL>   }%
SL> }

SL> \stepwise[\let\hidestepcontents=\hidedimmed\let\displaystepcontents=\mydisplay]
SL> {%
SL>   \step{test}

SL>   \step{foo}

SL>   \step{bar}
SL> }


It works great! I think it is what I was looking for.

SL> But I find this a bit too `dynamic': Things are jumping around
SL> badly.

Sorry, but I do not see that this is too dynamic. What do
you mean with "jumping"? The symbols appear on activation
just shifting the text a little.

SL> What about

SL> \newcommand{\mydisplay}[1]
SL> {%
SL>   {%
SL>     \ifthenelse{\boolean{firstactivation}}
    
SL> {\color{blue}{\leavevmode\vphantom{\Huge\Pisymbol{pzd}{51}}\Huge\Pisymbol{pzd}{4
SL> 2}}\bfseries}
    
SL> {\makebox[\widthof{\Huge\Pisymbol{pzd}{42}}]{\Huge\color{yellow}\Pisymbol{pzd}{5
SL> 1}}}%
SL>     #1%
SL>   }%
SL> }

SL> \newcommand{\myhide}{\leavevmode\vphantom{\Huge\Pisymbol{pzd}{51}}\phantom{\Huge
SL> \Pisymbol{pzd}{42}}\hidedimmed}

SL> \stepwise[\let\hidestepcontents=\myhide\let\displaystepcontents=\mydisplay]

SL> Looks a bit jumbled, for sure...

SL> Probably one could do this a bit more systematic ;-)


This does not look fine. In this case the items jump down to
the following line between activations and insert symbols in
the middle. I do not see why you think that it's better.


SL> Maybe like this:

SL> \def\mystep
SL> {%
SL>   \switch
  
SL> {\def\labelitemi{\vphantom{\Huge\Pisymbol{pzd}{51}}}\mdseries\dimcolors\color{te
SL> xtcolor}}
SL>   {%
SL>     \ifthenelse{\boolean{firstactivation}}
    
SL> {\def\labelitemi{\vphantom{\Huge\Pisymbol{pzd}{51}}\color{blue}\Huge\Pisymbol{pz
SL> d}{42}}\bfseries}
SL>    
SL> {\def\labelitemi{\Huge\color{yellow}\Pisymbol{pzd}{51}}}%
SL>   }%
SL> }%

SL> \newenvironment{stepitemize}
SL> {%
SL>   \begin{itemize}
SL>     \let\origitem=\item
SL>     \renewcommand{\item}{\mystep\origitem}%
SL>   }
SL>   {%
SL>   \end{itemize}
SL> }

SL> \liststepwise
SL> {%
SL>   \begin{stepitemize}
SL>   \item test
    
SL>   \item foo
    
SL>   \item bar
SL>   \end{stepitemize}
SL> }


In this case the items are first all visible with a bullet
and then all bullets disappears and all the items are
dimmed. I cannot follow your idea.

Best regards,



Agustin




-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en