From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73154 Path: news.gmane.org!not-for-mail From: Paul Menzel Newsgroups: gmane.comp.tex.context Subject: Re: KOMA-srcartcl Type Area: How to count header and footer to text area? Date: Tue, 13 Dec 2011 15:01:43 +0100 Message-ID: <1323784903.7004.35.camel@mattotaupa> References: <1323776027.7004.17.camel@mattotaupa> <62A6E34E-B2F9-4EFD-A3D3-B9FEB3D89A5D@umich.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0192470963==" X-Trace: dough.gmane.org 1323784944 26750 80.91.229.12 (13 Dec 2011 14:02:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2011 14:02:24 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 13 15:02:19 2011 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 1RaSvy-0003je-0P for gctc-ntg-context-518@m.gmane.org; Tue, 13 Dec 2011 15:02:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5F700CB165; Tue, 13 Dec 2011 15:02:17 +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 Yig9HHO73hcl; Tue, 13 Dec 2011 15:02:07 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7CFC3CB145; Tue, 13 Dec 2011 15:02:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8C52BCB145 for ; Tue, 13 Dec 2011 15:02:05 +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 e65er98bY4TX for ; Tue, 13 Dec 2011 15:01:49 +0100 (CET) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 99E8DCABBD for ; Tue, 13 Dec 2011 15:01:49 +0100 (CET) Original-Received: from mail.gw90.de (mail.gw90.de [188.40.100.199]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBDE1jLE014685 for ; Tue, 13 Dec 2011 15:01:45 +0100 Original-Received: from f053032000.adsl.alicedsl.de ([78.53.32.0] helo=[192.168.178.21]) by mail.gw90.de with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1RaSvU-0007EP-8R for ntg-context@ntg.nl; Tue, 13 Dec 2011 14:01:48 +0000 In-Reply-To: <62A6E34E-B2F9-4EFD-A3D3-B9FEB3D89A5D@umich.edu> X-Mailer: Evolution 3.0.3-2 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=188.40.100.199; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0dG8C1Jr7 - 732c9d4781dc - 20111213 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:73154 Archived-At: --===============0192470963== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-0OjmCE5ufiEGfl4Hajic" --=-0OjmCE5ufiEGfl4Hajic Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Am Dienstag, den 13.12.2011, 08:24 -0500 schrieb Aditya Mahajan: > On Dec 13, 2011, at 6:33 AM, Paul Menzel wrote: > > having heard nice things about the KOMA script type area I wanted to us= e > > it too and tried out the example in the Wiki [1]. > >=20 > > % Set binding correction value (mode=3DBCOR turns it on). > > \doifmodeelse{BCOR}{\def\bindingcorr{3mm}}{\def\bindingcorr{0pt}= } > >=20 > > % Set visible page width. > > \newdimen\PageWidth > > \PageWidth=3D\dimexpr(\paperwidth-\bindingcorr) > >=20 > > % Determine the paper aspect ratio. > > \edef\Ratio{\withoutpt{\the\dimexpr(2\paperheight/(\PageWidth/32= 768))}} > >=20 > > % Set the textarea width to 2.6 alphabets. > > \setbox\scratchbox\hbox{\dorecurse{26}{\character\recurselevel}} > > \newdimen\Width \Width=3D\dimexpr(2.6\wd\scratchbox) > >=20 > > % Set the textarea height proportional to the width. > > \newdimen\Height \Height=3D\dimexpr(\Ratio\Width) > >=20 > > % Set the margin/gutter widths to be equal on a full spread. > > \newdimen\Back > > \doifmodeelse{oneside} > > {\Back=3D\dimexpr(((\PageWidth - \Width) / 2) + \bindingcorr= )} > > {\Back=3D\dimexpr(((\PageWidth - \Width) / 3) + \bindingcorr= )} > >=20 > > % Set the top and bottom margins in a 1:2 ratio, ignoring header= s. > > \edef\Top{\the\dimexpr((\paperheight - \Height) / 3 - 3\lineheig= ht)} > >=20 > > % Redefine \Height to include header and footer space. > > \Height=3D\dimexpr(\Height + 8\lineheight) > >=20 > > % Set up the page layout using the calculated parameters. > > \setuplayout[ > > backspace=3D\the\Back, > > height=3D\the\Height, > > width=3D\the\Width, > > header=3D2\lineheight, > > headerdistance=3D\lineheight, > > footer=3D2\lineheight, > > footerdistance=3D3\lineheight, > > topspace=3D\Top] > >=20 > > \starttext > > \framed[width=3D\textwidth,height=3D\textheight]{} > > \stoptext > >=20 > > I only want to add a page number to the footer [3] and I do not want to > > use any header [2, and ConTeXt manual]. Therefore I set > >=20 > > \setupheader[][state=3Dnone] > > \setuppagenumbering[alternative=3Ddoublesided, location=3D{foote= r}] > > \enablemode[BCOR] > >=20 > > According to the KOMA-Script manual [4] having just a page number in th= e > > footer it should be counted as belonging to the margin. The only way I > > found out to achieve that was setting `\footdistance=3D0`. > >=20 > > Is that the =E2=80=9Ccorrect=E2=80=9D way to comply with the KOMA-Scrip= t type area > > recommendation? > >=20 > > Please find the adapted example attached. > Have you seen http://modules.contextgarden.net/typearea Yes I did. But it does not seem to provide all options like `headinclude` or `footinclude`. At least \usemodule[typearea] \setupTypeArea[bcor=3D0mm, headinclude=3Dfalse, footinclude=3Dfalse= ] did not change anything. Thanks, Paul > > [1] http://wiki.contextgarden.net/KOMA-scrartcl_Type_Area > > [2] http://wiki.contextgarden.net/Layout > > [3] http://wiki.contextgarden.net/Reference/en/setuppagenumbering > > [4] ftp://ftp.dante.de/pub/tex/macros/latex/.../koma-script/scrguide.pd= f --=-0OjmCE5ufiEGfl4Hajic Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAk7nWscACgkQPX1aK2wOHVi7iQCfXm/zgC1VUGYljeJb/FoQ46Uy BT8Anj3rH8rLSthCSKgyveNf4paDwEHC =NDmW -----END PGP SIGNATURE----- --=-0OjmCE5ufiEGfl4Hajic-- --===============0192470963== 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0192470963==--