From: Pablo Rodriguez <oinos@gmx.es>
To: ntg-context@ntg.nl
Subject: Re: Align the chapter-title to the middle of the header
Date: Mon, 23 Jul 2018 17:01:02 +0200 [thread overview]
Message-ID: <748510b4-d4ec-3871-6ca5-ae035852b258@gmx.es> (raw)
In-Reply-To: <d0e20b0e-a2ee-855d-0f5d-89adf1fe051b@mmnetz.de>
On 07/23/2018 03:59 PM, Huseyin Özoguz wrote:
> Dear list,
>
> how can I align the text of the header in the double-page layout to the
> middle?
>
> I want something like that:
>
> \setupheadertexts
> [{\startalignment[middle] \definedfont[name:Gentium_Basic at
> 9pt]\getmarking[chapter] \stopalignment}][]
> [][]
>
> Of course, that does not work. By default, there are only the four
> places to set the text in the header: left and right in the header for
> both pages. How to place the chapter-title (or whatever) into the middle
> of the header?
Hi Huseyin,
this should work:
\setuppagenumbering[alternative=doublesided, location=]
\setupheadertexts[center]
%~ \setupheadertexts[\doifoddpageelse{odd}{even}]
\starttext
\dorecurse{10}{\Romannumerals{\recurselevel}\page}
\stoptext
Uncomment the commented line to get different headers for odd and even
pages.
I hope it helps,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2018-07-23 15:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-23 13:59 Huseyin Özoguz
2018-07-23 14:59 ` Aditya Mahajan
2018-07-23 15:01 ` Pablo Rodriguez [this message]
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=748510b4-d4ec-3871-6ca5-ae035852b258@gmx.es \
--to=oinos@gmx.es \
--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).