Hi Aidtyam,

I don't need the full stepping code ... at least not now ;)

Your advice just to decrement the page counter works just fine for me and it's 
so simple I'm wondering why I could think of that myself.

Thanks for your help and your work on simpleslides!

Steffen


Am 24.04.2012 um 01:22 schrieb Aditya Mahajan:

> On Mon, 23 Apr 2012, Steffen Fritzsche wrote:
> 
>> Hi,
>> 
>> I love the IncludePicture command from simple slides but now I've got a 
>> picture which I want to show stepwise. Therefore I created two pictures a 
>> simplified version and the full version. I just place them right one after 
>> the other.
>> 
>> Now it would be perfect if I could force context not to increase the page 
>> number counter for the second image because in my handout I will only 
>> include the full picture and at the moment the additional slide is messing 
>> up my page numbers.
>> 
>> Any suggestions?
> 
> I just manually decrement the userpage. Below is the current version of my 
> experimental stepping macros.
> 
> \startmodule complexslides-step-yes
> \unprotect
> 
> % This module defines two macros:
> % \ONLT{count}{...} which displays text on a particular page
> % \STEP{count}{...} which displays text from a particular page
> % There is also \StartStep {count} ... \StopStep and
> % \StartOnly {count} ... \StopOnly version.
> 
> % Everything must be nested in a \StartStepping {iterations} ... \StopStepping
> 
> \def\complexslides_only#1{\csname complexslides_steps_only_#1\endcsname}
> \def\complexslides_step#1{\csname complexslides_steps_step_#1\endcsname}
> 
> \def\StartStep#1#2\StopStep{\complexslides_step{#1}{#2}}
> \def\StartOnly#1#2\StopOnly{\complexslides_only{#1}{#2}}
> 
> \long\def\gobble#1{}
> \long\def\oneofone#1{#1}
> 
> % TODO: Allow nesting of \StartStepping ... \StopStepping
> 
> \def\StartStepping#1#2\StopStepping%
>  
> {\dorecurse{#1}{\long\setvalue{complexslides_steps_step_\recurselevel}{\gobble}}%
>   
> \dorecurse{#1}{\long\setvalue{complexslides_steps_only_\recurselevel}{\gobble}}%
>   \pushmacro\ONLY
>   \pushmacro\STEP
>   \def\ONLY{\complexslides_only}%
>   \def\STEP{\complexslides_step}%
>   \dorecurse{#1}{%
>   \edef\currentStepLevel{\recurselevel}%
>   \long\setvalue{complexslides_steps_step_\currentStepLevel}{\oneofone}%
>   \long\setvalue{complexslides_steps_only_\currentStepLevel}{\oneofone}%
>   #2%
>   \setvalue{complexslides_steps_only_\currentStepLevel}{\gobble}%
>   \page\decrementnumber[userpage]}%
>   \incrementnumber[userpage]%
>   \popmacro\ONLY
>   \popmacro\STEP
>  }
> 
> \def\doifStepelse%
>    {\doifelse\currentStepLevel}
> 
> % To be used in a group
> \unexpanded\def\disablesteps
>    {\def\complexslides_only##1{\gobble}% ##2
>     \def\complexslides_step##1{\oneofone}%##2
>    }
> 
> \unexpanded\def\SetStep#1#2% i of n
>    
> {\dorecurse{#2}{\long\setvalue{complexslides_steps_step_\recurselevel}{\gobble}}%
>     
> \dorecurse{#2}{\long\setvalue{complexslides_steps_only_\recurselevel}{\gobble}}%
>     \edef\currentStepLevel{#1}%
>     \long\setvalue{complexslides_steps_step_\currentStepLevel}{\oneofone}%
>     \long\setvalue{complexslides_steps_only_\currentStepLevel}{\oneofone}%
>    }
> 
> \protect
> \stopmodule
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to