From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67967 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Vedran_Mileti=C4=87?= Newsgroups: gmane.comp.tex.context Subject: Re: slide steps again Date: Mon, 25 Apr 2011 13:57:58 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0896972914==" X-Trace: dough.gmane.org 1303732729 21171 80.91.229.12 (25 Apr 2011 11:58:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Apr 2011 11:58:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 25 13:58:43 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QEKR7-0005y6-Qm for gctc-ntg-context-518@m.gmane.org; Mon, 25 Apr 2011 13:58:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CE269CAC32; Mon, 25 Apr 2011 13:58:39 +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 4ZqBwegMsxZc; Mon, 25 Apr 2011 13:58:39 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6C416CAC38; Mon, 25 Apr 2011 13:58:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DF7B3CAC38 for ; Mon, 25 Apr 2011 13:58:31 +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 Uy77VZ7KbpOX for ; Mon, 25 Apr 2011 13:58:20 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id BCCD7CAC32 for ; Mon, 25 Apr 2011 13:58:20 +0200 (CEST) Original-Received: from mail-pw0-f41.google.com (mail-pw0-f41.google.com [209.85.160.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p3PBwIHL027622 for ; Mon, 25 Apr 2011 13:58:19 +0200 Original-Received: by pwi10 with SMTP id 10so1701500pwi.14 for ; Mon, 25 Apr 2011 04:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=Y+drJikIET33rVGyyPMz1seW1b5Rl+Tn7Q2G2keXfpg=; b=CP54gh3i1yamY5KOUW4amg/XJC5d13JGGDPrS6a+Md5YO8C+TasQBdCQFsIdG/RJg5 X3p8JoBbeqYJ0gjROy8M+Mc6lFO0G22p3rVuRJwCfRgkTQ/jEK5HMmOt4JC+GYTCoDG6 as0ihKY/sS3w8vJYLCS0UFmZ2Mjj2hdSP8SiI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=K2CvpH5vzxTHsk4221hWAQcgwUawiA0qpM/InFfyEOkc4K2/iBuy15TbfykfjYIMju yUzK+MS8cB3EVdep+MDPCrQECZSMW2nsq7YpbhPyd09ZOaLSU7ScY5tq3ZrHw6buCo04 DKHGj9ENikFQjD35hSPlgsaoDb9pT6erjuJSU= Original-Received: by 10.68.56.65 with SMTP id y1mr6348986pbp.410.1303732698054; Mon, 25 Apr 2011 04:58:18 -0700 (PDT) Original-Received: by 10.68.58.137 with HTTP; Mon, 25 Apr 2011 04:57:58 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.160.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bEzLWj3q - f33f2a8ec94c - 20110425 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:67967 Archived-At: --===============0896972914== Content-Type: multipart/alternative; boundary=bcaec53aeb9659804004a1bcecf3 --bcaec53aeb9659804004a1bcecf3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2011/3/7 Aditya Mahajan > On Sun, 6 Mar 2011, Curiouslearn wrote: > > I am making some slides using the Swoosh style in simpleslides module. >> I wanted to reveal some content sequentially. >> > > simpleslides does not support stepwise presentation of material. > > I occasionally use the following macros for quick and dirty stepwise > effects. This is for really simple material (no counters, no glues ...) > > \usemodule[simpleslides][style=3DSwoosh] > \def\StartSteps#1#2\StopSteps% > {\dorecurse{#1}{\long\setvalue{\recurselevel}{\gobble}} > \dorecurse{#1}{\long\setvalue{\recurselevel}{\oneofone} #2}} > > \long\def\gobble#1{} > \long\def\oneofone#1{#1} > > \starttext > \StartSteps{3} > > \SlideTitle{Context can be used for \dots} > > \null > > \startitemize[n] > \2{\item Writing your articles} > > \3{ \item Making slides for presentations } > \stopitemize > > \StopSteps > > \stoptext Hi, this is awesome, but could you please explain why it works? I don't understand what is defined by \def\StartSteps#1#2\StopSteps and also why ar= e \gobble and \oneofone used in such a way when they are single-argument commands. Regards, Vedran Mileti=C4=87 --bcaec53aeb9659804004a1bcecf3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
2011/3/7 Aditya Mahajan <adityam@umich.edu>
On Sun, 6 Mar 2011, Curiouslearn wrote:

I am making some slides using the Swoosh style in simpleslides module.
I wanted to reveal some content sequentially.

simpleslides does not support stepwise presentation of material.

I occasionally use the following macros for quick and dirty stepwise effect= s. This is for really simple material (no counters, no glues ...)

\usemodule[simpleslides][style=3DSwoosh]
\def\StartSteps#1#2\StopSteps%
=C2=A0 {\dorecurse{#1}{\long\setvalue{\recurselevel}{\gobble}}
=C2=A0 =C2=A0\dorecurse{#1}{\long\setvalue{\recurselevel}{\oneofone} #2}}<= br>
\long\def\gobble#1{}
\long\def\oneofone#1{#1}

\starttext
\StartSteps{3}

\SlideTitle{Context can be used for \dots}

\null

\startitemize[n]
=C2=A0\2{\item Writing your articles}

=C2=A0\3{ \item Making slides for presentations }
\stopitemize

\StopSteps

\stoptext

Hi,

this is awesome, but could you pl= ease explain why it works? I don't understand what is defined by \def\S= tartSteps#1#2\StopSteps and also why are \gobble and \oneofone used in such= a way when they are single-argument commands.

Regards,

Vedran Mileti=C4=87
--bcaec53aeb9659804004a1bcecf3-- --===============0896972914== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0896972914==--