* [NTG-context] page number in margin
@ 2025-01-24 16:13 Thomas Meyer
2025-01-24 16:34 ` [NTG-context] " Mikael Sundqvist
2025-01-24 16:44 ` Wolfgang Schuster
0 siblings, 2 replies; 4+ messages in thread
From: Thomas Meyer @ 2025-01-24 16:13 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 204 bytes --]
Hi folks,
how is it possible to centre the page number vertically and horizontally
in the outer text margin (even page on the left and odd page on the right)?
Any help is welcome.
Greetings Thomas
[-- Attachment #1.2: Type: text/html, Size: 514 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* [NTG-context] Re: page number in margin
2025-01-24 16:13 [NTG-context] page number in margin Thomas Meyer
@ 2025-01-24 16:34 ` Mikael Sundqvist
2025-01-24 16:44 ` Wolfgang Schuster
1 sibling, 0 replies; 4+ messages in thread
From: Mikael Sundqvist @ 2025-01-24 16:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 820 bytes --]
Hi,
On Fri, Jan 24, 2025 at 5:21 PM Thomas Meyer <thomasgmeyer@t-online.de>
wrote:
> Hi folks,
>
> how is it possible to centre the page number vertically and horizontally
> in the outer text margin (even page on the left and odd page on the right)?
>
> Any help is welcome.
>
> Greetings Thomas
>
Maybe something like this:
\showframe
\setuplayout
[backspace=3cm,
leftmargin=1cm,
rightmargin=2cm,
width=fit]
\setuppagenumbering
[alternative=doublesided]
\setupheadertexts[]
\setuptexttexts
[margin]
[]
[\unframed[align=middle,width=\outermarginwidth]{\pagenumber}]
[\unframed[align=middle,width=\outermarginwidth]{\pagenumber}]
[]
\starttext
\dorecurse{50}{\samplefile{tufte}\par}
\stoptext
I hope I understood what you meant.
/Mikael
[-- Attachment #1.2: Type: text/html, Size: 1441 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* [NTG-context] Re: page number in margin
2025-01-24 16:13 [NTG-context] page number in margin Thomas Meyer
2025-01-24 16:34 ` [NTG-context] " Mikael Sundqvist
@ 2025-01-24 16:44 ` Wolfgang Schuster
2025-01-24 16:57 ` Thomas Meyer
1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2025-01-24 16:44 UTC (permalink / raw)
To: ntg-context
Am 24.01.2025 um 17:13 schrieb Thomas Meyer:
> Hi folks,
>
> how is it possible to centre the page number vertically and horizontally
> in the outer text margin (even page on the left and odd page on the right)?
\setuppagenumbering [alternative=doublesided]
\setuptexttexts [margin]
[]
[\framed[frame=off,width=max,height=max,align={middle,lohi}]{\prefixedpagenumber}]
[\framed[frame=off,width=max,height=max,align={middle,lohi}]{\prefixedpagenumber}]
[]
\starttext
\dorecurse{100}{\samplefile{lorem}}
\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* [NTG-context] Re: page number in margin
2025-01-24 16:44 ` Wolfgang Schuster
@ 2025-01-24 16:57 ` Thomas Meyer
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Meyer @ 2025-01-24 16:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 528 bytes --]
I had already discovered setuptexttexts myself. But how to do it
‘nicely’ was still missing.
Thanks to Mikael and Wolfgang
Am 24.01.25 um 17:44 schrieb Wolfgang Schuster:
> \setuppagenumbering [alternative=doublesided]
>
> \setuptexttexts [margin]
> []
> [\framed[frame=off,width=max,height=max,align={middle,lohi}]{\prefixedpagenumber}]
>
> [\framed[frame=off,width=max,height=max,align={middle,lohi}]{\prefixedpagenumber}]
> []
>
> \starttext
> \dorecurse{100}{\samplefile{lorem}}
> \stoptext
[-- Attachment #1.2: Type: text/html, Size: 1077 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-01-24 17:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-24 16:13 [NTG-context] page number in margin Thomas Meyer
2025-01-24 16:34 ` [NTG-context] " Mikael Sundqvist
2025-01-24 16:44 ` Wolfgang Schuster
2025-01-24 16:57 ` Thomas Meyer
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).