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
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
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.
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
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.
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
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
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 ___________________________________________________________________________________
participants (3)
-
Pawel Urbanski
-
Willi Egger
-
Wolfgang Schuster