From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79921 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: New module: simplesteps. Date: Sat, 15 Dec 2012 12:49:27 +0100 Message-ID: <50CC63C7.3070109@wxs.nl> References: <20121214010420.GA18312@phlegethon.router_intern> <795492AE-9CED-45B0-AB81-9A5EF9B137E6@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1355572172 23853 80.91.229.3 (15 Dec 2012 11:49:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Dec 2012 11:49:32 +0000 (UTC) Cc: Wolfgang Schuster To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 15 12:49:46 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TjqFW-0002mm-1l for gctc-ntg-context-518@m.gmane.org; Sat, 15 Dec 2012 12:49:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AADF210292; Sat, 15 Dec 2012 12:49:32 +0100 (CET) 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 YdEjWOEdIi5l; Sat, 15 Dec 2012 12:49:30 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E68CB10217; Sat, 15 Dec 2012 12:49:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 27D4210217 for ; Sat, 15 Dec 2012 12:49:28 +0100 (CET) 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 MFvsM7pN3No4 for ; Sat, 15 Dec 2012 12:49:27 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 34D3410204 for ; Sat, 15 Dec 2012 12:49:27 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qBFBnPEc010313 for ; Sat, 15 Dec 2012 12:49:26 +0100 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.101; Original-Received: from [10.100.1.101] (unverified [10.100.1.101]) by pragma-net.nl (SurgeMail 6.1c) with ESMTP (TLS) id 7965-1713362 for multiple; Sat, 15 Dec 2012 12:49:22 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.2; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <795492AE-9CED-45B0-AB81-9A5EF9B137E6@gmail.com> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=16; city=Zeewolde; latitude=52.3302; longitude=5.5364; http://maps.google.com/maps?q=52.3302,5.5364&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06IzLNqJa - 7732dca38092 - 20121215 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:79921 Archived-At: On 12/15/2012 7:02 AM, Wolfgang Schuster wrote: > > Am 15.12.2012 um 00:07 schrieb Andre Caldas : > >>> thanks for the interesting contribution! Have a look at the patch >>> I hopefully don=92t forget to append. >> >> I didn't quite understood how this works: >> \unexpanded\def\startframe{\dosingleempty\frame_start} > > This creates the new command \startframe which calls the internal command= \frame_start which has one optional argument. > >> \def\frame_start[#1]{% >> \iffirstargument >> \section{#1}%% solution needed here! >> \fi > > This block checks if the optional argument is used by the user, when the = argument is used the content is typeset as \section. > >> \begingroup >> \grabbufferdata[simplesteps][startframe][stopframe]% >> } > > With the \grabbufferdata command the content beginning from \startframe u= ntil \stopframe is stored in a buffer with the name =93simplesteps=94. > >> \let\stopframe\simplestepsplaybuffer > > This makes the \stopframe command a synonym for \simplestepsplaybuffer wh= ich is now called when the frame environment ends. best use a namespace: \simplesteps_start_frame (dangerous name: \startframe ... could be core name) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________