ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Layout with equal margins.
@ 2023-05-21 11:56 Pawel Urbanski via ntg-context
  2023-05-21 12:08 ` Wolfgang Schuster via ntg-context
  2023-05-21 16:15 ` Willi Egger via ntg-context
  0 siblings, 2 replies; 7+ messages in thread
From: Pawel Urbanski via ntg-context @ 2023-05-21 11:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Pawel Urbanski

Dear Friends,

I played wih hte setup and read the posts on the list. Apparently the 
mechanism for setting different margins can be confusing at times. At 
least, it is for a beginner.


I want to create 2 versions of my book:

Version 1: Goes to printing with different inner and outer margins due 
to binding and so on,

Version 2: Can be downloaded and the left and right margins are equal size.


I want ot keep the 6x9 size of a page, which is: 432x648pt. The sum of 
margins in both cases is 120pt. It leaves 312pt for the text content.


When I do hte following:

\setuplayout[

     alternative=doublesided, width=fit, height=fit,

     leftmargin=60pt, leftmargin=60pt, ...]

The makeup width and text width is calculated as 472pt and the margin 
appears to be set just on one side.

I set both cutspace and backspace to 0pt. I assumed that either value is 
a particular area of the page.


Has any one of you handled such a case? I'll be very glad to get some 
directions.

I can create a simple document with modes or documents to illustrate my 
case if needed...


Thank you,

Pawel

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: [NTG-context] Layout with equal margins.
  2023-05-21 11:56 [NTG-context] Layout with equal margins Pawel Urbanski via ntg-context
@ 2023-05-21 12:08 ` Wolfgang Schuster via ntg-context
  2023-05-21 18:39   ` Pawel Urbanski via ntg-context
  2023-05-21 16:15 ` Willi Egger via ntg-context
  1 sibling, 1 reply; 7+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2023-05-21 12:08 UTC (permalink / raw)
  To: Pawel Urbanski via ntg-context; +Cc: Wolfgang Schuster

Pawel Urbanski via ntg-context schrieb am 21.05.2023 um 13:56:
> Dear Friends,
>
> I played wih hte setup and read the posts on the list. Apparently the 
> mechanism for setting different margins can be confusing at times. At 
> least, it is for a beginner.
>
>
> I want to create 2 versions of my book:
>
> Version 1: Goes to printing with different inner and outer margins due 
> to binding and so on,
>
> Version 2: Can be downloaded and the left and right margins are equal 
> size.
>
>
> I want ot keep the 6x9 size of a page, which is: 432x648pt. The sum of 
> margins in both cases is 120pt. It leaves 312pt for the text content.
>
>
> When I do hte following:
>
> \setuplayout[
>
>     alternative=doublesided, width=fit, height=fit,
>
>     leftmargin=60pt, leftmargin=60pt, ...]
>
> The makeup width and text width is calculated as 472pt and the margin 
> appears to be set just on one side.
>
> I set both cutspace and backspace to 0pt. I assumed that either value 
> is a particular area of the page.
>
>
> Has any one of you handled such a case? I'll be very glad to get some 
> directions.
>
> I can create a simple document with modes or documents to illustrate 
> my case if needed...

The example below sets the correct margins for the download version.

You use the backspace key to set the value for the inner/left margin and 
the width key for the textwidth.

\definepapersize [pawel] [width=432pt,height=648pt]

\setuppapersize [pawel]

\setuplayout
   [backspace=60pt,
    width=312pt]

\starttext
\showlayout
\stoptext

Wolfgang

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: [NTG-context] Layout with equal margins.
  2023-05-21 11:56 [NTG-context] Layout with equal margins Pawel Urbanski via ntg-context
  2023-05-21 12:08 ` Wolfgang Schuster via ntg-context
@ 2023-05-21 16:15 ` Willi Egger via ntg-context
  1 sibling, 0 replies; 7+ messages in thread
From: Willi Egger via ntg-context @ 2023-05-21 16:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Willi Egger

As Wolfgang mentions, the whitespace at the left margin is set with “backspace=60pt”

If the whitespace at the right margin of the papersize should be equal to the backspace you also can use

\setuplayout
  [backspace=60pt,
   width=middle,
   topspace=“your topspace”,
   height=middle]


Kind regards

Willi


> On 21 May 2023, at 13:56, Pawel Urbanski via ntg-context <ntg-context@ntg.nl> wrote:
> 
> Dear Friends,
> 
> I played wih hte setup and read the posts on the list. Apparently the mechanism for setting different margins can be confusing at times. At least, it is for a beginner.
> 
> 
> I want to create 2 versions of my book:
> 
> Version 1: Goes to printing with different inner and outer margins due to binding and so on,
> 
> Version 2: Can be downloaded and the left and right margins are equal size.
> 
> 
> I want ot keep the 6x9 size of a page, which is: 432x648pt. The sum of margins in both cases is 120pt. It leaves 312pt for the text content.
> 
> 
> When I do hte following:
> 
> \setuplayout[
> 
>     alternative=doublesided, width=fit, height=fit,
> 
>     leftmargin=60pt, leftmargin=60pt, ...]
> 
> The makeup width and text width is calculated as 472pt and the margin appears to be set just on one side.
> 
> I set both cutspace and backspace to 0pt. I assumed that either value is a particular area of the page.
> 
> 
> Has any one of you handled such a case? I'll be very glad to get some directions.
> 
> I can create a simple document with modes or documents to illustrate my case if needed...
> 
> 
> Thank you,
> 
> Pawel
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : https://contextgarden.net
> ___________________________________________________________________________________

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: [NTG-context] Layout with equal margins.
  2023-05-21 12:08 ` Wolfgang Schuster via ntg-context
@ 2023-05-21 18:39   ` Pawel Urbanski via ntg-context
  2023-05-21 20:09     ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 7+ messages in thread
From: Pawel Urbanski via ntg-context @ 2023-05-21 18:39 UTC (permalink / raw)
  To: Wolfgang Schuster via ntg-context; +Cc: Pawel Urbanski

Hi,

Using the 'backspace' key worked for setting up equal margins for my 
downloadable version.

I created a mode for printing where I used the following values:

\setuplayout[

     rightmargin=52pt, leftmargin=52pt,

     backspace=16pt, ...]

Unfortunately the text width is not equal to 312pt as in hte 
downloadable version.

I used these values since I infered that we have:

** left and righ margins on the sides of text,

** backspace which is an additional space in the gutter.

Following the setup I described in the printable version I would get or 
I at least wanted:

52pt outer margins and 68pt inner margins.


Is my reasoning correct or I am missing something?


Thank you for explanation. I keep asking for I want to fix my layout and 
there may be others who may find it useful in the future.

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: [NTG-context] Layout with equal margins.
  2023-05-21 18:39   ` Pawel Urbanski via ntg-context
@ 2023-05-21 20:09     ` Wolfgang Schuster via ntg-context
  2023-05-21 20:27       ` Pawel Urbanski via ntg-context
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2023-05-21 20:09 UTC (permalink / raw)
  To: Pawel Urbanski via ntg-context; +Cc: Wolfgang Schuster


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

Pawel Urbanski via ntg-context schrieb am 21.05.2023 um 20:39:
> Hi,
>
> Using the 'backspace' key worked for setting up equal margins for my 
> downloadable version.
>
> I created a mode for printing where I used the following values:
>
> \setuplayout[
>
>     rightmargin=52pt, leftmargin=52pt,
>
>     backspace=16pt, ...]
>
> Unfortunately the text width is not equal to 312pt as in hte 
> downloadable version.
>
> I used these values since I infered that we have:
>
> ** left and righ margins on the sides of text,
>
> ** backspace which is an additional space in the gutter.
>
> Following the setup I described in the printable version I would get 
> or I at least wanted:
>
> 52pt outer margins and 68pt inner margins.
>
>
> Is my reasoning correct or I am missing something?

The leftmargin and rightmargin keys have no relation to the left and 
margins of the text block.

What you have to do is to set values to the backspace and cutspace keys.

In the example below you can switch between the layout of the print and 
screen version by changing modes.

\enablemode[print]
%\enablemode[screen]

\definepapersize [pawel] [width=432pt,height=648pt]

\setuppapersize [pawel]

\startmode[print]
\setuplayout
   [backspace=52pt,
     cutspace=68pt,
        width=middle]
\stopmode

\startmode[screen]
\setuplayout
   [backspace=60pt,
        width=312pt]
\stopmode

\starttext
\showlayout
\stoptext

Wolfgang


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

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

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: [NTG-context] Layout with equal margins.
  2023-05-21 20:09     ` Wolfgang Schuster via ntg-context
@ 2023-05-21 20:27       ` Pawel Urbanski via ntg-context
  2023-05-22  6:58         ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 7+ messages in thread
From: Pawel Urbanski via ntg-context @ 2023-05-21 20:27 UTC (permalink / raw)
  To: Wolfgang Schuster via ntg-context; +Cc: Pawel Urbanski

Thanks Wolfgang!

Just last few questions and I og wiht cows home... :)

** Does backspace or cutspace cover the inner space where bhe book 
binding is located?

** What about the margin where one would like to place chapter and 
section numbers?


Since my printing house requires 3mm of space around the page for 
trimming. Does defining a paper size taller and wider than the 6x9 
'pawel' paper size you gave in hte example is a solution?

For the example purposes:

\definepapersize[printing_sheet][width440pt,height=656pt]


Then use:

\setuppapersize[pawel][printing_sheet]

As I understand using 'location=middle in \seputlayout would place my 
6x9 page in the middle of this wider and taller sheet.


So many more htings are much more clear and I am copying these messages 
to propose osme changes to the wiki.

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: [NTG-context] Layout with equal margins.
  2023-05-21 20:27       ` Pawel Urbanski via ntg-context
@ 2023-05-22  6:58         ` Wolfgang Schuster via ntg-context
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2023-05-22  6:58 UTC (permalink / raw)
  To: Pawel Urbanski via ntg-context; +Cc: Wolfgang Schuster

Pawel Urbanski via ntg-context schrieb am 21.05.2023 um 22:27:
> Thanks Wolfgang!
>
> Just last few questions and I og wiht cows home... :)
>
> ** Does backspace or cutspace cover the inner space where bhe book 
> binding is located?

backspace sets the inner margin and cutspace the outer margin.

> ** What about the margin where one would like to place chapter and 
> section numbers?

This is where you use leftmargin for the width of the are of margin 
texts and leftmargindistance
for the distance between the left side margin block and the text block.

> Since my printing house requires 3mm of space around the page for 
> trimming. Does defining a paper size taller and wider than the 6x9 
> 'pawel' paper size you gave in hte example is a solution?
>
> For the example purposes:
>
> \definepapersize[printing_sheet][width440pt,height=656pt]
>
>
> Then use:
>
> \setuppapersize[pawel][printing_sheet]
>
> As I understand using 'location=middle in \seputlayout would place my 
> 6x9 page in the middle of this wider and taller sheet.
>
>
> So many more htings are much more clear and I am copying these 
> messages to propose osme changes to the wiki.

ConTeXt already provides a named layout "oversized" where you can 
control the extra height/width for cutting.

To get an extra of 3mm on each side you have to add 
\setuppapersize[distance=6mm] (you need 6mm because it's the combined 
value for the left and right side) in combination with 
\setuplayout[location=middle].

%%%% begin example
\enablemode[print]
%\enablemode[screen]

\startmode[print]

\setuppapersize [distance=6mm]

\definepapersize [pawel] [width=432pt,height=648pt]

\setuppapersize [pawel] [oversized]

\setuplayout
   [ location=middle,
    backspace=52pt,
     cutspace=68pt,
        width=middle]

\stopmode

\startmode[screen]

\definepapersize [pawel] [width=432pt,height=648pt]

\setuppapersize [pawel]

\setuplayout
   [backspace=60pt,
        width=312pt]

\stopmode

\starttext
\showlayout
\stoptext
%%%% end example

Wolfgang

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2023-05-22  6:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-21 11:56 [NTG-context] Layout with equal margins Pawel Urbanski via ntg-context
2023-05-21 12:08 ` Wolfgang Schuster via ntg-context
2023-05-21 18:39   ` Pawel Urbanski via ntg-context
2023-05-21 20:09     ` Wolfgang Schuster via ntg-context
2023-05-21 20:27       ` Pawel Urbanski via ntg-context
2023-05-22  6:58         ` Wolfgang Schuster via ntg-context
2023-05-21 16:15 ` Willi Egger via ntg-context

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).