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