% content=tex
%
% copyright=pragma-ade readme=readme.pdf licence=cc-by-nc-sa

\setuppapersize
  [A4,landscape]
  [A4,landscape]

\setuplayout
  [height=middle,width=middle,
   header=0pt,footer=0pt,
   topspace=1cm,
   cutspace=1cm,backspace=3cm]

\newcounter\DirtyTrickCounter

\startsetups[verydirtytrick]

  \doglobal\increment\DirtyTrickCounter

  \ifodd\DirtyTrickCounter
     \hbox to \overlaywidth{\hskip1cm\foregroundbox}
  \fi

\stopsetups

\defineoverlay
  [verydirtytrick]
  [\setups{verydirtytrick}]

\starttext

\combinepages
  [mag-0004-000.pdf]
  [nx=2,ny=1,
   background=verydirtytrick,
   frame=on]

\stoptext
