From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
jbf <roma83537@gmail.com>
Subject: Re: page number with brief centered line above
Date: Thu, 14 May 2020 17:28:04 +0200 [thread overview]
Message-ID: <62c7c729-9c21-b7cc-0aff-aa48da6dc0bc@gmail.com> (raw)
In-Reply-To: <3f14b509-6f54-95b9-547e-a9c6ec37ec09@gmail.com>
jbf schrieb am 14.05.2020 um 07:30:
> Hi list,
>
> I am trying to achieve a layout where there is a brief line above the
> bottom-centered page number (of a double-sided document). I am able to
> achieve the centered bottom-located page number easily and obviously
> enough with:
>
> \setuppagenumbering
> [alternative=doublesided,location={footer,middle}]
> \setupfooter
> [style=bold]
>
> And I was able to achieve a result with a short line above where the
> page number should be - but by adopting the solution below I have now
> lost the page number.
>
> \setuppagenumbering
> [alternative=doublesided,location={footer,middle}]
> \setupfootertexts[{\framed[frame=off,topframe=on,width=.5\textwidth]}]
You forgot the braces for the argument of \framed.
> So then I thought that having left out any reference to page numbers I
> had better put it in, so I added [pagenumber] to the above, but I
> ended up with two page numbers, one centered, the other to the inner
> or outer margins (depending on recto/verso), and the line was likewise
> to the right or left of the centred number. So clearly not what I want.
>
> Maybe the solution lies with some combination of the above I haven't
> thought of, or maybe there is another solution altogether. Any thoughts?
1. Add a rule at the top of the footer.
\setuppagenumbering
[location=footer]
\setupfooter
[text]
[before=\hrule]
\starttext
\page[dummy]
\stoptext
2. Put the page number in a frame (preferred method).
\setuppagenumbering
[location=]
\setupfootertexts
[{\framed[width=max,frame=off,topframe=on]{\pagenumber}}]
\starttext
\page[dummy]
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2020-05-14 15:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-14 5:30 jbf
2020-05-14 15:28 ` Wolfgang Schuster [this message]
2020-05-14 22:39 ` jbf
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=62c7c729-9c21-b7cc-0aff-aa48da6dc0bc@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=roma83537@gmail.com \
/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).