![](https://secure.gravatar.com/avatar/02a711d78d02355347d6cff73fda2572.jpg?s=120&d=mm&r=g)
Hi Hans, could you check the definition of \placeheadmarginalternative in strc-ren.mkiv? The current solution fails when structure number are set to “margin” in a doublesided layout because of the hard-coded \leftmargindistance. The “maybe better” solution actually seems to work better. \setuplayout [backspace=8cm, width=5cm, leftmargindistance=2cm] \setuppagenumbering [alternative=doublesided] \setupheads [alternative=margin] \unexpanded\def\placeheadmarginalternative#1#2% {\vbox {\localheadsetup \begstrut % use one \strut here! \dontleavehmode % in case there is no strut, else side effects with llap \ifconditional\headshownumber % this gives a wrong result on the second page %\llap{\hbox{\hfill{#1}\hskip\localheadskip\hskip\leftmargindistance}}% introduces whitespace % maybe better: \inleftmargin{\hbox{\hss{#1}\hskip\localheadskip}}% \fi {#2}}} \showframe \starttext \chapter{Chapter} \null\page \section{Section} \subsection{Subsection} \subsubsection{Subsubsection} \stoptext Regards Marco Patzer