2007/4/20, Xan <DXpublica@telefonica.net>:
Hi,

Is it any way to set only left and right margin on layout and that width
and height of the text are automatically set to the maximal of the
possible width (that is
\printpaperwidth-\leftmargin-\leftedge-\leftedgedistance-\leftmarginditance-{the
same with right margins})?

I think that it will be useful if there were something like:

\setuplayout[   leftmargin=0mm,
        leftedge=10mm, %distance between border of paper and margin
        leftmargindistance=0mm, %distance between margin ant text
        leftedgedistance=0mm, %distance between margin and leftedge
        rightmargin=0mm,
        rightedge=10mm, %distance between border of paper and margin
        rightmargindistance=0mm, %distance between margin ant text
        rightedgedistance=0mm, %distance between margin and leftedge
        width=maximal]

(see the last line)

Thanks,
Xan

Hi Xan,

I think you misunderstood the layout of ConTeXt.

You are looking for backspace and cutspace.

\setuplayout
  [backspace=2cm, % left margin on the page
   cutspace=4cm,   % right margin on the page
   height=fit]

\starttext
\dorecurse{10}{\input knuth\par}
\stoptext

Wolfgang