On Mon, Mar 22, 2010 at 12:58 PM, luigi scarso <luigi.sca...@gmail.com> wrote:
> On Mon, Mar 22, 2010 at 12:29 PM, Mojca Miklavec
> <mojca.miklavec.li...@gmail.com> wrote:
>> Hello,
>>
>> I would like to set a different header on left and right page, but I
>> would like it to be centered on page. How do I do that?
>>
>> The command
>>    \setupheadertexts[a][b]
>> puts "a     b" on one page and "b     a" on the other while
>>    \setupheadertexts[a][b][c][d]
>> puts "a     b" on one page and "c     d" on the other. On single-sided
>> layouts I could use
>>    \setupheadertexts[a]
>> or
>>    \setupheadertexts[][a][]
>> but using 6 parameters on double-sided doesn't work.
>>
>> I am now hacking with
>>    
>> \setupheadertexts[\hbox{\kern-5mm\myheaderright}][][][\hbox{\myheaderleft\kern-5mm}]
>>    \def\myheaderright{\hbox to "textwidth+10mm"{...}}
>> but that's a bit ugly.
>>
>> Mojca
> Why don't you use setups ?

Sorry, the first was wrong.
%%%%%

\showframe

\setuppagenumbering[alternative=doublesided,location=footer]

\startsetups Header:Left
\vbox to \headerheight{\vss
\ruledhbox{\centerline{\strut Header:Left \getmarking[chapter][first]}}
\vss}
\stopsetups


\startsetups Header:Right
\vbox to \headerheight{\vss
\ruledhbox{\centerline{\strut Header:Right \getmarking[chapter][last]}}
\vss}
\stopsetups


\setupheadertexts[\setups{Header:Left}][][][\setups{Header:Right}]

\starttext
\dorecurse{4}{%
\edef\T{\recurselevel}
\expandafter\chapter\expandafter{\recurselevel{}Chapter } \section{Section}}
\stoptext


 %%%%%%%

-- 
luigi
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to