ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Extra Whitespace in Footer.
@ 2009-07-09 21:49 Stirling Westrup
  2009-07-09 21:52 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Stirling Westrup @ 2009-07-09 21:49 UTC (permalink / raw)
  To: ntg-context

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?


\setupcolors[state=start]
\setupbackground[background=color, backgroundcolor=black]
\setuppapersize[letter]

\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,
  ]

\newbox\FootBox
\setbox\FootBox=\hbox
  { \framed
      [ align=right,
        frame=off,
        topframe=on,
        width=\textwidth,
        offset=none,
        framecolor=blue,
      ]
      {\bf \tfxx datasheet:}
  }

\setuplayout[footer=\dimexpr\ht\FootBox+\dp\FootBox]
\setupfootertexts[{\copy\FootBox}]

\starttext
\showframe[text]
test
\stoptext


-- 
Stirling Westrup
Programmer, Entrepreneur.
https://www.linkedin.com/e/fpf/77228
http://www.linkedin.com/in/swestrup
http://technaut.livejournal.com
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-10  4:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-09 21:49 Extra Whitespace in Footer Stirling Westrup
2009-07-09 21:52 ` Hans Hagen
2009-07-09 22:53   ` Stirling Westrup
2009-07-10  4:16     ` luigi scarso

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).