On 12/15/2012 7:02 AM, Wolfgang Schuster wrote:
Am 15.12.2012 um 00:07 schrieb Andre Caldas <[email protected]>:
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.
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 the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________