ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Adam Lindsay" <atl@comp.lancs.ac.uk>
Subject: Re: Unconventional page number placement
Date: Fri, 18 Feb 2005 20:14:31 +0000	[thread overview]
Message-ID: <20050218201431.31172@mail.comp.lancs.ac.uk> (raw)
In-Reply-To: <42163696.8050408@havenrock.com>

Hi Matt.

I don't have a total solution, but I think you were much closer than you
thought.

Matt Gushee said this at Fri, 18 Feb 2005 11:40:22 -0700:

>   * Use negative dimensions to cause the header and footer to overlap
>     the text area, e.g.:
>
>      \setuplayout [...,headerdistance=-0.35in,footerdistance=-0.5in]
>
>As I said, this comes very close to the desired effect, but it seems 
>impossible to correctly align the header text and page numbers with the 
>main text. 

How about this:

\setuppapersize[A4,landscape][A4,landscape]
\setuplayout[width=16cm,rightedge=\marginwidth]
\setuplayout[headerdistance=-2\lineheight,
                 header=2\lineheight,
                 footerdistance=-2\lineheight,
                 footer=2\lineheight,
                 height=middle]
\setupheadertexts[margin][section][]
\setupfootertexts[margin][pagenumber][]
\setuphead[section][page=yes]
\starttext
\showframe
\section{one}
\section{two}

You had it pretty much right, you just need to make sure that the text
blocks reach the bottom, a la the grid or \setupalign[line] stuff on the
list these past weeks.

Actually, at first, I thought this was a job for texttexts (weird, yeah,
but in the manual...), but I have not idea how to move those up and down,
where you want them.

And that rightedge block isn't really relevant here, but it looks nice on
the page. :)
\section{three}
\setuptext[margin][style=bold]
\setuptexttexts[margin][section][pagenumber]
\section{four}
\stoptext

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  reply	other threads:[~2005-02-18 20:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-18 18:40 Matt Gushee
2005-02-18 20:14 ` Adam Lindsay [this message]
2005-02-21 12:13   ` Hans Hagen

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=20050218201431.31172@mail.comp.lancs.ac.uk \
    --to=atl@comp.lancs.ac.uk \
    --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).