ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Park Nelson <peter.park.nelson@gmail.com>
To: Hans Hagen <pragma@wxs.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Header/footer fonts problem in 20 DEC 2011 beta
Date: Tue, 27 Dec 2011 23:55:29 -0600	[thread overview]
Message-ID: <CAGfkPGkcqacmXeWTy6dK9heX64ejZgNcPhtod2e80PV6F8jyZQ@mail.gmail.com> (raw)
In-Reply-To: <4EF2E893.2030408@wxs.nl>

Hans, I'm including a minimal example below. Behavior is the same
using the 23 dec 2011 beta: odd page headers are not sans, and odd
page footers are not bold.  Even though I set state=empty for headers
and footers, they appear on the first page.

Another odd thing -- if I use \setupheader[options...] instead of
\setupheader[text][options...], I get an extra horizontal rule
(\hairline?) on the left side of the page...

%%-------------snip-----------------------------------------------------%%

\setuppapersize[letter][letter]
\setupindenting[yes, medium]


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% COLUMNS AND SPANS:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\definecolumnset[body][n=2,balancing=yes]
\definecolumnsethsize{body}{1}{1}\One
\definecolumnsethsize{body}{1}{2}\Two


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% HEADERS AND FOOTERS:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setuppagenumbering
  [alternative=doublesided,
   location=]

\setupheader[text]
  [state=empty,
   style=\ss,
   after=\hairline]

%\setupheader % Try this to see the extra horizontal hairline
%  [state=empty,
%   style=\ss,
%   after=\hairline]


\setupheadertexts
  [{\it Effects of transit scheduling management mitigation}]
  [pagenumber]
  [pagenumber]
  [Doe et al.]

\setupfooter[text]
  [state=empty,style=bold]

\setupfootertexts
  [footer]
  [footer]
  [footer]
  [footer]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% TEXT STARTS HERE:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\starttext

\title{Title}

\startcolumnset[body]

\setupindenting[yes]


\dorecurse{30}{\input tufte\par}

\stopcolumnset

\stoptext

%%------------------------snip-----------------------------------------------------%%

On Thu, Dec 22, 2011 at 2:21 AM, Hans Hagen <pragma@wxs.nl> wrote:
> On 22-12-2011 02:26, Peter Park Nelson wrote:
>>
>> Hello, I just installed the 20 Dec beta and noticed the following
>> (compared to 29 Nov beta):
>>
>> 1. Headers and footers on ODD PAGES ONLY do not respect text styles
>> set via \setupheader[style=\ss] and \setupfooter[style=\cg]. Text in
>> both cases is in serif type. Headers and footers on EVEN pages have
>> correct fonts. However, setting the font variant and size directly in
>> \setupfootertexts[\cg\bf Footer Text] works for odd pages.
>
>
> This seems to work ok here:
>
> \setuppagenumbering[alternative=doublesided]
> \setupheadertexts[Bla Bla]
> \setupheader[style=bold]
>
> \starttext
>    \dorecurse{100}{test \page}
> \stoptext
>
>
> -----------------------------------------------------------------
>                                          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
> -----------------------------------------------------------------



-- 
Peter Park Nelson
peter.park.nelson@gmail.com
___________________________________________________________________________________
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	other threads:[~2011-12-28  5:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-22  1:26 Peter Park Nelson
2011-12-22  8:21 ` Hans Hagen
2011-12-28  5:55   ` Peter Park Nelson [this message]
2011-12-28 10:05     ` Hans Hagen
2011-12-28 15:37       ` Peter Park Nelson
2011-12-28 17:42         ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGfkPGkcqacmXeWTy6dK9heX64ejZgNcPhtod2e80PV6F8jyZQ@mail.gmail.com \
    --to=peter.park.nelson@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).