ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: Pawel Urbanski via ntg-context <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Subject: Re: [NTG-context] Layout with equal margins.
Date: Sun, 21 May 2023 14:08:01 +0200	[thread overview]
Message-ID: <48b5046a-77e1-9cbb-4d85-6b6eea18a433@gmail.com> (raw)
In-Reply-To: <193c2fc1-7df2-ce51-e8d4-452dde16efa2@gmail.com>

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
___________________________________________________________________________________

  reply	other threads:[~2023-05-21 12:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-21 11:56 Pawel Urbanski via ntg-context
2023-05-21 12:08 ` Wolfgang Schuster via ntg-context [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48b5046a-77e1-9cbb-4d85-6b6eea18a433@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=wolfgang.schuster.lists@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).