ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Header and footer style and arranging
@ 2011-12-20  0:14 Aditya Mahajan
  2011-12-20  8:46 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2011-12-20  0:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Header and footer style and arranging
  2011-12-20  0:14 Header and footer style and arranging Aditya Mahajan
@ 2011-12-20  8:46 ` Hans Hagen
  2011-12-31 21:35   ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2011-12-20  8:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Header and footer style and arranging
  2011-12-20  8:46 ` Hans Hagen
@ 2011-12-31 21:35   ` Aditya Mahajan
  0 siblings, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2011-12-31 21:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-31 21:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-20  0:14 Header and footer style and arranging Aditya Mahajan
2011-12-20  8:46 ` Hans Hagen
2011-12-31 21:35   ` Aditya Mahajan

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).