On Tue, 20 Dec 2011, Hans Hagen wrote:
On 20-12-2011 01:14, Aditya Mahajan wrote:
Header and footer styles do not work with arranging and double sided
layout. Minimal example:
\setuppapersize[A5][A4,letter]
\setuparranging[2SIDE]
\setuppagenumbering[alternative=doublesided]
\setupheader[style=smallcaps, color=blue]
\setupheadertexts[]
\setupheadertexts[Hello][][][World]
\starttext
\input knuth
\stoptext
Unrelated to arranging. In fact, we have left/right/middle styles etc but the
new code has no fallbacks, so we need to add:
\setuplayoutelement
[\c!leftstyle=\layoutelementparameter\c!style,
\c!rightstyle=\layoutelementparameter\c!style,
\c!leftcolor=\layoutelementparameter\c!color,
\c!rightcolor=\layoutelementparameter\c!color,
\c!leftwidth=\layoutelementparameter\c!width,
\c!rightwidth=\layoutelementparameter\c!width]
Something is still amiss, perhaps unrelated to the above. style of the
left header text is ignored on even pages!
\setupheader[style=smallcaps]
\setupheadertexts[]
\setupheadertexts[Hello][]
\starttext
\dorecurse{6}{\input knuth \page}
\stoptext
Notice that the headers on even pages don't have the correct style.
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________