Re: [NTG-context] Re: pagenumbers in margin
Hello, 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.... Geert \stelpapierformaatin [A5,liggend][A4,liggend] \definieerkleur[middelgrijs][s=.5] \def\mijnpaginanummer#1% {\startkleur[wit] \ss\bf\tfb \inlijnd [kader=uit,achtergrond=kleur,achtergrondkleur=middelgrijs,breedte=2.5cm, h oogte=1.1cm]% {#1} \stopkleur} \stelnummeringin [variant=dubbelzijdig,plaats={onder,inmarge},% commando={\mijnpaginanummer}] \stellayoutin [breedte=19cm, hoogte=14.9cm, kopwit=0cm, rugwit=1cm, hoofd=2.5cm, linkermarge=1.2cm, rechtermarge=1.2cm, linkermargeafstand=0cm, rechtermargeafstand=0cm] \stelkleurenin [status=start] \stelkleurin [rgb] \stellayoutin [plaats=midden,markering=kleur] \steltolerantiein [soepel] \toonkader \stelblokkopjesin[plaats=geen] %We willen geen legende of nummer bij figuren of tabellen %geen uitlijnen van de rechtermarge: \steluitlijnenin[rechts] \starttekst \dorecurse{20}{% Op een grote paddestoel vol met witte stippen\par Zat kabouter Pinnemuts heen en weer te wippen\par Krak zei de paddestoel met een diepe zucht\par Allebei de beentjes vlogen in de lucht\par \pagina } \stoptekst
"GEERT@telefonica.net"
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. Patrick -- ConTeXt wiki: http://contextgarden.net
Patrick Gundlach wrote:
"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 -----------------------------------------------------------------
[...]
\stelnummeringin [variant=dubbelzijdig, plaats=]
\stelvoettekstenin
I am definitely doing too little ConTeXting at the moment. Patrick -- ConTeXt wiki: http://contextgarden.net
participants (3)
-
GEERT@telefonica.net
-
Hans Hagen
-
Patrick Gundlach