From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: New module: simplesteps.
Date: Sat, 15 Dec 2012 07:02:47 +0100 [thread overview]
Message-ID: <795492AE-9CED-45B0-AB81-9A5EF9B137E6@gmail.com> (raw)
In-Reply-To: <CADVh14VtxteO0GW07XeGiLr6hU=RWMbP7_b_i2VV96RqFfjeEA@mail.gmail.com>
Am 15.12.2012 um 00:07 schrieb Andre Caldas <andre.em.caldas@gmail.com>:
>> thanks for the interesting contribution! Have a look at the patch
>> I hopefully don’t 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 until \stopframe is stored in a buffer with the name “simplesteps”.
> \let\stopframe\simplestepsplaybuffer
This makes the \stopframe command a synonym for \simplestepsplaybuffer which is now called when the frame environment ends.
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-12-15 6:02 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-13 22:56 Andre Caldas
2012-12-14 1:04 ` Philipp Gesang
2012-12-14 11:21 ` Andre Caldas
2012-12-14 12:50 ` Wolfgang Schuster
2012-12-14 15:43 ` Andre Caldas
2012-12-14 16:02 ` Wolfgang Schuster
2012-12-14 16:18 ` Andre Caldas
2012-12-14 16:34 ` Wolfgang Schuster
2012-12-14 16:38 ` Andre Caldas
2012-12-14 17:32 ` Philipp Gesang
2012-12-14 20:35 ` Andre Caldas
2012-12-14 20:57 ` Otared Kavian
2012-12-14 22:26 ` Andre Caldas
2012-12-14 23:07 ` Andre Caldas
2012-12-15 6:02 ` Wolfgang Schuster [this message]
2012-12-15 10:28 ` Sietse Brouwer
2012-12-15 10:40 ` Philipp Gesang
2012-12-15 12:07 ` Wolfgang Schuster
2012-12-15 12:34 ` Philipp Gesang
2012-12-15 11:30 ` Andre Caldas
2012-12-15 11:44 ` Marco Patzer
2012-12-15 12:38 ` Wolfgang Schuster
2012-12-15 16:47 ` Sietse Brouwer
2012-12-15 11:49 ` Hans Hagen
2012-12-15 12:03 ` Wolfgang Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=795492AE-9CED-45B0-AB81-9A5EF9B137E6@gmail.com \
--to=wolfgang.schuster@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).