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.

That is you start parsing the content of the slide, until you find the criteria
that excludes it or come to the end of the slide.
If you find the criteria then you just continue reading to the end of the slide and not output it,
otherwise send the gathered content to be output.

That would be the most elegant way and can be used for dynamic content.

Now, If you already know if the level is know a head of time the slides can be given a level and you can use
a custom mode that only outputs the slides to this level.

Another way is to build a database or table which is processed from which to choose your slides!

Or define a start/stop command that has a user level parameter and use mode to decide output or not!
this approach should not interfere with other macros you are using.

Hope this helps

regards
Keith.


Am 06.11.2014 um 10:35 schrieb Pierre-François Bonnefoi <bonnefoi@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
\gobbleuntil\stoptyping
\starttyping
{ printf("%d", data); }
\stoptyping
This is ignored ! 
\stoptext

How can I use correctly gobbleinput to make it works ?

Thank you for your help,
kind regards,
Pierre-François Bonnefoi. 
-- 
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.

___________________________________________________________________________________
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
___________________________________________________________________________________