ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Extra Whitespace in Footer.
Date: Fri, 10 Jul 2009 06:16:41 +0200	[thread overview]
Message-ID: <fe8d59da0907092116j7bcdaabjbc0e9456c4e4aec1@mail.gmail.com> (raw)
In-Reply-To: <18e9c2dc0907091553h3fc9d732yc486d484b5283ddb@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1643 bytes --]

On Fri, Jul 10, 2009 at 12:53 AM, Stirling Westrup <swestrup@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 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

[-- Attachment #1.2: Type: text/html, Size: 2359 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

      reply	other threads:[~2009-07-10  4:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-09 21:49 Stirling Westrup
2009-07-09 21:52 ` Hans Hagen
2009-07-09 22:53   ` Stirling Westrup
2009-07-10  4:16     ` luigi scarso [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fe8d59da0907092116j7bcdaabjbc0e9456c4e4aec1@mail.gmail.com \
    --to=luigi.scarso@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).