* Page Numbering using IncludePicture from simple slides
@ 2012-04-23 19:16 Steffen Fritzsche
2012-04-23 23:22 ` Aditya Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Steffen Fritzsche @ 2012-04-23 19:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 520 bytes --]
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?
Thanks!
Steffen
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4416 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Page Numbering using IncludePicture from simple slides
2012-04-23 19:16 Page Numbering using IncludePicture from simple slides Steffen Fritzsche
@ 2012-04-23 23:22 ` Aditya Mahajan
2012-04-24 7:01 ` Steffen Fritzsche
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2012-04-23 23:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Page Numbering using IncludePicture from simple slides
2012-04-23 23:22 ` Aditya Mahajan
@ 2012-04-24 7:01 ` Steffen Fritzsche
0 siblings, 0 replies; 3+ messages in thread
From: Steffen Fritzsche @ 2012-04-24 7:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 3790 bytes --]
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 #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4416 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-24 7:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-23 19:16 Page Numbering using IncludePicture from simple slides Steffen Fritzsche
2012-04-23 23:22 ` Aditya Mahajan
2012-04-24 7:01 ` Steffen Fritzsche
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).