* Align the chapter-title to the middle of the header
@ 2018-07-23 13:59 Huseyin Özoguz
2018-07-23 14:59 ` Aditya Mahajan
2018-07-23 15:01 ` Pablo Rodriguez
0 siblings, 2 replies; 3+ messages in thread
From: Huseyin Özoguz @ 2018-07-23 13:59 UTC (permalink / raw)
To: ntg-context
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?
Thanks.
Huseyin
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Align the chapter-title to the middle of the header
2018-07-23 13:59 Align the chapter-title to the middle of the header Huseyin Özoguz
@ 2018-07-23 14:59 ` Aditya Mahajan
2018-07-23 15:01 ` Pablo Rodriguez
1 sibling, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2018-07-23 14:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 369 bytes --]
On Mon, 23 Jul 2018, 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}][]
> [][]
\setupheadertexts[chapter]
Aditya
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Align the chapter-title to the middle of the header
2018-07-23 13:59 Align the chapter-title to the middle of the header Huseyin Özoguz
2018-07-23 14:59 ` Aditya Mahajan
@ 2018-07-23 15:01 ` Pablo Rodriguez
1 sibling, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2018-07-23 15:01 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-23 15:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-23 13:59 Align the chapter-title to the middle of the header Huseyin Özoguz
2018-07-23 14:59 ` Aditya Mahajan
2018-07-23 15:01 ` Pablo Rodriguez
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).