From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67935 Path: news.gmane.org!not-for-mail From: Oliver Buerschaper Newsgroups: gmane.comp.tex.context Subject: Re: First and last lines on a grid Date: Sat, 23 Apr 2011 09:25:39 +0200 Message-ID: References: <76C8CE68-4E7C-4538-A170-BB8BD1902508@mpq.mpg.de> <0E7A34ED-F5F6-405A-BF8C-C81F23BCF3A2@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="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1303543564 32083 80.91.229.12 (23 Apr 2011 07:26:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Apr 2011 07:26:04 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 23 09:26:00 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 1QDXE6-0005oh-Hp for gctc-ntg-context-518@m.gmane.org; Sat, 23 Apr 2011 09:25:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C14F1CAC1A; Sat, 23 Apr 2011 09:25:57 +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 UH9ZPR1+a+ED; Sat, 23 Apr 2011 09:25:55 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 02FF1CAC17; Sat, 23 Apr 2011 09:25:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C701FCAC17 for ; Sat, 23 Apr 2011 09:25:53 +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 0gIKUJnUsj3E for ; Sat, 23 Apr 2011 09:25:42 +0200 (CEST) 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 E1445CA970 for ; Sat, 23 Apr 2011 09:25:42 +0200 (CEST) Original-Received: from post.rzg.mpg.de (post.rzg.mpg.de [130.183.30.42]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p3N7PfPv021266 for ; Sat, 23 Apr 2011 09:25:42 +0200 Original-Received: from [192.168.0.2] (g230234009.adsl.alicedsl.de [92.230.234.9]) (authenticated bits=0) by post.rzg.mpg.de (8.14.3/8.14.3) with ESMTP id p3N7Pesa1282076 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Sat, 23 Apr 2011 09:25:41 +0200 In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.9989 (Score 4.7, 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: 03EyTpG7t - bd59f6cf6bd0 - 20110423 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:67935 Archived-At: >> This should do the trick: >> = >> \define[1]\PagenumberCommand >> {\smash[d]{#1}} >> = >> \setuppagenumbering >> [ strut=3Dno, >> command=3D\PagenumberCommand] > = > And how well it does it! Now I managed to align the last line of the grid with the textblock's frame: --- \definemeasure [gridWidth] [\dimexpr\paperwidth/9\relax] \definemeasure [gridHeight] [\dimexpr\paperheight/9\relax] \definemeasure [leading] [\dimexpr(6\measure{gridHeight}+\strutdepth)/20\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\measure{leading}] \define[1]\PageNumberCommand{\smash[d]{#1}} \setuppagenumbering [alternative=3Ddoublesided, location=3D{footer,right}, strut=3Dno, command=3D\PageNumberCommand] \starttext \showframe \showgrid =C9 \dorecurse{10}{\input zapf\par} \stoptext --- This only leaves the task of aligning the first line, too. How would I achi= eve this? Oliver ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________