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

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 :

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 bonne...@unilim.fr: 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%

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 keithjschu...@web.de 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

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 luigi.sca...@gmail.com mailto:luigi.sca...@gmail.com wrote: On Thu, Nov 6, 2014 at 1:59 PM,

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,

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

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

[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 !

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

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 bonne...@unilim.fr: 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

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

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 bonne...@unilim.fr 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

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

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 modifying

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 bonne...@unilim.fr 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

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 luigi.sca...@gmail.com wrote: On Thu, Nov 6, 2014 at 1:59 PM, Pierre-François Bonnefoi bonne...@unilim.fr wrote: Hello Wolfgang and Luigi, My example

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.