Hi, I finally tried to build my presentations stepwise, and this works:
"""
\usemodule[present-steps]
\definelayer[page][
x=0pt,y=0pt,
width=1pw,height=1ph,
]
\setupbackgrounds[page][background={page}]
\starttext
\startsteps
\startstep
\ifnum\currentstep > 1
\repeathead[chapter]
\else
\chapter{Slide}
\fi
\stopstep
\startitemize
\startstep\startitem first item\stopitem\stopstep
\startstep\startitem second item
\setlayerframed[page][preset=rightbottom,width=.33tw,height=15lh,background=color,backgroundcolor=yellow]{YELLOW}
\stopitem\stopstep
\startstep\startitem fourth item\resetlayer[page]
\stopitem\stopstep
\startstep\startitem fifth item
\setlayerframed[page][preset=rightbottom,width=.33tw,height=15lh,background=color,backgroundcolor=blue]{BLUE}
\stopitem\stopstep
\stopitemize
\stopsteps
\stoptext
"""
i.e. the items get build up page by page, and using a layer, I can show
images for single items (or could build them up without \resetlayer).
Now, this is quite verbose, and for publication I want a non-stepped
version without changing the code (let’s ignore the images for now).
I tried to wrap \startitem … \stopitem and also the \chapter (slide
title) like this:
"""
\startmode[steps]
\usemodule[present-steps]
\define[1]\startSlide{
\startsteps
\startstep
\ifnum\currentstep > 1
\repeathead[chapter]
\else
\chapter{#1}
\fi
\stopstep
}
\def\stopSlide{\stopsteps}
\def\startItm{\startstep\startitem}
\def\stopItm{\stopitem\stopstep}
\stopmode
\startnotmode[steps]
\define[1]\startSlide{\startchapter[title={#1}]}
\def\stopSlide{\stopchapter}
\def\startItm{\startitem}
\def\stopItm{\stopitem}
\stopnotmode
"""
i.e. the code (without the layer stuff) would look like:
\startSlide{Slide}
\startitemize
\startItm first \stopItm
\startItm second \stopItm
\startItm third \stopItm
\stopitemize
\stopSlide
… but apparently, I can’t wrap the environments like that.
Any suggestions?
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________