\startmode[asintended] \setupbodyfont[lbr] \stopmode
\setupbodyfont[14.4pt]
\setuptolerance
[verytolerant,stretch]
\setuppapersize
[S6][S6]
\setuplayout
[width=fit,
rightedge=3cm,
margin=0pt,
rightedgedistance=2cm,
height=middle,
header=0pt,
footer=0pt,
topspace=1cm,
backspace=1cm]
\setupcolors
[state=start]
\definecolor [One] [r=.6,g=.4,b=.4]
\definecolor [Two] [r=.4,g=.6,b=.6]
\setupbackgrounds
[page]
[background={one,two,three,four}]
\defineoverlay
[one]
[{\framed
[frame=off,background=color,backgroundcolor=Two,
width=\overlaywidth,height=\overlayheight]
{}}]
\defineoverlay
[three]
[{\hbox to \overlaywidth
{\hfill\SetOverlayWidth
\framed
[frame=off,background=color,backgroundcolor=One,
width=\overlaywidth,height=\overlayheight]
{}}}]
\definefont[NumberFont][RegularBold at 3cm]
\defineoverlay
[two]
[{\framed
[frame=off,width=\overlaywidth,height=\overlayheight,
offset=overlay]
{\vfill
\NumberFont\setstrut\SetOverlayWidth
\hbox to \hsize
{\hfill
\setupinteraction[style=,color=]
\setbox0=\hbox{\strut\One\pagenumber}
\hbox to 0pt{\hss\gotobox{\box0}[previouspage]\hss}
\hskip\overlaywidth}}}]
\defineoverlay
[four]
[{\framed
[frame=off,width=\overlaywidth,height=\overlayheight,offset=overlay]
{\vfill
\hbox to \hsize
{\hfill
\SetOverlayWidth
\framed
[frame=off,width=\overlaywidth,height=\overlayheight,offset=overlay]
{\vfill\NumberFont\setstrut
\setbox0=\hbox{\strut\Two\pagenumber}
\setbox2=\hbox{\clip[nx=2,ny=1,x=2,y=1]{\copy0}}
\dp2=\dp0
\hbox to \hsize{\hbox to 0pt{\hss\hskip.5\wd0\box2\hss}\hfill}}}}}]
\def\SetOverlayWidth
{\scratchdimen = \rightedgedistance
\divide\scratchdimen by 2
\advance\scratchdimen by \rightedgewidth
\advance\scratchdimen by \backspace
\edef\overlaywidth{\the\scratchdimen}}
\startnotmode[no-metapost]
\setupbackgrounds
[page]
[background={number}]
\defineoverlay[number][\useMPgraphic{number}]
\startuseMPgraphic{number}
StartPage ;
path Vage ; picture Left, Right ;
x1 = x2 = xpart (llcorner Field[Text][RightEdge] shifted (-RightEdgeDistance/2,0)) ;
y1 = ypart llcorner Page ;
y2 = ypart ulcorner Page ;
Vage := llcorner Page -- z1 -- z2 -- ulcorner Page -- cycle ;
fill Page withcolor \MPcolor {One} ;
fill Vage withcolor \MPcolor {Two} ;
if PageNumber>0 :
defaultfont := "\truefontname{RegularBold}" ;
Left := Right := thelabel("\folio",origin) ysized 3cm ;
clip Right to boundingbox Right shifted (bbwidth(Right)/2,0) ;
draw Left shifted z1 shifted (0,2.25cm) withcolor \MPcolor {One} ;
draw Right shifted z1 shifted (0,2.25cm) withcolor \MPcolor {Two} ;
fi ;
StopPage ;
\stopuseMPgraphic
\stopnotmode
\defineoverlay
[nextpage]
[\overlaybutton{nextpage}]
\setupbackgrounds
[text]
[backgroundoffset=.5cm,
background=nextpage]
\setupinteraction
[state=start,
display=new,
menu=on]
\setupinteraction
[color=,
contrastcolor=]
\definehead[Topic] [chapter] \setuphead[Topic] [style=\bfc]
\definehead[Subject][section] \setuphead[Subject][style=\bfa]
\setuphead
[Topic, Subject]
[number=no,
after={\blank[big]}]
\let\Topics \gobbleoneargument
\let\Subjects\relax
\startinteractionmenu[right]
\setupinteraction
[color=black,
contrastcolor=Two]
\placelist
[Topic]
[alternative=e,
frame=off,
criterium=all]
\vfill
\stopinteractionmenu
\setuplist
[Topic]
[width=\rightedgewidth,
maxwidth=\rightedgewidth,
style=\bfa]
\setupwhitespace
[medium]
\setupblank
[medium]
\def\TitlePage#1
{\StartTitlePage#1\StopTitlePage}
\def\StartTitlePage
{\bgroup
\setupbackgrounds[page][background={one,three}]
\startstandardmakeup
\setupalign[middle]
\def\\{\vfil\bfb\setupinterlinespace}
\bfd\setupinterlinespace
\vfil}
\def\StopTitlePage
{\vfil\vfil\vfil
\stopstandardmakeup
\egroup}
\doifnotmode{demo}{\endinput}
\starttext
\TitlePage{Some Quotes\\(that you probably know by now)}
\Topic{Tufte} \input tufte
\Topic{Knuth} \input knuth
\Topic{Reich} \input reich
\Topic{Zapf} \input zapf
\Topic{Materie} \input materie
\stoptext