ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Re: pagenumbers in margin
Date: Mon, 29 Nov 2004 18:04:17 +0100	[thread overview]
Message-ID: <41AB5691.2030006@wxs.nl> (raw)
In-Reply-To: <m2fz2syamw.fsf@levana.de>

Patrick Gundlach wrote:
> "GEERT@telefonica.net" <GEERT@telefonica.net> writes:
> 
> 
>>Sorry for being incomplete.  Below is an example that generates PDF.
>>You will see the grey boxes with pagenumbers sticking out from the
>>margins.  I want them not to stick out, but to move their outer border
>>flush with the outer border of the margin.  What doesn't fit in the
>>margin should go into the lower text area....
>>
> 
> 
> 
> Ok, I see.
> 
> so you have
> 
>  (margin)
>      |   | text
>      |   | text
>      |   | text
>      |   |
>  -----------
>  |    1    |
>  ___________
> 
> and you want
> 
>  |   | text
>  |   | text
>  |   | text
>  |   |
>  -----------
>  |    1    |
>  ___________
> 
> 
> I wonder if there is a \setuppagenumbering{location=inedge}, because
> then you could use \llap{\omlijnd...} and \rlap{\omlijnd} for odd and
> even pages respectively.

\def\mijnpaginanummer
   {\ss\bfb \inlijnd
      [kader=uit,achtergrond=kleur,achtergrondkleur=middelgrijs,
       breedte=2.5cm,hoogte=1.1cm]
      {\paginanummer}}

\stelnummeringin
   [variant=dubbelzijdig,
    plaats=]

\stelvoettekstenin
   [marge]
   []
   [\doifoddpageelse
      {\hfill\llap{\mijnpaginanummer}}
      {\rlap{\mijnpaginanummer}\hfill}]


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

  reply	other threads:[~2004-11-29 17:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-29 11:42 GEERT
2004-11-29 14:48 ` Patrick Gundlach
2004-11-29 17:04   ` Hans Hagen [this message]
2004-11-29 18:14     ` Patrick Gundlach
  -- strict thread matches above, loose matches on Subject: below --
2004-11-29  7:47 GEERT

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=41AB5691.2030006@wxs.nl \
    --to=pragma@wxs.nl \
    --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).