From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92694 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: Troubles with presentations Date: Wed, 14 Oct 2015 12:21:28 +0200 Message-ID: <5CCBAB17-1EDA-4E80-AE39-9FA8F0856A18@gmail.com> References: <20151006152415.GA15730@akela.mendelu.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3096.1\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_C892BF45-9548-409B-AC46-C9C9922B58C7" X-Trace: ger.gmane.org 1444818156 11110 80.91.229.3 (14 Oct 2015 10:22:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Oct 2015 10:22:36 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 14 12:22:23 2015 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 1ZmJCO-0008BI-GE for gctc-ntg-context-518@m.gmane.org; Wed, 14 Oct 2015 12:22:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C9C4D10222 for ; Wed, 14 Oct 2015 12:22:19 +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 E_EGp6KNwETi for ; Wed, 14 Oct 2015 12:22:18 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1A4F710231 for ; Wed, 14 Oct 2015 12:21:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E6205101F7 for ; Wed, 14 Oct 2015 12:21:37 +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 5zLKO2ip9j3Q for ; Wed, 14 Oct 2015 12:21:36 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 5F539101E8 for ; Wed, 14 Oct 2015 12:21:36 +0200 (CEST) Original-Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) by filter3-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t9EALUH9025515 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2015 12:21:34 +0200 Original-Received: by wicgb1 with SMTP id gb1so224149706wic.1 for ; Wed, 14 Oct 2015 03:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=5t8NYOnAV888VUUamzuQDC0C6Sq/VG/HTZRJwzwoXNw=; b=Gw24uwzcv2FcXUPJkCumddVUqczW5CzQBYQG8+VZWLIysLVYcT3RIOxCcrzd1j49NS DJecmhASr/8V6FyZ2TCqTygKTu8rQY/NsxhBcnoIj+DUigjzVjInSXno3KA9qQ+teuYu xxttVJ+/rtOL4ulDAg6E5IKkaJ3EWjU3jxhrYyndDYuru9RO5iwiyg0Lq2mbOdDuBiQ+ cq95GjTNRJv0domtlszyzoOPysa7ywjdlUHVq3HmvH9ncvh9AoW+4I+GkLkoqQPkaQIX 3XsdBCrHkSODieJBjdTQemaODJA/83zpGYdC7ou1VDvIkDfDVVQrIQF4kgQDYbnKk7Vq LJjA== X-Received: by 10.194.79.98 with SMTP id i2mr3046323wjx.28.1444818090267; Wed, 14 Oct 2015 03:21:30 -0700 (PDT) Original-Received: from ?IPv6:2a01:e34:ec02:4760:1107:be21:8fa1:b43f? ([2a01:e34:ec02:4760:1107:be21:8fa1:b43f]) by smtp.gmail.com with ESMTPSA id ka10sm9083793wjc.30.2015.10.14.03.21.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Oct 2015 03:21:29 -0700 (PDT) In-Reply-To: <20151006152415.GA15730@akela.mendelu.cz> X-Mailer: Apple Mail (2.3096.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::22f; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03PsWluG5 - 6abc96ddf707 - 20151014 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of otared@gmail.com designates 2a00:1450:400c:c05::22f as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2a00:1450:400c:c05::22f; envelope-from=; helo=mail-wi0-x22f.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" X-Spam-Report: 5.0 points; * 3.2 RCVD_ILLEGAL_IP Received: contains illegal IP address * 1.8 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars Xref: news.gmane.org gmane.comp.tex.context:92694 Archived-At: --Apple-Mail=_C892BF45-9548-409B-AC46-C9C9922B58C7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Tomas, The rawstep module is to be used with mkii, and the spurious =C2=AB yes = =C2=BB you see appears only when you typeset with mkiv. On the other hand, it is true that \SetupSteps is not defined or = recognized, and \StartSteps does not honor the optional arguments, when = given. I have been using an old version of rawsteps for some time and do not = remember these optional arguments nor having used \SetupSteps. Here is a file which you can use and change whatever does not suit you. = If you want to use it as an \input file, please uncomment the line 420, = containing %\doifnotmode{demo}{\endinput} Best regards: OK --Apple-Mail=_C892BF45-9548-409B-AC46-C9C9922B58C7 Content-Disposition: attachment; filename=t-rsteps-ok-new.tex Content-Type: application/octet-stream; name="t-rsteps-ok-new.tex" Content-Transfer-Encoding: quoted-printable %D=20\module=0A%D=20=20=20[=20=20=20=20=20=20file=3Dt-rsteps,=0A%D=20=20=20= =20=20=20=20=20version=3D2006.01.12,=0A%D=20=20=20=20=20=20=20=20=20=20= title=3D\CONTEXT\=20User=20Module,=0A%D=20=20=20=20=20=20=20subtitle=3DRaw= =20steps=20for=20slides,=0A%D=20=20=20=20=20=20=20=20=20author=3DDavid=20= Munger,=0A%D=20=20=20=20=20=20=20=20=20=20=20date=3D\currentdate,=0A%D=20= =20=20=20=20=20copyright=3D{David=20Munger}]=0A=0A%D=20Thanks=20to=20= Otared=20Kavian=20whose=20work=20inspired=20this=20module,=0A%D=20and=20= who=20contributed=20to=20its=20development.=0A=0A%=20Raw=20steps=20= module=20for=20slides=20in=20ConTeXt=0A%=20Copyright=20(C)=202004,=20= 2005=20=20David=20Munger=0A=0A%=20This=20program=20is=20free=20software;=20= you=20can=20redistribute=20it=20and/or=0A%=20modify=20it=20under=20the=20= terms=20of=20the=20GNU=20General=20Public=20License=0A%=20as=20published=20= by=20the=20Free=20Software=20Foundation;=20either=20version=202=0A%=20of=20= the=20License,=20or=20(at=20your=20option)=20any=20later=20version.=0A=0A= %=20This=20program=20is=20distributed=20in=20the=20hope=20that=20it=20= will=20be=20useful,=0A%=20but=20WITHOUT=20ANY=20WARRANTY;=20without=20= even=20the=20implied=20warranty=20of=0A%=20MERCHANTABILITY=20or=20= FITNESS=20FOR=20A=20PARTICULAR=20PURPOSE.=20=20See=20the=0A%=20GNU=20= General=20Public=20License=20for=20more=20details.=0A=0A%=20You=20should=20= have=20received=20a=20copy=20of=20the=20GNU=20General=20Public=20License=0A= %=20along=20with=20this=20program;=20if=20not,=20write=20to=20the=20Free=20= Software=0A%=20Foundation,=20Inc.,=2059=20Temple=20Place=20-=20Suite=20= 330,=20Boston,=20MA=20=2002111-1307,=20USA.=0A=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%= %%%%=0A%=0A%=20ChangeLog=0A%=0A%=202006-01-12=20=20David=20Munger=20= =0A%=20=09*=20New=20macro=20= \StepsRegisterNumber=20to=20make=20numbers=20stick=20from=0A%=20=09=20=20= step=20to=20step=0A%=20=09*=20Fixed=20section=20numbering=20bug=0A%=20=09= *=20Fixed=20table=20of=20contents=20bug=0A%=0A%=202006-01-10=20=20David=20= Munger=20=0A%=20=09*=20Fix=20bug=20for=20= step=20>=2010=20(thanks=20to=20Mojca=20Miklavec)=0A%=20=09*=20New=20= macro=20\OnSteps=20(thanks=20to=20Taco=20Hoekwater)=0A%=0A%=202005-04-11=20= =20David=20Munger=20=0A%=09*=20Add=20= \disablediscretionaries=20in=20\StopSteps=20defs=0A%=0A%=202005-06-12=20=20= David=20Munger=20=0A%=09*=20Add=20support=20= for=20subpage=20numbers=20(requested=20by=20Peter=20M=C3=BCnster)=0A%=20=20= =20=20=20=20=20*=20Make=20slide=20title=20optional=20(requested=20by=20= Peter=20M=C3=BCnster)=0A%=20=20=20=20=20=20=20*=20New=20optional=20= argument=20for=20section=20type=20(Subject,=20Topic,=20etc.)=0A%=20=20=20= =20=20=20=20*=20Removed=20extra-space=20after=20\FromStep=20(Peter=20= M=C3=BCnster)=0A%=20=20=20=20=20=20=20*=20Global=20option=20for=20= 'reserve'=20(requested=20by=20Peter=20M=C3=BCnster)=0A%=20=20=20=20=20=20= =20*=20Global=20option=20for=20'defaultsection'=0A%=0A%=202005-09-22=20= David=20Munger=20=0A%=09*=20Workaround=20= for=20\starttyping=20(requested=20by=20Peter=20M=C3=BCnster=20and=0A%=09=20= =20solved=20by=20Christopher=20Creutzig)=0A%=09*=20Fix=20spacing=20of=20= framedtext=20steps@frame=0A%=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%= %%%%=0A=0A=0A%%K=20Changed=20\Subject=20to=20\Title=20(OK,=20December=20= 13,=202004)=0A%%K=20Changed=20David=20Munger's=20\placeformula=20to=20= \PlaceFormula=20=0A%%K=20(OK,=20December=2013,=202004)=0A=0A= \def\Title[#1]{\start%=0A= \page\switchtobodyfont[ss,24pt]\centerline{#1}\bigskip\stop=20}=0A=0A=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A%=20steps=20for=20slides=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A=0A\unprotect=0A=0A= \setupsubpagenumber[state=3Dstop]=0A=0A\definecolor=20[highlightcolor]=20= [blue]=0A=0A=0A\def\CurrentStepNumber{\steps@currentnumber}=0A=0A= \def\SetupSteps{\dosingleempty\doSetupSteps}=0A=20%=20reserve=20=3D=20= yes,=20*no*=0A=20%=20defaultsection=20=3D=20*Subject*,=20subject,=20= chapter,=20...=0A=20%=20state=20=3D=20*start*,=20stop=0A=0A=0A%=20Former=20= definition:=0A%=20\def\StartSteps{\dodoubleempty\doStartSteps}=20%=20= \StopSteps=0A=0A%=20Workaround=20for=20\starttyping=0A\bgroup=0A= \catcode`\^^M=3D\active=0A= \gdef\StartSteps{\begingroup\obeylines\let^^M^^J%=0A=20=20= \relax\dodoubleempty\doStartSteps}=0A\egroup=0A=0A= \def\OnSteps{\dodoubleempty\doOnSteps}=0A=0A\def\HighlightSteps[#1]#2{%=0A= =20=20\let\steps@stepcolor\empty%=0A=20=20= \OnSteps[#1]{\global\let\steps@stepcolor\highlightcolor}%=0A=20=20= {\steps@stepcolor=20#2}}=0A=0A=0A=0A%=20alternate=20stepping=20commands=0A= =0A\def\NextStep{\steps@stopnextstep\steps@startnextstep}=0A= \def\AllSteps{\steps@stopnextstep\steps@startnextstep[all]}=0A=0A= \def\OnlyStep[#1]{\OnSteps[#1]}=0A=0A\def\FromStep[#1]{\OnSteps[#1-...]}=0A= =0A\def\AfterStep[#1]{%=0A=20=20\let\steps@tmpcounter\zerocount%=0A=20=20= \increment(\steps@tmpcounter,#1+1)%=0A=20=20= \OnSteps[\steps@tmpcounter-...]}=0A=20=20=0A\def\UntilStep[#1]{%=0A=20=20= \let\steps@tmpcounter\zerocount%=0A=20=20= \increment(\steps@tmpcounter,#1-1)%=0A=20=20= \OnSteps[...-\steps@tmpcounter]}=0A=0A=0A%=20Numbering=0A=0A= \def\StepsRegisterNumber[#1]=09{\addtocommalist{#1}\steps@numbers@list}=0A= \def\StepsUnregisterNumber[#1]=09= {\removefromcommalist{#1}\steps@numbers@list}=0A= \def\StepsRegisteredNumbers=09{\steps@numbers@list}=0A=0A=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A%=20= internal=20macros=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A=0A= \newcounter\steps@currentnumber=0A\newcounter\steps@autocounter=09%=20= computed=20from=20\NextStep=0A\newcounter\steps@totalnumber=0A= \newcounter\steps@tmpcounter=0A\newcounter\steps@stepaa=0A= \newcounter\steps@stepbb=0A=0A\newif\ifUseSteps=0A=0A= \def\doSetupSteps[#1]{%=0A=20=20\getparameters[steps@option@][#1]%=0A=20=20= \doifelse{\steps@option@state}{start}%=0A=20=20=20=20{\UseStepstrue}%=0A=20= =20=20=20{\UseStepsfalse}%=0A=20=20= \doifelse{\steps@option@reserve}{yes}%=0A=20=20=20=20= {\let\steps@dostepdefault=3D\steps@dostepreserve}%=0A=20=20=20=20= {\let\steps@dostepdefault=3D\steps@dostepnoreserve}}=0A=0A=0A= \long\def\doStartSteps[#1][#2]#3\StopSteps{%=0A=20=20\ifsecondargument=0A= =20=20=20=20\gdef\steps@sectiontype{#1}%=0A=20=20=20=20= \def\steps@sectiontitle{#2}%=0A=20=20\else\iffirstargument=0A=20=20=20=20= \gdef\steps@sectiontype{\steps@option@defaultsection}%=0A=20=20=20=20= \def\steps@sectiontitle{#1}%=0A=20=20\else=0A=20=20=20=20= \gdef\steps@sectiontype{}%=0A=20=20=20=20\def\steps@sectiontitle{}%=0A=20= =20\fi\fi=0A=20=20\xdef\steps@makesectionhead{%=0A=20=20=20=20=20= \noexpand\csname\steps@sectiontype\endcsname{\steps@sectiontitle}\par}=0A= =20=20%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A=20=20= %=20store=20buffer=0A=20=20\setbuffer[steps@buffer]%=0A=20=20=20=20= \unprotect\steps@startnextstep\protect=0A=20=20=20=20#3=0A=20=20=20=20= \unprotect\steps@stopnextstep\protect=0A=20=20\endbuffer=0A=20=20= \endgroup=0A=20=20\begingroup=0A=20=20= \let\steps@totalnumber\zerocountervalue\increment\steps@totalnumber=0A=20= =20= \let\steps@currentnumber\zerocountervalue\increment\steps@currentnumber=0A= =20=20\ifUseSteps=0A=20=20=20=20= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A=20=20=20=20= %=20backup=20section=20number=20and=20list=20state=0A=20=20=20=20= \ifx\steps@sectiontype\empty\else=0A=20=20=20=20=20=20= \determineheadnumber[\steps@sectiontype]%=20sets=20\currentheadnumber=0A=20= =20=20=20=20=20\xdef\steps@sectionnumber{\currentheadnumber}%=0A=20=20=20= =20=20=20\xdef\steps@oldliststate{\??li#1\c!state}%=0A=20=20=20=20\fi=0A=20= =20=20=20%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A=20= =20=20=20%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A=20= =20=20=20%=20Save=20registered=20numbers=0A=20=20=20=20= \steps@numbers@save=0A=20=20=20=20= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A=20=20=20=20= \page=0A=20=20=20=20\setupsubpagenumber[state=3Dstop]%=0A=20=20=20=20= \setupsubpagenumber[state=3Dstart,way=3Dbytext]%=0A=20=20=20=20\loop=0A=20= =20=20=20=20=20\let\steps@autocounter\zerocount=0A=20=20=20=20=20=20= \setuppagenumber[state=3Dkeep]%=0A=20=20=20=20=20=20= \ifx\steps@sectiontype\empty=0A=20=20=20=20=20=20=20=20%=20skip=20page=0A= =09\page=0A=20=20=20=20=20=20\else=0A=09%=20make=20section=20title=0A=09= \ifx\steps@sectionnumber\empty\else=0A=09=20=20= \setupheadnumber[\steps@sectiontype][\steps@sectionnumber]%=0A=09\fi=0A=09= \steps@makesectionhead=0A=09\setuplist[\steps@sectiontype][state=3Dstop]%=0A= =20=20=20=20=20=20\fi=0A=20=20=20=20=20=20\getbuffer[steps@buffer]%=0A=20= =20=20=20=20=20\steps@updatenumber\steps@autocounter=0A=20=20=20=20= \ifnum\steps@currentnumber<\steps@totalnumber=20%=20\loop=0A=20=20=20=20=20= =20\increment\steps@currentnumber=0A=20=20=20=20=20=20= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A=20=20=20=20= =20=20%=20Restore=20registered=20numbers=20(but=20not=20after=20last=20= step)=0A=20=20=20=20=20=20\steps@numbers@restore=0A=20=20=20=20=20=20= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A=20=20=20=20= \repeat=20%=20\loop=0A=20=20=20=20= \setuplist[\steps@sectiontype][state=3D\steps@oldliststate]%=0A=20=20=20=20= \setuppagenumber[state=3Dstart]%=0A=20=20=20=20\page=0A=20=20=20=20= \setupsubpagenumber[state=3Dstop]%=0A=20=20\else=20%=20\ifUseSteps=0A=20=20= =20=20\ifx\steps@sectiontype\empty=0A=20=20=20=20=20=20%=20skip=20page=0A= =20=20=20=20=20=20\page=0A=20=20=20=20\else=0A=20=20=20=20=20=20%=20make=20= section=20title=0A=20=20=20=20=20=20\steps@makesectionhead=0A=20=20=20=20= \fi=0A=20=20=20=20\getbuffer[steps@buffer]%=0A=20=20\fi=20%=20= \ifUseSteps=0A=20=20\endgroup}=0A=0A=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A%=20= \OnSteps=20implementation=0A=0A\long\def\doOnSteps[#1][#2]#3{%=0A=20=20= \begingroup=0A=20=20\def\processitem##1{\dodoOnSteps{##1}{#2}{#3}}%=0A=20= =20\processcommalist[#1]\processitem=0A=20=20\endgroup}=0A=0A= \long\def\dodoOnSteps#1#2#3{%=0A=20=20\doifinstringelse{-}{#1}%=0A=20=20=20= =20%=20item=20with=20dash=0A=20=20=20=20= {\splitstring#1\at-\to\steps@stepa\and\steps@stepb%=0A=20=20=20=20=20%=20= process=20lower=20bound=0A=20=20=20=20=20= \doifinsetelse{\steps@stepa}{first,...}=0A=20=20=20=20=20=20=20= {\def\steps@conda{0=3D0}}%=0A=20=20=20=20=20=20=20= {\let\steps@stepaa\zerocount%=0A=09= \increment(\steps@stepaa,\steps@stepa-1)%=0A=09= \def\steps@conda{\steps@currentnumber>\steps@stepaa}%=0A=09%=20update=20= maximum=20step=20number=20of=20current=20slide=0A=09= \steps@updatenumber{\steps@stepa}}%=0A=20=20=20=20=20%=20process=20upper=20= bound=0A=20=20=20=20=20\doifinsetelse{\steps@stepb}{last,...}=0A=20=20=20= =20=20=20=20{\def\steps@condb{0=3D0}}%=0A=20=20=20=20=20=20=20= {\let\steps@stepbb\zerocount%=0A=09= \increment(\steps@stepbb,\steps@stepb+1)%=0A=09= \def\steps@condb{\steps@currentnumber<\steps@stepbb}%=0A=09%=20update=20= maximum=20step=20number=20of=20current=20slide=0A=09= \steps@updatenumber{\steps@stepb}}%=0A=20=20=20=20}%=0A=20=20=20=20%=20= item=20without=20dash=0A=20=20=20=20= {\def\steps@conda{\steps@currentnumber=3D#1}%=0A=20=20=20=20=20= \def\steps@condb{0=3D0}%=0A=20=20=20=20=20\steps@updatenumber{#1}}%=0A=20= =20%=20call=20dostep=0A=20=20\steps@dostep{#2}{#3}}=0A=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A=0A=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A%=20= \NextStep=20implementation=0A=0A= \def\steps@startnextstep{\dosingleempty\steps@dostartnextstep}=0A=0A= \def\steps@dostartnextstep[#1]{%=0A=20=20\def\steps@hide{no}%=0A=20=20= \iffirstargument\else=0A=20=20=20=20\increment\steps@autocounter=0A=20=20= =20=20\ifUseSteps=0A=20=20=20=20=20=20= \ifnum\steps@autocounter>\steps@currentnumber=0A=09\def\steps@hide{yes}%=0A= =20=20=20=20=20=20\fi=0A=20=20=20=20\fi=0A=20=20\fi=0A=20=20= \starthidden}=0A=0A\def\steps@stopnextstep{\stophidden}=0A=0A=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A%=20update=20= maximum=20step=20number=20of=20current=20slide=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A=0A= \def\steps@updatenumber#1{\ifnum\steps@totalnumber<#1=0A=20=20= \doglobal\let\steps@totalnumber\zerocount=0A=20=20= \doglobal\increment(\steps@totalnumber,#1)\fi}=0A=0A\defineframedtext=0A=20= =20[steps@frame]=0A=20=20= [offset=3Doverlay,width=3Dbroad,height=3Dfit,frame=3Doff,=0A=20=20=20= before=3D{},after=3D{}]=0A=0A= \def\starthidden{\startsteps@frame[empty=3D\steps@hide]}=0A= \def\stophidden{\stopsteps@frame}=0A=0A=0A\long\def\steps@dostep#1#2{%=0A= =20=20\processallactionsinset=0A=20=20=20=20[#1]=0A=20=20=20=20= [reserve=3D>\let\steps@next=3D\steps@dostepreserve,=0A=20=20=20=20=20= noreserve=3D>\let\steps@next=3D\steps@dostepnoreserve,=0A=20=20=20=20=20= \s!default=3D>\let\steps@next=3D\steps@dostepdefault]%=0A=20=20= \steps@next{#2}}=0A=0A\long\def\steps@dostepreserve#1{%=0A=20=20= \def\steps@hide{no}%=0A=20=20\ifUseSteps=0A=20=20=20=20= \ifnum\steps@conda=0A=20=20=20=20=20=20\ifnum\steps@condb\else=0A=09= \def\steps@hide{yes}%=0A=20=20=20=20=20=20\fi=0A=20=20=20=20\else=0A=20=20= =20=20=20=20\def\steps@hide{yes}%=0A=20=20=20=20\fi=0A=20=20\fi=0A=20=20= \strut=0A=20=20\ifmmode\@EA\mframed\else\@EA\framed\fi=0A=20=20= [empty=3D\steps@hide,frame=3Doff,offset=3Doverlay]{#1}%=0A=20=20= \ifmmode\;\fi}=0A=0A\long\def\steps@dostepnoreserve#1{%=0A=20=20= \def\steps@next{#1\ifmmode\;\fi}%=0A=20=20\ifUseSteps=0A=20=20=20=20= \ifnum\steps@conda=0A=20=20=20=20=20=20\ifnum\steps@condb\else=0A=09= \def\steps@next{\relax}%=0A=20=20=20=20=20=20\fi=0A=20=20=20=20\else=0A=20= =20=20=20=20=20\def\steps@next{\relax}%=0A=20=20=20=20\fi=0A=20=20= \fi\steps@next}=0A=0A=0A=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A%=20= numbers=0A=0A\let\steps@numbers@list\empty=0A=0A=0A= \let\steps@numbers@realrawreference=3D\rawreference=0A=0A= \def\steps@numbers@rawreference#1#2#3{%=0A=20=20\doifemptyelse{#2}=0A=20=20= =20=20{\steps@numbers@realrawreference{#1}{#2}{#3}}=0A=20=20=20=20{%=20= make=20sure=20there=20are=20no=20duplicate=20references=0A=20=20=20=20=20= \rawdoifinsetelse{#2}{\steps@numbers@refs}%=0A=20=20=20=20=20=20=20{}%=0A= =20=20=20=20=20=20=20{%=20the=20following=20check=20is=20due=20to=20= preprocessing=20in=0A=09%=20\@@dostartdescription=0A=09= \iftrialtypesetting\else=0A=09=20=20\doifnot{\steps@hide}{yes}=20%=20= FIXME:=20might=20a=20bad=20hack=0A=09=20=20=20=20= {\steps@numbers@realrawreference{#1}{#2}{#3}%=0A=09=20=20=20=20=20= \doglobal\addtocommalist{#2}\steps@numbers@refs}=0A=09\fi}=0A=20=20=20=20= =20%=20set=20the=20-Step=20suffixed=20reference=0A=20=20=20=20=20= \steps@numbers@realrawreference{#1}{#2-Step\CurrentStepNumber}{#3}}}=0A=0A= =0A%%=20For=20debugging=20purposes:=0A%=20= \let\steps@numbers@realincrementnumber=3D\incrementnumber=0A%=20= \def\incrementnumber[#1]{%=0A%=20=20=20= \steps@numbers@realincrementnumber[#1]%=0A%=20=20=20= \writestatus{RawSteps}{incrementnumber=20#1}}=0A=0A=0A= \def\steps@numbers@save{%=0A=20=20\let\steps@numbers@refs\empty=0A=20=20= \let\rawreference=3D\steps@numbers@rawreference=0A=20=20= \processcommacommand[\steps@numbers@list]\steps@numbers@saveone}=0A= \def\steps@numbers@restore{%=0A=20=20= \processcommacommand[\steps@numbers@list]\steps@numbers@restoreone}=0A=0A= \def\steps@numbers@saveone#1{\savenumber[#1]}=0A= \def\steps@numbers@restoreone#1{\restorenumber[#1]}=0A=0A=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A=0A=0A= \protect=0A=0A=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A%=20= defaults=0A=0A\SetupSteps[reserve=3Dno,defaultsection=3DSubject,state=3Dst= art]=0A%=20\StepsRegisterNumber[section]=0A\StepsRegisterNumber[formula]=0A= =0A=0A%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A=0A=0A= %\doifnotmode{demo}{\endinput}=0A=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A%=20usage=20example=0A%=20= partly=20contributed=20by:=20Otared=20Kavian=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A=0A\usemodule=20= [pre-original]=0A\usemodule=20[rsteps]=0A=0A=0A%=20interaction=20menu=20= example:=0A%=20page=20number=20with=20alphabetic=20subpage=20number=0A= \startinteractionmenu[bottom]=0A=20=20\placelist[chapter]=20= [alternative=3Dbottom,criterium=3Dall,pagenumber=3Dno]=0A=20=20\\=0A=20=20= \pagenumber{\characters\subpagenumber}/\lastpagenumber=0A= \stopinteractionmenu=0A=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A%=20setup=20= examples=0A%=0A%=20\SetupSteps[defaultsection=3Dpage]=0A%=20= \SetupSteps[defaultsection=3Dsubject]=0A%=20\SetupSteps[reserve=3Dyes]=0A= %=20\SetupSteps[reserve=3Dyes,defaultsection=3Dsubject]=0A= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=0A=0A= \setupcolors[state=3Dstart]=0A\SetupSteps[defaultsection=3DSubject]=0A=0A= =0A\starttext=0A=0A\startstandardmakeup=0A=20=20\bfc=20Raw=20Steps=20= Module=0A=20=20\blank[big]=0A=20=20\tfb=20Usage=20Examples=0A= \stopstandardmakeup=0A=0A=0A\StartSteps=20[Simple=20stepping=20(step=20= \noexpand\CurrentStepNumber)]=0A=0A=20=20First=20step.=0A=20=20\NextStep=0A= =20=20Second=20step.=0A=20=20\NextStep=0A=20=20Third=20step.=0A=20=20= \AllSteps=0A=20=20All=20steps.=0A=20=20=0A\StopSteps=0A=0A=0A= \StartSteps[Fancy=20stepping=20(step=20\noexpand\CurrentStepNumber)]=0A=20= =20=0A=20=20\startitemize=0A=20=20\OnSteps[1-3,5]{\item=20Steps=201,=20= 2,=203=20and=205.}=0A=20=20\OnSteps[2-...]{\item=20=46rom=20step=202.}=0A= =20=20\OnSteps[3]=20=20=20=20{\item=20Step=203.}=0A=20=20= \OnSteps[...-4]{\item=20Up=20to=20step=204.}=0A=20=20\stopitemize=0A=20=20= =0A\StopSteps=0A=0A=0A\StartSteps[Highlighting=20(step=20= \noexpand\CurrentStepNumber)]=0A=0A=20=20\startitemize=0A=20=20\item=20= \HighlightSteps[1,4]=09{Step=201.}=0A=20=20\item=20\HighlightSteps[2]=09= {Step=202.}=0A=20=20\item=20\HighlightSteps[3]=09{Step=203.}=0A=20=20= \item=20\HighlightSteps[4]=09{Start=20over=20from=20Step=201.}=0A=20=20= \stopitemize=0A=20=20=0A\StopSteps=0A=0A=0A\StartSteps[Equations]=0A=0A=20= =20\placeformula[eq:divu]=0A=20=20\startformula=0A=20=20=20=20= \vec\nabla\cdot\vec=20u=20=3D=200=0A=20=20\stopformula=0A=20=20=0A=20=20= \placeformula[eq:NS]=0A=20=20\startformula=0A=20=20=20=20\frac{D\vec=20= u}{Dt}=20=3D=0A=20=20=20=20=20=20\OnSteps[2-...][reserve]{-{\red=20= \frac1\rho=20\vec\nabla=20p}}=0A=20=20=20=20=20=20= \OnSteps[3-...][reserve]{+\;{\green=20\vec=20g}}=0A=20=20=20=20=20=20= \OnSteps[4-...][reserve]{+\;{\blue=20\frac1\rho=20\vec\nabla\cdot=20S}}=0A= =20=20\stopformula=0A=0A=20=20Incompressibility=20(\in{eq.}[eq:divu]).=0A= =0A=20=20Momentum=20transport=20(\in{eq.}[eq:NS]):=0A=20=20\startitemize=0A= =20=20\OnSteps[2-...]{\item=20{\red=20=20=20Pressure=20gradient}}=0A=20=20= \OnSteps[3-...]{\item=20{\green=09Gravity}}=0A=20=20= \OnSteps[4-...]{\item=20{\blue=09Stress=20(viscous,=20turbulent,=20= Maxwell)}}=0A=20=20\stopitemize=0A=0A\StopSteps=0A=0A=0A\stoptext=0A= --Apple-Mail=_C892BF45-9548-409B-AC46-C9C9922B58C7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 06 Oct 2015, at 17:24, Tomas Hala wrote: >=20 > Hello all, >=20 > I would like to ask for a piece of help with presentations. >=20 > I decided to use the way described at = http://wiki.contextgarden.net/Presentations > and http://wiki.contextgarden.net/RawSteps. (I use TL 2015.) >=20 > Problems I came across are: > 1. On the first slide, a line with the word "yes" has been generated. = (Sometimes more than once, in dependence of number of modules.) > 2. Command SetupSteps is undefined. > 3. Command StartSteps is defined but not applied. >=20 > What I am doing wrong? > Is somewhere any more detail documentation? >=20 > Thanks, >=20 > Tomas >=20 > ------------------------ > Almost minimal example: > ------------------------ >=20 > \usemodule[pre-original] > \usemodule[rsteps] > \usemodule[pre-60] >=20 > \setuppapersize[S6][S6] > \setuppagenumbering[state=3Dstop] > \setuptolerance[verytolerant,stretch] > \setupinteractionscreen[option=3Dmax] > \setupinteraction[state=3Dstart,color=3Dmiddlered] > \useURL [garden][http://contextgarden.net][][Context garden] >=20 > %\SetupSteps[defaultsection=3DSubject,reserve=3Dno] >=20 > \starttext% >=20 > \TitlePage {pre-funny\\Title Page} > The \from[garden] site is useful. >=20 > \page > The \from[garden] site is useful. >=20 > \page > \StartSteps[Topic][Topic Title] > This is a topic slide. > \NextStep > Another step. > \StopSteps >=20 > \stoptext >=20 > ------------------------ > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_C892BF45-9548-409B-AC46-C9C9922B58C7 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --Apple-Mail=_C892BF45-9548-409B-AC46-C9C9922B58C7--