page number in margin
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
Hi,
On Fri, Jan 24, 2025 at 5:21 PM 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)?
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
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
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
participants (3)
-
Mikael Sundqvist
-
Thomas Meyer
-
Wolfgang Schuster