Re: [NTG-context] ConTeXt gobble my mind

2014-11-09 Thread Hans Hagen
On 11/9/2014 2:34 PM, Pierre-François Bonnefoi wrote: Hello Wolfgang, thank you very much for all these solutions. Do you have any recommendations about using one over the others ? Currently, the conditional selection of my slides works pretty good : I have created the following macros : \cou

Re: [NTG-context] ConTeXt gobble my mind

2014-11-09 Thread Pierre-François Bonnefoi
Hello Wolfgang, thank you very much for all these solutions. Do you have any recommendations about using one over the others ? Currently, the conditional selection of my slides works pretty good : I have created the following macros : \courseSlideList[resavi][1-10,20-30,34,37-40], this macro al

Re: [NTG-context] ConTeXt gobble my mind

2014-11-08 Thread Wolfgang Schuster
> Am 08.11.2014 um 00:00 schrieb Pierre-François Bonnefoi : > > Just before going to bed, I've found a solution with all your help and the > help of Taco Hoekwater through the ntg mail archive : > > \def\startSlide% > {\def\stopSlide{\checkSlide\doif{\getvariable{temp}{publish}}{yes}{\page\getb

Re: [NTG-context] ConTeXt gobble my mind

2014-11-07 Thread Pierre-François Bonnefoi
Just before going to bed, I've found a solution with all your help and the help of Taco Hoekwater through the ntg mail archive : \def\startSlide% {\def\stopSlide{\checkSlide\doif{\getvariable{temp}{publish}}{yes}{\page\getbuffer[Slide]}}% \dostartbuffer[Slide][startSlide][stopSlide]} Let me know

Re: [NTG-context] ConTeXt gobble my mind

2014-11-07 Thread Hans Hagen
On 11/7/2014 2:26 PM, Pierre-François Bonnefoi wrote: Hello Hans, thank you for contributing to solve my problem. I've tried your proposition : how can I get the content of the buffer afterward ? I've tried \getbuffer[Slide] with no success on MKIV beta that I've just updated. \starttext \de

Re: [NTG-context] ConTeXt gobble my mind

2014-11-07 Thread Pierre-François Bonnefoi
Hello Hans, thank you for contributing to solve my problem. I've tried your proposition : how can I get the content of the buffer afterward ? I've tried \getbuffer[Slide] with no success on MKIV beta that I've just updated. Does a buffer work only for verbatim content ? best regards, Pierre-F

Re: [NTG-context] ConTeXt gobble my mind

2014-11-07 Thread Hans Hagen
On 11/6/2014 2:29 PM, Pierre-François Bonnefoi wrote: I can not define a mode for each of my slide neither I can express a list of activated slides. On 06 Nov 2014, at 14:12, luigi scarso mailto:luigi.sca...@gmail.com>> wrote: On Thu, Nov 6, 2014 at 1:59 PM, Pierre-François Bonnefoimailto:b

Re: [NTG-context] ConTeXt gobble my mind

2014-11-07 Thread Pierre-François Bonnefoi
Hello Keith and Luigi, On 06 Nov 2014, at 17:57, Keith J. Schultz wrote: > Hi Pierre, > > I think you are approaching your problem from the wrong direction! > > The way I understand your problem is that you have certain criteria in your > slides > when encountered decides whether it should b

Re: [NTG-context] ConTeXt gobble my mind

2014-11-06 Thread Keith J. Schultz
Hi Pierre, I think you are approaching your problem from the wrong direction! The way I understand your problem is that you have certain criteria in your slides when encountered decides whether it should be output or not. If this is the case then what you have is a classical parsing problem. T

Re: [NTG-context] ConTeXt gobble my mind

2014-11-06 Thread Pierre-François Bonnefoi
Hello Herbert, I feared that this one will go wrong with some macro used in my slides. On 06 Nov 2014, at 14:00, Herbert Voss wrote: > Am 06.11.2014 um 13:36 schrieb Pierre-François Bonnefoi: > >> thank you for proposing a solution, but it's not suitable to my needs as >> it modifies the conte

Re: [NTG-context] ConTeXt gobble my mind

2014-11-06 Thread Pierre-François Bonnefoi
I can not define a mode for each of my slide neither I can express a list of activated slides. On 06 Nov 2014, at 14:12, luigi scarso wrote: > > > On Thu, Nov 6, 2014 at 1:59 PM, Pierre-François Bonnefoi > wrote: > Hello Wolfgang and Luigi, > > My example lines are too small to fully unde

Re: [NTG-context] ConTeXt gobble my mind

2014-11-06 Thread luigi scarso
On Thu, Nov 6, 2014 at 1:59 PM, Pierre-François Bonnefoi wrote: > Hello Wolfgang and Luigi, > > My example lines are too small to fully understand the purpose of using > the gobbleinput instruction : > I have made some slides for my students that I can choose or not ton > include in the final pre

Re: [NTG-context] ConTeXt gobble my mind

2014-11-06 Thread Herbert Voss
Am 06.11.2014 um 13:36 schrieb Pierre-François Bonnefoi: > thank you for proposing a solution, but it's not suitable to my needs as > it modifies the content of the typing region : the backlash is displayed > > I want to be able to gobble or not the typing region by using a macro > without modify

Re: [NTG-context] ConTeXt gobble my mind

2014-11-06 Thread Pierre-François Bonnefoi
Hello Wolfgang and Luigi, My example lines are too small to fully understand the purpose of using the gobbleinput instruction : I have made some slides for my students that I can choose or not ton include in the final presentation : \skipSlide \startSlide bla bla bla \startyping

Re: [NTG-context] ConTeXt gobble my mind

2014-11-06 Thread luigi scarso
On Thu, Nov 6, 2014 at 1:36 PM, Pierre-François Bonnefoi wrote: > Hello Luigi, > > thank you for proposing a solution, but it's not suitable to my needs as > it modifies the content of the typing region : the backlash is displayed > > I know, infact I have said "the first step is...": \gobbleunt

Re: [NTG-context] ConTeXt gobble my mind

2014-11-06 Thread Pierre-François Bonnefoi
Hello Luigi, thank you for proposing a solution, but it's not suitable to my needs as it modifies the content of the typing region : the backlash is displayed I want to be able to gobble or not the typing region by using a macro without modifying it. On 06 Nov 2014, at 12:16, luigi scarso w

Re: [NTG-context] ConTeXt gobble my mind

2014-11-06 Thread Wolfgang Schuster
> Am 06.11.2014 um 10:35 schrieb Pierre-François Bonnefoi : > > Hello, > > I've made a lot of improvement to my slides format for my teaching material > and I've run into a serious issue with gobbleinput that I can express with > with simple lines : > > \starttext > \gobbleuntil\stoptyping >

Re: [NTG-context] ConTeXt gobble my mind

2014-11-06 Thread luigi scarso
On Thu, Nov 6, 2014 at 10:35 AM, Pierre-François Bonnefoi < bonne...@unilim.fr> wrote: > Hello, > > I've made a lot of improvement to my slides format for my teaching > material and I've run into a serious issue with gobbleinput that I can > express with with simple lines : > > \starttext > \gobbl

[NTG-context] ConTeXt gobble my mind

2014-11-06 Thread Pierre-François Bonnefoi
Hello, I've made a lot of improvement to my slides format for my teaching material and I've run into a serious issue with gobbleinput that I can express with with simple lines : \starttext \gobbleuntil\stoptyping \starttyping { printf("%d", data); } \stoptyping This is ignored ! \stopt