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 Aditya
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] ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
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
participants (2)
-
Aditya Mahajan
-
Hans Hagen