\startenvironment paper

% Proefschrift formaat is 17x24cm
% We doen aan beide zijden 5mm afloop, zodat we plaatjes vol kunnen printen
\definepapersize[proefschrift+rand][width=180mm, height=250mm]
\definepapersize[proefschrift][width=170mm, height=240mm]

% Voor draft: 1 mm kleiner aan elke kant
% Dat is makkelijker printen
\definepapersize[A5klein][width=146mm, height=208mm]

\setuppapersize[proefschrift]

\startmode[afloop]
\setuppapersize[proefschrift][proefschrift+rand]
\stopmode

\setuplayout[location={middle,middle}]
\setuplayout
  [width=130mm,
   height=215mm,
   backspace=20mm,
   topspace=15mm,
   header=10mm, % nodig?
   footer=10mm]

% Snijranden
\setuplayout[marking=on]

% Assymetrisch
\setuppagenumbering[state=start, style=normal, location={header, right}, alternative=doublesided]

\startmode[draft]
\setuppapersize[A5klein]
\setuplayout
  [width=130mm,
   height=207mm,
   backspace=8mm, % links en rechts symmetrisch
   topspace=0mm,
   header=7mm, % nodig?
   footer=5mm]
\stopmode

\stopenvironment
