From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89564 Path: news.gmane.org!not-for-mail From: Mark Szepieniec Newsgroups: gmane.comp.tex.context Subject: Re: setting margins in makeup Date: Fri, 19 Dec 2014 16:38:09 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0303334122==" X-Trace: ger.gmane.org 1419003558 8187 80.91.229.3 (19 Dec 2014 15:39:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Dec 2014 15:39:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 19 16:39:12 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y1ze3-0000Hw-Rg for gctc-ntg-context-518@m.gmane.org; Fri, 19 Dec 2014 16:39:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 293D410224 for ; Fri, 19 Dec 2014 16:39:11 +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 tuscCcxnvNsS for ; Fri, 19 Dec 2014 16:39:05 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 449C910237 for ; Fri, 19 Dec 2014 16:38:31 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E41B1101EA for ; Fri, 19 Dec 2014 16:38:27 +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 Lq50s97h7mM8 for ; Fri, 19 Dec 2014 16:38:22 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 380EA101E8 for ; Fri, 19 Dec 2014 16:38:22 +0100 (CET) Original-Received: from mail-qg0-x22a.google.com (mail-qg0-x22a.google.com [IPv6:2607:f8b0:400d:c04::22a]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sBJFcA3w015699 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 19 Dec 2014 16:38:11 +0100 Original-Received: by mail-qg0-f42.google.com with SMTP id q108so802706qgd.29 for ; Fri, 19 Dec 2014 07:38:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kb0RMqpnVHq8slAqyiPbTzofEvKy/2ECWOWrDiiMZD0=; b=tu4L2N0bYwcYAXz8HA0J1ThDQKV6U83pQPq1Z+XKukOminHAo4NHoX/n3Yqn2uxkad NUY6+bC2CoKudKf3G32y0XCNV13Gbb4+S0hajjIt5UM1sl+EFk/yGivP0mpFK14OH1r5 cGO7kfJz2AtXqSxnuo9BqLO8KydLNGegD0GhtD9jU+rrHw7QUDBtVKtcuKz7WI/C+zo+ DXJuYQi7i35a+BrCv/B9VAqaZk7AtkKen5gdwTYm/8/E/42pr77OrSe7Othxmz/YkivW B/tZ9ERyl1Dre4KoC2GZ7VOhM/yFTvXHJqsaCP+VS5Cw+6sZchMeilAer4ZETOziNU/m z3MQ== X-Received: by 10.224.55.145 with SMTP id u17mr14882770qag.12.1419003489957; Fri, 19 Dec 2014 07:38:09 -0800 (PST) Original-Received: by 10.229.203.67 with HTTP; Fri, 19 Dec 2014 07:38:09 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400d:c04::22a; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01NtrCb2E - 25285c9e9a55 - 20141219 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of mszepien@gmail.com designates 2607:f8b0:400d:c04::22a as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2607:f8b0:400d:c04::22a; envelope-from=; helo=mail-qg0-x22a.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:89564 Archived-At: --===============0303334122== Content-Type: multipart/alternative; boundary=047d7bdc9004f44059050a937e84 --047d7bdc9004f44059050a937e84 Content-Type: text/plain; charset=UTF-8 Sorry for the noise, I've solved it, turns out makeup pages still have headers which you need to set to zero if you want uniform margins: % Title page layout % \definemakeup defines a layout with the same name, which we alter. \definemakeup[titlepage] \setuplayout [titlepage][width=middle, backspace=20mm, height=middle, topspace=20mm, header=0mm] did the trick for me. Incidentally, what threw me off was the phrasing in the manual: 4.19 Makeup A document may have a titlepage, a colofon and some pages that are not directly related to the main part of the document. Mostly these pages are not numbered and can do without headers and footers. Because their layout needs extra attention we prefer the word makeup for defining their specific layout. Since my makeup pages indeed don't have page numbers, I presumed they wouldn't have headers either. I may have read too much into that, but perhaps that passage can be improved? On Fri, Dec 19, 2014 at 3:33 PM, Mark Szepieniec wrote: > > I'm having trouble resetting my margins in makeup pages. I want the makeup > pages to have equal topspace, bottomspace, backspace and cutspace, > regardless of the standard layout of the rest of the document. > > Following Wolfgang's recommendation ( > http://www.ntg.nl/pipermail/ntg-context/2014/079409.html), I tried the > following: > > \setuppapersize [A4][A4] > > % Standard page layout > \setuplayout [width=middle, backspace=1.5in, cutspace=1.5in, > height=middle, topspace=0.75in, bottomspace=0.75in] > > % Title page layout > % \definemakeup defines a layout with the same name, which we alter. > \definemakeup[titlepage] > \setuplayout [titlepage][width=middle, backspace=20mm, height=middle, > topspace=20mm] > > \starttext > > \startmakeup[titlepage][top=,] > bla > \stopmakeup > > But, on my system, this puts the "bla" too far from the top of the page, > and it looks as though the topspace has not been set properly. (Backspace > seems ok), Am I doing something wrong or is there a better way to achieve > this? > > Also, the manual says I can use the command \showframe to display frames > to help in debugging, but that doesn't seem to do anything for me? > > Thanks in advance, > > Mark > --047d7bdc9004f44059050a937e84 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Sorry for the noise, I've solved it, turns out makeup = pages still have headers which you need to set to zero if you want uniform = margins:

% Title page layout
% \definemak= eup defines a layout with the same name, which we alter.
\definem= akeup[titlepage]
\setuplayout =C2=A0[titlepage][width=3Dmiddle, b= ackspace=3D20mm,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 height=3Dmiddle, topspace=3D20mm= ,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 header=3D0mm]

di= d the trick for me.

Incidentally, what threw me of= f was the phrasing in the manual:

4.19
<= div>Makeup
A document may have a titlepage, a colofon and some pa= ges that are not directly related to the
main part of the documen= t. Mostly these pages are not numbered and can do without headers
and footers. Because their layout needs extra attention we prefer the word= makeup for defining
their specific layout.

<= /div>
Since my makeup pages indeed don't have page numbers, I presu= med they wouldn't have headers either. I may have read too much into th= at, but perhaps that passage can be improved?

On Fri, Dec 19, 2014 at 3:33 PM, Ma= rk Szepieniec <mszepien@gmail.com> wrote:
I'm having trouble resetting my margins = in makeup pages. I want the makeup pages to have equal topspace, bottomspac= e, backspace and cutspace, regardless of the standard layout of the rest of= the document.

Following Wolfgang's recommendation (= http://www.ntg.nl/pipermail/ntg-context/2014/079409.html), = I tried the following:

\setuppapersize [A4][A= 4]

% Standard page layout
\setuplayout = =C2=A0 =C2=A0[width=3Dmiddle, =C2=A0backspace=3D1.5in, cutspace=3D1.5in,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0heigh= t=3Dmiddle, topspace=3D0.75in, bottomspace=3D0.75in]

% Title page layout
% \definemakeup defines a layout with the = same name, which we alter.
\definemakeup[titlepage]
\se= tuplayout =C2=A0[titlepage][width=3Dmiddle, backspace=3D20mm, height=3Dmidd= le, topspace=3D20mm]

\starttext

\startmakeup[titlepage][top=3D,]
bla
\stopmakeup=

But, on my system, this puts the "bla&= quot; too far from the top of the page, and it looks as though the topspace= has not been set properly. (Backspace seems ok), Am I doing something wron= g or is there a better way to achieve this?

Also, = the manual says I can use the command \showframe to display frames to help = in debugging, but that doesn't seem to do anything for me?
Thanks in advance,

Mark
--047d7bdc9004f44059050a937e84-- --===============0303334122== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0303334122==--