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
___________________________________________________________________________________

Reply via email to