From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,NICE_REPLY_A,T_SCC_BODY_TEXT_LINE, URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12890 invoked from network); 21 May 2023 20:10:27 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 21 May 2023 20:10:27 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 618945C0; Sun, 21 May 2023 22:10:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WW0P5sOm9MU9; Sun, 21 May 2023 22:09:59 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 02E9E1052; Sun, 21 May 2023 22:09:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D43141052 for ; Sun, 21 May 2023 22:09:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lZVNNI7FKcX1 for ; Sun, 21 May 2023 22:09:53 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.45; helo=mail-ej1-f45.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id DCBDA5C0 for ; Sun, 21 May 2023 22:09:53 +0200 (CEST) Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-96adcb66f37so1047614566b.1 for ; Sun, 21 May 2023 13:09:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684699788; x=1687291788; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:from:to:cc:subject:date :message-id:reply-to; bh=rpk37X4ifajrwQwikBlT9JvDH3oYA6wkcn1Q+NIKROU=; b=E4Q92s1TSLJuJlendG8h9hmw4gmE1aEvu44RYP03KjWgaf8LdUQ/02WSIMq2Yc3ESt +CRTFk9/2V2K9zC2f7mRmwPxgSGwwPtDeIugI94ypqmYA4LoXZqmNNgjr0OlJboBEgJx 5TBSQ4OyfX2Dbxu48S5QxQklwb0tGAs+xOkJROCsqPWvrMR8CtcEyQbV1kfN6SKPjZ6X MFiAjsOsi3dIlFc9ofPsghmDYTWPLnS8arSENEKaEFnxJZwqO/qVVKPR3zO9P0NajuUQ m5Q7bQvqGjAdL7hlGRRnZ27m6N8t0qvBmWQhkcn60heTD0PmO/s8HOcETg5pVrFmcMsG 5EyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684699788; x=1687291788; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rpk37X4ifajrwQwikBlT9JvDH3oYA6wkcn1Q+NIKROU=; b=N5oYDyKr0aoJ/x9Xm4WMUQAf2FFi04ImV3WJY645mgUsmbwNrHJPi9O1k05l5XPFvC UYqp++/rHuS5P/Y3HFlHUrXEvOjWYVAAL4i6+tKzFNX4Jmd4nm1NAGKUTPvczbVRCPl+ 4bi/Jv5Xf3y3nqMCOpEvq22lN3IS1B7YHIXhQH6b6a9GMp99nd8c1itU8ePPDwOSRnyz XeQW4d+Z0w313h3zuBl/tjDsKqx/Tp1oohL4//lC7g6zZpC+7+mFHohJCmwSU6tJ0ZNl NaLHQJKDtvBE0IHpKq6ShXynBMXb7iu1UY2ogkk7n3d2r/Ftr4DW2gxgFBNw3h7GnhNB PPRw== X-Gm-Message-State: AC+VfDyvKxFOwlHtm11I+DzWQKcUP79Fs9TN+J4VdcAmmPC6KSDFESDM 14pBTHbvCEuAi7dDrY2xpInaVPL/4EU= X-Google-Smtp-Source: ACHHUZ7RA0FU34aI3xgt58pEyDZ2oQp5IiHm4i75G0ACcNw7JNae0NBi/3wCQE7f/fv79w9gvFK4hA== X-Received: by 2002:a17:907:1614:b0:94e:e97b:c65 with SMTP id hb20-20020a170907161400b0094ee97b0c65mr8173269ejc.60.1684699787886; Sun, 21 May 2023 13:09:47 -0700 (PDT) Received: from ?IPv6:2a02:810d:a8bf:fe08:2444:5592:6d4a:61d4? ([2a02:810d:a8bf:fe08:2444:5592:6d4a:61d4]) by smtp.gmail.com with ESMTPSA id g16-20020aa7d1d0000000b005068fe6f3d8sm2181409edp.87.2023.05.21.13.09.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 May 2023 13:09:47 -0700 (PDT) To: Pawel Urbanski via ntg-context References: <193c2fc1-7df2-ce51-e8d4-452dde16efa2@gmail.com> <48b5046a-77e1-9cbb-4d85-6b6eea18a433@gmail.com> Message-ID: Date: Sun, 21 May 2023 22:09:45 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.60 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Subject: Re: [NTG-context] Layout with equal margins. X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.38 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Wolfgang Schuster via ntg-context Reply-To: mailing list for ConTeXt users Cc: Wolfgang Schuster Content-Type: multipart/mixed; boundary="===============5852010686206521831==" Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" This is a multi-part message in MIME format. --===============5852010686206521831== Content-Type: multipart/alternative; boundary="------------D2CEA616154789E5F402973D" Content-Language: en-US This is a multi-part message in MIME format. --------------D2CEA616154789E5F402973D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------D2CEA616154789E5F402973D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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

--------------D2CEA616154789E5F402973D-- --===============5852010686206521831== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============5852010686206521831==--