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 22:09:45 +0200	[thread overview]
Message-ID: <f6d6671d-0740-339e-7a3c-b40591df3909@gmail.com> (raw)
In-Reply-To: <abe12491-5804-6be1-0dac-2ac8cf3e4351@gmail.com>


[-- 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
___________________________________________________________________________________

  reply	other threads:[~2023-05-21 20:10 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
2023-05-21 18:39   ` Pawel Urbanski via ntg-context
2023-05-21 20:09     ` Wolfgang Schuster via ntg-context [this message]
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=f6d6671d-0740-339e-7a3c-b40591df3909@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).