From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67925 Path: news.gmane.org!not-for-mail From: Oliver Buerschaper Newsgroups: gmane.comp.tex.context Subject: First and last lines on a grid Date: Fri, 22 Apr 2011 14:04:25 +0200 Message-ID: <76C8CE68-4E7C-4538-A170-BB8BD1902508@mpq.mpg.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1303473889 26009 80.91.229.12 (22 Apr 2011 12:04:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 22 Apr 2011 12:04:49 +0000 (UTC) To: mailing ConTeXt users list for Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 22 14:04:44 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 1QDF6K-0003I5-DW for gctc-ntg-context-518@m.gmane.org; Fri, 22 Apr 2011 14:04:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E15E3CAC13; Fri, 22 Apr 2011 14:04:42 +0200 (CEST) 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 o1oqbNlC42J5; Fri, 22 Apr 2011 14:04:40 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3956FCAC10; Fri, 22 Apr 2011 14:04:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 81267CAC10 for ; Fri, 22 Apr 2011 14:04:39 +0200 (CEST) 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 krvTZJD-VUhz for ; Fri, 22 Apr 2011 14:04:28 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 7AF5ECAC06 for ; Fri, 22 Apr 2011 14:04:28 +0200 (CEST) Original-Received: from post.rzg.mpg.de (post.rzg.mpg.de [130.183.30.42]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p3MC4R4n014080 for ; Fri, 22 Apr 2011 14:04:27 +0200 Original-Received: from [192.168.0.2] (g229014074.adsl.alicedsl.de [92.229.14.74]) (authenticated bits=0) by post.rzg.mpg.de (8.14.3/8.14.3) with ESMTP id p3MC4Qnh086892 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 22 Apr 2011 14:04:27 +0200 X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0033 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=130.183.30.42; country=DE; region=02; city=Garching; latitude=48.2500; longitude=11.6500; http://maps.google.com/maps?q=48.2500,11.6500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07EyA4rKC - f50ca4639c3b - 20110422 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 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:67925 Archived-At: Dear all, I'm having a little trouble with grids and page layout=85 I'm trying to align the first and last line of a page properly with the fra= me of the textblock. That is, I'd like to position the first baseline a cer= tain distance below the textblock's upper border (say, the height of a "C" = or even "=C9") and the last baseline a certain distance above the textblock= 's lower border (say, the actual depth of a "g"). How would I do that? I tried playing with "\setupinterlinespace", however, = its options "top" and "bottom" appear to set relative distances. Once I cha= nge the leading funny things happen=85 like an empty first line. Also I'd like to typeset the page number flush with the lower border of the= footer frame. How would I achieve that? Please find the source code of my attempt below. Oliver --- \definemeasure [gridwidth] [\dimexpr\paperwidth/9\relax] \definemeasure [gridheight] [\dimexpr\paperheight/9\relax] \setuplayout [grid=3Dyes, backspace=3D\measure{gridwidth}, width=3D\dimexpr6\measure{gridwidth}\relax, topspace=3D\measure{gridheight}, height=3D\dimexpr7\measure{gridheight}\relax, leftmargin=3D\zeropoint, rightmargin=3D\zeropoint, header=3D\zeropoint, footer=3D\measure{gridheight}] \setupinterlinespace [line=3D\dimexpr\textheight/20\relax] \setuppagenumbering [alternative=3Ddoublesided, location=3D{footer,right}] \starttext \showframe \showgrid =C9 \dorecurse{10}{\input zapf\par} \stoptext --- ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________