ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] marginwidths
@ 2023-11-22 13:17 Hans van der Meer via ntg-context
  2023-11-22 13:46 ` [NTG-context] marginwidths Marco Patzer
  0 siblings, 1 reply; 6+ messages in thread
From: Hans van der Meer via ntg-context @ 2023-11-22 13:17 UTC (permalink / raw)
  To: NTG ConTeXt; +Cc: Hans van der Meer


[-- Attachment #1.1: Type: text/plain, Size: 249 bytes --]

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




[-- Attachment #1.2.1: Type: text/html, Size: 832 bytes --]

[-- Attachment #1.2.2: showlayout.pdf --]
[-- Type: application/pdf, Size: 25180 bytes --]

[-- Attachment #1.2.3: Type: text/html, Size: 212 bytes --]

[-- Attachment #1.2.4: showlayout.tex --]
[-- Type: application/octet-stream, Size: 281 bytes --]

\setuppapersize[A4][A4]
\setuplayout[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

[-- Attachment #1.2.5: Type: text/html, Size: 212 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: marginwidths
  2023-11-22 13:17 [NTG-context] marginwidths Hans van der Meer via ntg-context
@ 2023-11-22 13:46 ` Marco Patzer
  2023-11-22 14:45   ` Hans van der Meer via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Marco Patzer @ 2023-11-22 13:46 UTC (permalink / raw)
  To: Hans van der Meer via ntg-context

On Wed, 22 Nov 2023 14:17:29 +0100
Hans van der Meer via ntg-context <ntg-context@ntg.nl> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: marginwidths
  2023-11-22 13:46 ` [NTG-context] marginwidths Marco Patzer
@ 2023-11-22 14:45   ` Hans van der Meer via ntg-context
  2023-11-22 17:03     ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Hans van der Meer via ntg-context @ 2023-11-22 14:45 UTC (permalink / raw)
  To: Marco Patzer, NTG ConTeXt; +Cc: Hans van der Meer


[-- Attachment #1.1: Type: text/plain, Size: 1391 bytes --]

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 <lists@homerow.info> wrote:
> 
> On Wed, 22 Nov 2023 14:17:29 +0100
> Hans van der Meer via ntg-context <ntg-context@ntg.nl> 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


[-- Attachment #1.2.1: Type: text/html, Size: 1550 bytes --]

[-- Attachment #1.2.2: showlayout.pdf --]
[-- Type: application/pdf, Size: 8473 bytes --]

[-- Attachment #1.2.3: Type: text/html, Size: 1183 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: marginwidths
  2023-11-22 14:45   ` Hans van der Meer via ntg-context
@ 2023-11-22 17:03     ` Wolfgang Schuster
  2023-12-03 15:33       ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2023-11-22 17:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Hans van der Meer via ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 999 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 2246 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: marginwidths
  2023-11-22 17:03     ` Wolfgang Schuster
@ 2023-12-03 15:33       ` Pablo Rodriguez via ntg-context
  2023-12-03 15:46         ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2023-12-03 15:33 UTC (permalink / raw)
  To: ntg-context; +Cc: Pablo Rodriguez

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: marginwidths
  2023-12-03 15:33       ` Pablo Rodriguez via ntg-context
@ 2023-12-03 15:46         ` Wolfgang Schuster
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2023-12-03 15:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez via ntg-context
  Cc: Pablo Rodriguez

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-03 15:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-22 13:17 [NTG-context] marginwidths Hans van der Meer via ntg-context
2023-11-22 13:46 ` [NTG-context] marginwidths Marco Patzer
2023-11-22 14:45   ` Hans van der Meer via ntg-context
2023-11-22 17:03     ` Wolfgang Schuster
2023-12-03 15:33       ` Pablo Rodriguez via ntg-context
2023-12-03 15:46         ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).