Re: problems with step and stepwise
"Hans F. Nordhaug" <[email protected]> Tue, 23 Nov 2004 09:41:00 +0100
| Newsgroups | gmane.comp.tex.texpower.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Nov 22, 2004 at 03:52:51PM +0100, Prof. Dr. Jobst Hoffmann wrote:
> In a presentation I need three steps on one foil and some letters to be
> seen and to be hidden:
>
> Seen in
> step 1: A, B, C
> step 2: A, B, C, D, E
> step 3: A, B, D, F, G, H, I
>
> I try to get this result with the following code, but it fails showing C
> in step 1 and D in step 2. What is wrong?
Your problem was
\step[\value{step}=1][\value{step}=2]{...}
which is better written
\step[][\value{step}<3]{...}
However, you can make your code much easier by using \steponce and \restep.
Does this do what you want? (I removed the star on \stepwise to make step
1 actually be step 1, but you may of course add it if you want.)
\documentclass [a4paper]{article}
\usepackage{pstricks}
\usepackage[lightbackground,display]{texpower}
\begin{document}
\stepwise{
\begin{pspicture}(0,0)(9,9)
\rput(0.0, 8){A -- always }
\rput(4,5){B -- always }
\step[][\value{step}<3]{%
\rput(2., 6.5){C -- in step 1 and 2} }
\steponce{%
\rput(5.5, 6.5){E -- in step 2}
}
\restep{%
\rput(11,5){D -- in step 2 and 3}
}
\step{%
\rput(7.5,8){F -- in step 3}
\rput(4,8){G -- in step 3}
\rput(5.75,6.5){H -- in step 3}
\rput(9.25,6.5){I -- in step 3}
}
\end{pspicture}
} % End of stepwise
\end{document}
Best regards,
Hans
-------------------------------------------------------
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://productguide.itmanagersjournal.com/