Hey André,
thanks for the interesting contribution! Have a look at the patch
I hopefully don’t forget to append.
···
Well.... since Raw Steps did not work with mkiv, I tried making a very very simple module for a "beamer-like" behaviour.
I don't really know how to write a module... but here is what I did: https://bitbucket.org/andrecaldas/math-video-classes/src/9116599821fc246cb54...
I use \startbuffer and \stopbuffer, and also Lua. As I said, I don't really know how to write a module... comments are very welcome.
Honestly, it doesn’t work, but that’s a minor flaw! If you want to use buffers with indirection you have to take care of the argument delimiters. \grabbufferdata is excellent for that. I did some rewriting: stray globals and rough namespacing, mostly. On the practice of calling TeX macros from Lua, the cld manual can give you a boost: http://www.pragma-ade.com/general/manuals/cld-mkiv.pdf This explains how to properly use the context.*() namespace instead of tex.print and the likes. I could not figure out how exactly the section block thingy is supposed to work. It does not create the \startframe macro at all -- is this something custom? I infer it’s about the slide title so I have \startframe call \section but that should be taken as a placeholder at most. In my own slide module I use \{start,stop}section with the option placehead=no and rely on the page header to display the slide title (i.e. current section running head). That was the laziest way I could imagine :P Some remarks: - you should rename simplesteps.mkiv to t-simplesteps.mkiv, indicating that it is a thirdparty module - if you plan on expanding the code you eventually will come to love this bit: http://wiki.contextgarden.net/System_Macros - Context has a namespacing system which you might consider switching to in the long term: http://tex.stackexchange.com/q/58654 but it’s arguably an advanced method - maybe switch to mkvi as named parameters make rewriting macros a breeze
Is it ok if I send a PDF sample to the list?
For uploading docs and such to the “downloads” section on bitbucket is great. Then just post a link. Happy TeXing! Philipp