From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88520 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Pierre-Fran=E7ois_Bonnefoi?= Newsgroups: gmane.comp.tex.context Subject: [doifinset] how it works ? Date: Thu, 21 Aug 2014 21:58:24 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="===============1993934668==" X-Trace: ger.gmane.org 1408651167 2987 80.91.229.3 (21 Aug 2014 19:59:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2014 19:59:27 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 21 21:59:22 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XKYVg-0003sv-8p for gctc-ntg-context-518@m.gmane.org; Thu, 21 Aug 2014 21:59:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 08DC91021D for ; Thu, 21 Aug 2014 21:59:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Sbl4fPQH42W4 for ; Thu, 21 Aug 2014 21:58:59 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D36F41021F for ; Thu, 21 Aug 2014 21:58:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8BC7F101E3 for ; Thu, 21 Aug 2014 21:58:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mQacbhTf-52j for ; Thu, 21 Aug 2014 21:58:44 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 79DBF101E1 for ; Thu, 21 Aug 2014 21:58:27 +0200 (CEST) Original-Received: from smtp.unilim.fr (mail.unilim.fr [164.81.1.78]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s7LJwQXm020950 for ; Thu, 21 Aug 2014 21:58:27 +0200 Original-Received: from [192.168.0.100] (home.libpfb.so [109.190.20.216]) (authenticated bits=0) by smtp.unilim.fr (8.13.1/8.13.1) with ESMTP id s7LJwNuH009989 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Thu, 21 Aug 2014 21:58:25 +0200 X-Mailer: Apple Mail (2.1878.6) X-Univ-Limoges-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (smtp.unilim.fr [164.81.1.45]); Thu, 21 Aug 2014 21:58:25 +0200 (CEST) X-Univ-Limoges-MD: Pas de virus trouve X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-Scanned-By: MIMEDefang 2.67 on 164.81.1.45 X-Univ-Limoges-MailScanner-Information: Serveur Anti-virus Please contact postmaster@unilim.fr for more information X-Univ-Limoges-MailScanner-ID: s7LJwNuH009989 X-Univ-Limoges-MailScanner: Found to be clean X-Univ-Limoges-MailScanner-Envelope-From: bonnefoi@unilim.fr X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=164.81.1.78; country=FR; region=Haute-Vienne; city=Limoges; latitude=45.8315; longitude=1.2578; http://maps.google.com/maps?q=45.8315,1.2578&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08MFvWq0u - db6363ce7ad7 - 20140821 (trained as not-spam) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88520 Archived-At: --===============1993934668== Content-Type: multipart/alternative; boundary="Apple-Mail=_6BA3CCD7-CF07-48A7-9A2A-9B33EF372280" --Apple-Mail=_6BA3CCD7-CF07-48A7-9A2A-9B33EF372280 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hello, I'm currently prepping my teaching material for my back-to-university. I want to design some conditional slides based presentation where I can = select the slides that I want to show in my final presentation. My current attempt is to use : 1 - MKIV as I use currently only MKII; 2 - a counter is defined, that it is incremented at each slide = definition; 3 - a commalist to indicate the slides that I want. The number affected = to each slide is made according to its definition in the file and not = the slide number displayed; 4 - a block is added to enclosed each slide in order to allow or not it = to be shown in the final presentation. \definenumber[slide][way=3Dbytext,prefix=3Dno] % firstly I generate a full commalist=20 \def\slidelist{} \dorecurse{8}{ \doglobal\appendtocommalist{#1}\slidelist } % then I define my slide where I increment the counter = \def\startSlide{\setupbackgrounds[page][background=3D{fond,Auteur,backgrap= hics,foreground,foregraphics}] \directsetup{slide:start}}=20 \def\stopSlide{\directsetup{slide:stop}}=20 \startsetups slide:start=20 \page \incrementnumber[slide] \switchtobodyfont[14pt]=20 \setupinteractionbar[state=3Dstart]=20 \startnarrower[left] \stopsetups=20 \startsetups slide:stop \stopnarrower=20 \page=20 \stopsetups \starttext \doifinset{\getnumber[slide]}{\slidelist} { \startSlide \SlideTitleSub{Hello there} What is my number ? \getnumber[slide] ! \stopSlide } \stoptext This doesn't work. the "doifinset" doesn't work. I've tried to put some = \expanded in order to expand the arguments with no success. The only way is to use direct argument as : \doifinset{1}{1,2,3,4,5} Let me know it it is possible. best regards, Pierre-Fran=E7ois Bonnefoi. --=20 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. --Apple-Mail=_6BA3CCD7-CF07-48A7-9A2A-9B33EF372280 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 Hello,

I'm currently prepping my = teaching material for my back-to-university.

I = want to design some conditional slides based presentation where I can = select the slides that I want to show in my final = presentation.

My current attempt is to use = :
1 - MKIV as I use currently only MKII;
2 - a = counter is defined, that it is incremented at each slide = definition;
3 - a commalist to indicate the slides that I = want. The number affected to each slide is made according to its = definition in the file and not the slide number displayed;
4 - = a block is added to enclosed each slide in order to allow or not it to = be shown in the final = presentation.

\definenumber[slide][way=3Dbytext,p= refix=3Dno]
% firstly I generate a full = commalist 
\def\slidelist{}
\dorecurse{8}{
= \doglobal\appendtocommalist{#1}\slidelist
}

% then I define my slide where I increment the = counter
\def\startSlide{\setupbackgrounds[page][background=3D= {fond,Auteur,backgraphics,foreground,foregraphics}]
\directsetup= {slide:start}} 
\def\stopSlide{\directsetup{slide:stop}}&nb= sp;
\startsetups = slide:start 
\page
\incrementnumber[slide]
<= div>\switchtobodyfont[14pt] 
\setupinteractionbar[state=3Ds= tart] 
\startnarrower[left]
\stopsetups 

\startsetups = slide:stop
\stopnarrower 
\page 
\= stopsetups

\starttext

<= div>
\doifinset{\getnumber[slide]}{\slidelist}
{
\= startSlide
\SlideTitleSub{Hello = there}

What is my number ? \getnumber[slide] = !

\stopSlide
}
\stoptex= t


This doesn't work. the = "doifinset" doesn't work. I've tried to put some \expanded in order to = expand the arguments with no success.

The only = way is to use direct argument as = :
\doifinset{1}{1,2,3,4,5}

Let me = know it it is possible.

best = regards,
Pierre-Fran=E7ois Bonnefoi.
Bonnefoi Pierre-Francois     =            |    E-mail : bonnefoi@unilim.fr http://libpfb.so/
<= font class=3D"Apple-style-span" face=3D"Courier" size=3D"3">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.