ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mikael Sundqvist <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: page number in margin
Date: Fri, 24 Jan 2025 17:34:13 +0100	[thread overview]
Message-ID: <CAHy-LL9=zcMJBmG25DQQOnagb8cfWyU_9T15wuP_tZgU3neyBQ@mail.gmail.com> (raw)
In-Reply-To: <9931291f-78f5-407d-96d1-a5cf24e5fc50@t-online.de>


[-- 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
___________________________________________________________________________________

  reply	other threads:[~2025-01-24 16:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-24 16:13 [NTG-context] " Thomas Meyer
2025-01-24 16:34 ` Mikael Sundqvist [this message]
2025-01-24 16:44 ` [NTG-context] " Wolfgang Schuster
2025-01-24 16:57   ` Thomas Meyer

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='CAHy-LL9=zcMJBmG25DQQOnagb8cfWyU_9T15wuP_tZgU3neyBQ@mail.gmail.com' \
    --to=mickep@gmail.com \
    --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).