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 allows me to activate all the slides given by their number in a list defined in the current file ; \includeSelectionFrom{adressage_groupe_utf8}{1-100} this macro allows me to include some slides given by a list of number from an external file ; \skipSlide that can suppress the process of the following slide. Of course, all of theses macros work beautifully recursively with files using them (the numbering macro work nicely on currently defined slides as included slides). This is why I use only ConTeXt for all my work ! Cheers ! Pierre-François. On 08 Nov 2014, at 12:08, Wolfgang Schuster wrote: > >> 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\getbuffer[Slide]}}% >> \dostartbuffer[Slide][startSlide][stopSlide]} >> >> Let me know if it's my philosopher's stone... >> I've tried it and it works so far. >> >> No more ugly gobbling, my mind is free. > > Below are two other methods. > > > Method 1 > ======= > > \newconditional\SkipSlide \setfalse\SkipSlide > > \definebuffer[Slide] > > \def\stopSlide > {\ifconditional\SkipSlide \else > \page \getbuffer[\thedefinedbuffer{Slide}]% > \fi > \setfalse\SkipSlide} > > \starttext > > \startSlide > First Slide > \stopSlide > > \settrue\SkipSlide > \startSlide > Second Slide > \stopSlide > > \startSlide > Third Slide > \stopSlide > > \stoptext > > > Method 2 > ======= > > \def\startSlide > {\dosingleempty\dostartSlide} > > \def\dostartSlide[#1]% > {\doifelse{#1}{-} > {\let\stopSlide\stopSlideNop} > {\let\stopSlide\stopSlideYes}% > \grabbufferdata[Slide][startSlide][stopSlide]} > > \let\stopSlideNop\relax > > \def\stopSlideYes > {\page > \getbuffer[Slide]} > > \starttext > > \startSlide > First Slide > \stopSlide > > \startSlide[-] > Second Slide > \stopSlide > > \startSlide > Third Slide > \stopSlide > > \stoptext > > > Wolfgang > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ -- Bonnefoi Pierre-Francois | E-mail : bonnefoi@unilim.fr http://libpfb.so/ Universite de Limoges, Laboratoire XLIM | Tel : 06 28 18 03 38 123 av Albert Thomas | Mrs. Peel, we're needed... 87060 Limoges CEDEX - FRANCE | The Avengers.