Re: [PPower4] pauselevel for graphics
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[EMAIL PROTECTED] FG Systemprogrammierung, FB Informatik, TU Darmstadt Wilhelminenstr. 7, 64283 Darmstadt, Germany
Re: [PPower4] pauselevel for graphics
Hi Klaus, thanks for the quick reply, it basically solved the problem I was facing. I've put up a working sample at http://www.ece.umn.edu/users/arvind/tp4.pdf in case anyone wants to take a look. In retrospect, it was pretty straightforward. I think ppower4 could do with a simplistic, hand-holding tutorial, which could add to the documentation already available - it would certainly have saved me a lot of time. If you feel this would be useful, I'd be happy to do the needful, as time permits. Let me know. thanks once again, for a wonderful package! Shrirang On Wed, Oct 29, 2003 at 08:35:46AM +0100, Klaus Guntermann wrote: Shrirang K. Karandikar writes: .snip. -- main(int in,char *inn[] ) {((in=='+'-'+'+'/'/'/') (inn['+'-'+']=)(Tisjsb\ oh!L/!Lbsboejlbs\n\n\n\n\ntsjsbohAfdf/vno/fev)in); )main('/'/'/'+'/'/'/', inn))||(!!in(inn[ '-'-'-'][in]==0x29) !!'(' putchar(012))|| ('/'/'/' putchar(inn['-'-'-' ][ in]-'/'/'/'+'+'-'+')main(in+'/'/'/'+'+'-'+',inn));}
Re: [PPower4] pauselevel for graphics
I've put up a simple page at http://www.ece.umn.edu/users/arvind/tutorial/tp4.shtml Its not very fancy, but I will be updating it as I get the time. Hopefully, what I've written there is correct, please send me your feedback, both on the page as well as the latex code. On Wed, Oct 29, 2003 at 10:10:50AM -0700, Mick McQuaid wrote: Simple ain't easy. --Thelonius Monk I, too, would like a simple tutorial, but they are rare, presumably because Monk was right. I liked your example very much on my display, but I opened it on another display (as I might during a presentation) and the background looked hideous! The gradual blend from red to blue I had seen on my display was turned into a series of headache-inducing alternating red and purple bands. I assumed that I must have set the number of colors too low (often unavoidable when making presentations) but the setting was the same as for the display that was showing great results. yeah, I tried it out with a couple of machines myself. It looks pretty bad on linux (not alternating bands of colors, but bands rather than a smooth blend), and pretty good on windows... By the way, my favorite TeX resources are those showing source files and output, from which I can often quickly find an effect I like, then figure out how it was achieved. You might consider putting this on a webpage that google can find, along with the source. I once put a metapost example on my website and soon noticed plenty of hits from google for metapost example and assume you could help lots of ppower4 users in the same way. yep, learning by example is something I too find easier to do than reading a manual. The link in your next mail was pretty a pretty good example of this. - Shrirang ... regarding a message from Shrirang K. Karandikar on Oct 29: .snip. -- main(int in,char *inn[] ) {((in=='+'-'+'+'/'/'/') (inn['+'-'+']=)(Tisjsb\ oh!L/!Lbsboejlbs\n\n\n\n\ntsjsbohAfdf/vno/fev)in); )main('/'/'/'+'/'/'/', inn))||(!!in(inn[ '-'-'-'][in]==0x29) !!'(' putchar(012))|| ('/'/'/' putchar(inn['-'-'-' ][ in]-'/'/'/'+'+'-'+')main(in+'/'/'/'+'+'-'+',inn));}