\setuppapersize[S5][S5]
\enablemode[Professor]
\defineblock[ComplementTwo]
\defineblock[ComplementThree]
\setupblock[ComplementTwo,ComplementThree][
before={\page[yes]\setuppagenumber[state=stop]\setupheadertexts[]\setupbackgrounds[page][background=color,backgroundcolor=red]},
after={\page[yes]\setuppagenumber[state=start]}]
\starttext
% Let's process the summaries ;
\beginComplementTwo
Last course, we have seen A.
\endComplementTwo
\beginComplementThree
Last course, we have seen B….
\endComplementThree
\beginComplementThree
Last course, we have seen C….
\endComplementThree
% ----
Let's begin course 1.
This is course 1 : a lot of pages here about A!
\page[yes]
Let's begin course 2.
\doifmode{Professor} {
\useblocks[ComplementTwo]
}
This is course 2 : a lot of pages here about B and C!
\page[yes]
Let's begin course 3.
\doifmode{Professor} {
\useblocks[ComplementThree]
}
This is course 3 : a lot of pages here about D... !
\stoptext