I would like to change the width of the margins on the page. In the MWE here, the pagelayout does not seem to obey the \setuplayout command. Why are the margins shown uneffected by \setuplayout? yours sincerely dr. Hans van der Meer 
On Wed, 22 Nov 2023 14:17:29 +0100
Hans van der Meer via ntg-context
I would like to change the width of the margins on the page. In the MWE here, the pagelayout does not seem to obey the \setuplayout command. Why are the margins shown uneffected by \setuplayout?
Works as expected here. The margins have changed and \showlayout gives you: \leftmarginwidth = 6cm \rightmarginwidth = 10cm Change the example to: \setuplayout [leftmargin=6mm, %% mm, not cm rightmargin=10mm] That way you better see the effect on the page. Marco
But changing the width of the section in the middle is not changing. Adapt \textwidth narrows the textwidth but does not allow wider margins. see next example. So how to adapt the page to for example: [leftmargin 40mm][middle what is left][rightmargin 60mm] this should leave 210-40-60=110mm in the middle, but doesn't. The textwidth is narrowed but the margins refuse to obey their setting. yours sincerely dr. Hans van der Meer \setuppapersize[A4][A4] \setuplayout[leftmargin=40mm,rightmargin=60mm,textwidth=110mm] \showframe \starttext setuplayout: leftmargin=40mm, rightmargin=60mm, textwidth=110mm\crlf abc\dotfill xyz\crlf \stoptext 
On 22 Nov 2023, at 14:46, Marco Patzer
wrote: On Wed, 22 Nov 2023 14:17:29 +0100 Hans van der Meer via ntg-context
wrote: I would like to change the width of the margins on the page. In the MWE here, the pagelayout does not seem to obey the \setuplayout command. Why are the margins shown uneffected by \setuplayout?
Works as expected here. The margins have changed and \showlayout gives you:
\leftmarginwidth = 6cm \rightmarginwidth = 10cm
Change the example to:
\setuplayout [leftmargin=6mm, %% mm, not cm rightmargin=10mm]
That way you better see the effect on the page.
Marco
Hans van der Meer via ntg-context schrieb am 22.11.2023 um 15:45:
But changing the width of the section in the middle is not changing. Adapt \textwidth narrows the textwidth but does not allow wider margins. see next example. So how to adapt the page to for example: [leftmargin 40mm][middle what is left][rightmargin 60mm] this should leave 210-40-60=110mm in the middle, but doesn't. The textwidth is narrowed but the margins refuse to obey their setting.
yours sincerely dr. Hans van der Meer
\setuppapersize[A4][A4] \setuplayout[leftmargin=40mm,rightmargin=60mm,textwidth=110mm] \showframe \starttext setuplayout: leftmargin=40mm, rightmargin=60mm, textwidth=110mm\crlf abc\dotfill xyz\crlf \stoptext
Alternative 1: \setuplayout [backspace=40mm, width=110mm] \showframe \starttext \page[empty] \stoptext Alternative 2: \setuplayout [backspace=40mm, cutspace=60mm, width=middle] \showframe \starttext \page[empty] \stoptext Wolfgang
On 11/22/23 18:03, Wolfgang Schuster wrote:
Hans van der Meer via ntg-context schrieb am 22.11.2023 um 15:45:
But changing the width of the section in the middle is not changing.
dr. van der Meer, your sample works for me if you add width=fit, such as in: \setuplayout[width=fit, leftmargin=6cm,rightmargin=10cm] \showframe \starttext \ConTeXt\space\contextversion\blank before the \type{\starttext}:\crlf \type{\setuplayout[leftmargin=6cm,rightmargin=10cm]}\crlf make no difference in displayed frame \showlayout \stoptext I wonder whether I might be missing something, since this option is not mentioned by Wolfgang. Just in case it might help, Pablo
Pablo Rodriguez via ntg-context schrieb am 03.12.2023 um 16:33:
On 11/22/23 18:03, Wolfgang Schuster wrote:
Hans van der Meer via ntg-context schrieb am 22.11.2023 um 15:45:
But changing the width of the section in the middle is not changing. dr. van der Meer,
your sample works for me if you add width=fit, such as in:
\setuplayout[width=fit, leftmargin=6cm,rightmargin=10cm] \showframe \starttext \ConTeXt\space\contextversion\blank before the \type{\starttext}:\crlf \type{\setuplayout[leftmargin=6cm,rightmargin=10cm]}\crlf make no difference in displayed frame \showlayout \stoptext
I wonder whether I might be missing something, since this option is not mentioned by Wolfgang.
IIRC width=fit is intended for presentation styles because it uses margin and edge values to calculate the text area. Wolfgang
participants (4)
-
Hans van der Meer
-
Marco Patzer
-
Pablo Rodriguez
-
Wolfgang Schuster