On 14 Jul 2017, at 17:28, Rik Kabel <context@rik.users.panix.com> wrote:

Henri’s example fails for me in the same way that Floris describes. However, when I remove either or both of the following lines from the first \setuplayout directive, all is well.
header=0mm,
footer=0mm,

In this example, the complete unnamed layout can simply be removed.

It is not clear why Floris has two layouts defined and active. One is stepping on the other. I do not know if the results of applying multiple layouts should be additive like this, or not, but I would think that they should not be.

but removing the 

header=0mm,
footer=0mm,

will redefine the page surface.

What i tried was to specify a margin of 10mm around the text block which has 5 columns.
This works only if the column balance is set to no.
There is probably a good reason for, but i don’t understand it (yet)

What is the correct way to define it?


.F


\setupcolumns[
    n=5, 
    distance=4mm, 
    balance=yes, 
    tolerance=tolerant]
\setupfootertexts[][]

\setuppagenumber[state=none]
\setuppagenumber[state=stop]
\definelayout[WithoutMarginnotes][
    location={duplex},
    grid=no,
    topspace=1cm,
    % height=19cm,
    height=fit,
    backspace=1cm,
    cutspace=0cm,
    leftmargin=0cm,
    leftmargindistance=0.4cm,
    width=fit,
    rightmargindistance=0cm,
    rightmargin=0cm,
    header=0mm,
    top=0mm,
    footer=0mm,
    bottom=0mm
    ]
 \setuplayout[WithoutMarginnotes]