From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51714 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Extra Whitespace in Footer. Date: Fri, 10 Jul 2009 06:16:41 +0200 Message-ID: References: <18e9c2dc0907091449t1038acadkfcc04a7febd70fed@mail.gmail.com> <4A5666AA.1030300@wxs.nl> <18e9c2dc0907091553h3fc9d732yc486d484b5283ddb@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0588290679==" X-Trace: ger.gmane.org 1247199467 15484 80.91.229.12 (10 Jul 2009 04:17:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jul 2009 04:17:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 10 06:17:41 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1MP7YK-0005af-Qi for gctc-ntg-context-518@m.gmane.org; Fri, 10 Jul 2009 06:17:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C768A1FB6B; Fri, 10 Jul 2009 06:17:39 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12937-07; Fri, 10 Jul 2009 06:16:52 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 473701FB14; Fri, 10 Jul 2009 06:16:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 945A71FB14 for ; Fri, 10 Jul 2009 06:16:50 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25148-06 for ; Fri, 10 Jul 2009 06:16:42 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by ronja.ntg.nl (Postfix) with ESMTP id 8347F1FADF for ; Fri, 10 Jul 2009 06:16:42 +0200 (CEST) Original-Received: from mail-bw0-f207.google.com (mail-bw0-f207.google.com [209.85.218.207]) by filter2-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n6A4Gf2a019774 for ; Fri, 10 Jul 2009 06:16:41 +0200 Original-Received: by bwz3 with SMTP id 3so573207bwz.2 for ; Thu, 09 Jul 2009 21:16:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=hNg3w9RCTmEoNkAJhlJHtk1zSu3CXg/F1jrBpX2jDGY=; b=n4bZf7DADbMzoGOTlU2la+3zoOn+DEze0VJvw6I4cH/HLg2UQhitM/feldb1on02/s LBcCdhExm+h+jkAjM7RW6/SOXAtWTonG/pP22XPJbBVno6WhKZNRLdPgwxTaM67XOxp1 KPv1nKiRJXfDngmLNcb3/+xEmsu3Tah6CZVv8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=wLzHDUa4sIedaXPT3L/i5KWx0PV6z2AUtpPVinC6d1H8BkhEjJ+j/shSHuYe2ADpDi SGYKnlpECpbhgpoae77Nxu/kwjLg79je2vUVeB8tx1aFsuK9DmFjTGP+6uIVjxCo5lgL 5V8IWrPksKRBcexvFx2J3J2qOQnj03HL33mQY= Original-Received: by 10.204.120.16 with SMTP id b16mr1481901bkr.64.1247199401436; Thu, 09 Jul 2009 21:16:41 -0700 (PDT) In-Reply-To: <18e9c2dc0907091553h3fc9d732yc486d484b5283ddb@mail.gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.218.207; 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: 258564791 - a517395fbc9d - 20090710 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:51714 Archived-At: --===============0588290679== Content-Type: multipart/alternative; boundary=001636c5ab474966ea046e523db4 --001636c5ab474966ea046e523db4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Fri, Jul 10, 2009 at 12:53 AM, Stirling Westrup wrote: > On Thu, Jul 9, 2009 at 5:52 PM, Hans Hagen wrote: > > Stirling Westrup wrote: > >> > >> Thanks to the help I've been getting, I've almost got my layout > >> working. The only remaining problem seems to be that the footer > >> automatically inserts some whitespace above my framed text. The intent > >> is for it to be flush to the top of the footer. > >> > >> What do I need to change? > > > > footerdistance > > > > settting footerdistance to 0cm doesn't seem to change anything. there is a strut: try \showstruts By default \setupfooter[strut=yes] so put \setupfooter[strut=no] Also watch for spurios spaces in \FooBox Here is my version %%%%%%%%%%%%%%% \setupcolors[state=start] \setupbackground[background=color, backgroundcolor=black] \setuppapersize[letter][letter] \newbox\FootBox \setuplayout [ location=doublesided, marking=on, topspace=1cm, % space at top of page bottomspace=1cm, % space at bottom of page backspace=2cm, % spine side of page cutspace=1cm, % outer side of page header=0cm, footer=2cm, bottom=2cm, margin=0cm, width=middle, height=middle, ] \setbox\FootBox=\hbox{\framed [ align=right, frame=on, topframe=on, width=\textwidth, offset=none, framecolor=blue, ] {\bf \tfxx datasheet:}} \setupfooter[strut=no] \setuplayout[footer={\dimexpr\ht\FootBox+\dp\FootBox\relax}] \setupfootertexts[{\copy\FootBox}] \showstruts \showlayout \showframe \starttext \dorecurse{20}{\input tufte }test \stoptext -- luigi --001636c5ab474966ea046e523db4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Fri, Jul 10, 2009 at 12:53 AM, Stirli= ng Westrup <swes= trup@gmail.com> wrote:
On Thu, Jul 9, 2009 at 5:52 PM, Hans Hagen<pragma@wxs.nl> wrote:
> Stirling Westrup wrote:
>>
>> Thanks to the help I've been getting, I've almost got my l= ayout
>> working. The only remaining problem seems to be that the footer >> automatically inserts some whitespace above my framed text. The in= tent
>> is for it to be flush to the top of the footer.
>>
>> What do I need to change?
>
> footerdistance
>

settting footerdistance to 0cm doesn't seem to change anything.
there is a strut:
try
\showstruts

By default=
\setupfooter[strut=3Dyes]
so put
\setupfooter[strut=3Dno]
Also= watch for spurios spaces in \FooBox
Here is my version

%%%%%%%%%%%%%%%

\setupcolors[state=3Dstart= ]
\setupbackground[background=3Dcolor, backgroundcolor=3Dblack]
\setu= ppapersize[letter][letter]

\newbox\FootBox


\setuplayout =C2=A0[ location=3Ddoublesided,
=C2=A0=C2=A0 marking=3Don,
=C2=A0=C2= =A0 topspace=3D1cm,=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 % space at top of p= age
=C2=A0=C2=A0 bottomspace=3D1cm,=C2=A0=C2=A0=C2=A0 % space at bottom = of page
=C2=A0=C2=A0 backspace=3D2cm,=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 % sp= ine side of page
=C2=A0=C2=A0 cutspace=3D1cm,=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 % outer side of page
=C2=A0=C2=A0 header=3D0cm,
=C2=A0=C2=A0 footer=3D2cm,
=C2=A0=C2=A0 bo= ttom=3D2cm,
=C2=A0=C2=A0 margin=3D0cm,
=C2=A0=C2=A0 width=3Dmiddle,=C2=A0=C2=A0 height=3Dmiddle,
=C2=A0]

\setbox\FootBox=3D\hbox{\= framed
=C2=A0=C2=A0=C2=A0=C2=A0 [ align=3Dright,
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 frame=3Don,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 topf= rame=3Don,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 width=3D\textwidth,
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 offset=3Dnone,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 framecolor=3Dblue,
=C2=A0=C2=A0=C2=A0=C2=A0 ]
=C2=A0=C2=A0=C2=A0= =C2=A0 {\bf \tfxx datasheet:}}
\setupfooter[strut=3Dno]
\setuplayout[= footer=3D{\dimexpr\ht\FootBox+\dp\FootBox\relax}]
\setupfootertexts[{\co= py\FootBox}]


\showstruts
\showlayout
\showframe
\starttext
\dorecurs= e{20}{\input tufte }test
\stoptext



=C2=A0
-- <= br>luigi

--001636c5ab474966ea046e523db4-- --===============0588290679== 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0588290679==--