From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73940 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: layout space between paper and text Date: Tue, 17 Jan 2012 19:39:32 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1326825610 24458 80.91.229.12 (17 Jan 2012 18:40:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Jan 2012 18:40:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 17 19:40:05 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RnDwv-00068m-4K for gctc-ntg-context-518@m.gmane.org; Tue, 17 Jan 2012 19:40:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2F579CB1F6; Tue, 17 Jan 2012 19:40:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uh-raOb9Qv6m; Tue, 17 Jan 2012 19:39:54 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DBFAFCB1F3; Tue, 17 Jan 2012 19:39:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4B5A5CB1F3 for ; Tue, 17 Jan 2012 19:39:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id AEalswSKPCQP for ; Tue, 17 Jan 2012 19:39:37 +0100 (CET) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by balder.ntg.nl (Postfix) with ESMTP id 55913CB1F0 for ; Tue, 17 Jan 2012 19:39:37 +0100 (CET) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0HIdaDM031589 for ; Tue, 17 Jan 2012 19:39:36 +0100 Original-Received: by eekc13 with SMTP id c13so964041eek.14 for ; Tue, 17 Jan 2012 10:39:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=K2fLdQ9WiwTOk4y4y02YNdw6eRZ18vOCon9oGDaBkeY=; b=KWcV5L1Vf1JVpffwSeJvGwtdWPs1pEeHQ9eoum9qw/qqXwBxaQpQvqW964JqoravBq r9Eom2pelAfLCtMhJh/qRrn5+Wv6QmA63IQb4OFaezrXi61ljSBswFveQZUc/JsjQNPB f9lECYeyvDqAq+2+QAYQci1SplREsSMoPcQQ8= Original-Received: by 10.213.19.212 with SMTP id c20mr4974314ebb.129.1326825575898; Tue, 17 Jan 2012 10:39:35 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFA154.dip.t-dialin.net. [87.175.161.84]) by mx.google.com with ESMTPS id b49sm89088875eec.9.2012.01.17.10.39.33 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Jan 2012 10:39:34 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04GmGDAS3 - e1ca5d09b9e7 - 20120117 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:73940 Archived-At: Am 17.01.2012 um 12:38 schrieb Pavel Dohnal: > Hello, = > I want to have 10mm space between rim of the paper and beginig of the tex= t. This is my layout: > = > \definelayout[normal][ > bottompace=3D0mm, > footerheight=3D6mm, > footerdistance=3D0mm, > bottomdistance=3D0mm, > bottomspace=3D0mm, > topdistance=3D0mm, > topspace=3D0mm, = > headerheight=3D60mm, > headerdistance=3D0mm, > leftedgewidth=3D0mm, > leftmargin=3D10mm, > leftedgedistance=3D0mm, > leftmargindistance=3D0mm, > backspace=3D10mm, > rightedge=3D0mm, > rightmargin=3D10mm, > cutspace=3D0mm, > rightmargindistance=3D0mm, > rightedgedistance=3D0mm, > width=3D277mm, > height=3D210mm > ] > \setuplayout[normal] > After printing is space in left 10mm, but space between top rim of the pa= per and top text is 14mm. Why is that? How to setup my layout to have exact= ly 10 mm both in top and in left? When you want to set all values to zero and only a few to certain value you= first clone the =93page=94 layout (where everything is zero) and set then = the rest to desired value. The horizontal dimensions are determined by the three values - backspace (distance from the left/inner margin) - cutspace (distance from the right/outer margin) - width (width of the textblock) Normally you need only two values because when you set backspace + width th= e cutspace is calculated and when you set backspace + cutspace you can writ= e width=3Dmiddle and the width of the text block will be calculated. The vertical dimensions are calculated also three values - topspace (distance from the top margin) - bottomspace (distance from the bottom margin) - height (height of the textblock) You need here also only two value, topspace + height which all calculate th= e bottomspace or topspace + bottomspace in combination with height=3Dmiddle. I haven=92t mentioned the header and footer above because they are part of = the textblock and will take space from this area. When you use the information above for a layout you need \definelayout [middle] [page] [backspace=3D10mm, topspace=3D10mm, height=3D210mm, height=3D277mm] \setuplayout[middle] \showframe[text][text] \starttext \dorecurse{10}{\input knuth\par} \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________