Re: pauselevel for graphics
Klaus Guntermann <guntermann=jNDFPZUTrfRmTlJ5tp4iNa5Fl2EJEGXphC4ANOJQIlc@public.gmane.org> Wed, 29 Oct 2003 08:35:46 +0100
| Newsgroups | gmane.comp.tex.ppower4 |
|---|---|
| Message-ID | <[email protected]> |
Shrirang K. Karandikar writes:
> First of all, thanks for a great package. I've been looking for a
> latex based powerpt. replacement, and this comes the closest.
Thanks.
> I'd like to build a slide as follows (each step corresponding to
> 'pagedown'):
>
> 1. display layer x
> 2. display layers x-1 and x-2
> 3. display layers x-3 and remove layer x-1
> 4. display layer x-4
I cannot follow this description completely, but hopefully this does
not matter for the problem.
> and so on. I put in the following for the user-defined pause macro:
>
> \pausecount=1%
> \def\mypause{%
> \showthe\pausecount%just for debugging
> \ifcase\pausecount%
> \pauselevel{=1}\pause\or%displays LWGH1.0
> \pauselevel{=2}\pause\or%displays LWGH1.1
> \pauselevel{=3}\pause\or%displays LWGH1.2
> \pauselevel{=4 :5}\or%this is the boundary between LWGH1.3 & 4!!
> \pauselevel{=5}\pause\or%displays LWGH1.4 (with prev)
> \pauselevel{=6}\pause\or%displays LWGH1.5
> \pauselevel{=7}
> \else%
> \pause
> \relax\fi% all other levels no assignment
> \advance\pausecount by 1\relax}% and increment the counter
I do not understand, why you put the \pause almost into each case.
\pause will be needed as a delimiter for the different levels in any
case. But setting the pauselevel accordingly, you can get the effect
that things appear in the same level, if you need that.
Please note that the sequence
\pauselevel{=1}\pause\or%displays LWGH1.0
\pauselevel{=2}\pause\or%displays LWGH1.1
\pauselevel{=3}\pause\or%displays LWGH1.2
\pauselevel{=4 :5}\or%this is the boundary between LWGH1.3 & 4!!
is expected to be the same as
\pauselevel{=1}\pause\or%displays LWGH1.0
\pause\or%displays LWGH1.1
\pause\or%displays LWGH1.2
\pauselevel{=4 :5}\or%this is the boundary between LWGH1.3 & 4!!
because \pause increments automatically, if you didn't ask for another
setup. But this is not part of the problem, just a side note.
> With this, LWGH1.3 and 4 are shown at the same time as expected,
> but if I understand this correctly, LWGH1.3 should be removed after
> level 5. Unfortunately this does not happen. About the only thing that
> kindof works is:
>
> \pauselevel{=4 :5}\or%this is the boundary between LWGH1.3 & 4!!
> \pauselevel{=5 :6}\pause\or%displays LWGH1.4 (with prev)
>
> , but then at layer 6 *both* LWGH1.3 and LWGH1.4 disappear.
That is because both \pauselevel commands were in the same section for
the post processor.
I think the intended setup could be
\ifcase\pausecount%
\pauselevel{=1}\or%displays LWGH1.0
\pauselevel{=2}\or%displays LWGH1.1
\pauselevel{=3}\or%displays LWGH1.2
\pauselevel{=4 :4}\or%this is the boundary between LWGH1.3 & 4!!
% this disappears immediately in the next step
\pauselevel{=4}\or%displays LWGH1.4 (appears with prev)
\pauselevel{=5}\or%displays LWGH1.5
\pauselevel{=6}
\else%
\relax\fi% all other levels no assignment
\pause%need a pause for each level <--- moved pause here for all!!
or even shorter
\ifcase\pausecount%
\pauselevel{=1}\or%displays LWGH1.0
\or%displays LWGH1.1
\or%displays LWGH1.2
\pauselevel{=4 :4}\or%this is the boundary between LWGH1.3 & 4!!
% this disappears immediately in the next step
\pauselevel{=4}\or%displays LWGH1.4 (appears with prev)
\or%displays LWGH1.5
\else%
\relax\fi% all other levels no assignment
\pause%need a pause for each level <--- moved pause here for all!!
You have to distinguish between the xfig parts and the pause steps.
If I understood correctly, you do have one part more (0 to 5) than you
have steps (1 to 5).
> a less critical question: is it possible to display the current level? I
> tried \showthe\pauselevel, but (la)tex didn't like that very much.
You may try to display \pausecount on the LaTeX level. But this
suggestion does not come from experience. It is just a guess. My time
constraints do not allow such experiments currently, sorry.
I hope this helps,
Klaus
--
Klaus Guntermann <guntermann=jNDFPZUTrfRmTlJ5tp4iNa5Fl2EJEGXphC4ANOJQIlc@public.gmane.org>
FG Systemprogrammierung, FB Informatik, TU Darmstadt
Wilhelminenstr. 7, 64283 Darmstadt, Germany