ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: fancyhdr equivalent
Date: Mon, 2 Jul 2007 16:12:03 +0200	[thread overview]
Message-ID: <115224fb0707020712p7781d9b6w20586edfb82675ca@mail.gmail.com> (raw)
In-Reply-To: <b11f605c0707020640m66354b5dnccf8289780e4bebf@mail.gmail.com>

2007/7/2, Peter I. Hansen <peterih@gmail.com>:
> On 7/2/07, Peter I. Hansen <peterih@gmail.com> wrote:
> > On 7/2/07, Wolfgang Schuster
> <schuster.wolfgang@googlemail.com> wrote:
> > > 2007/7/2, Peter I. Hansen <peterih@gmail.com >:
> > > > On 7/2/07, Wolfgang Schuster
> > > > <schuster.wolfgang@googlemail.com> wrote:
> > > >
> > > > > 2007/7/2, Peter I. Hansen < peterih@gmail.com>:
> > > > > > Thanks, this works for me. One thing though, I would like to turn
> the
> > > > > > framing off on pages where a chapter begins. I tried
> > > > > > \setuphead[chapter][header=empty], but this just
> gives
> > > > me
> > > > > > an empty frame.
> > > > > >  Is there a way to selectively turn of backgounds on for example
> chapter
> > > > > > pages?
> > > > >
> > > > > \setuphead
> > > > >   [chapter]
> > > > >
> > > >
> [%before={\blank[force,\dimexpr\headerheight+\headerdistance\relax]},
> > > > >    header=high]
> > > > >
> > > > > \setupbackgrounds[header][text][frame=on]
> > > > >
> > > > > \starttext
> > > > >
> > > > > \dorecurse{4}
> > > > >   {\chapter{Knuth}
> > > > >    \dorecurse{12}
> > > > >      {\input knuth\par}}
> > > > >
> > > > > \stoptext
> > > >
> > > > Beautifull. One problem arise, if you put a \placecontent after
> \starttext
> > > > the first chapter will stil have the frame on.
> > >
> > > do you mean
> > >
> > > \starttext
> > > \placecontent
> > > \chapter{Knuth}
> > > \stoptext
> > >
> > > I see only a frame on the first page with the table of contents and
> > > this normal because there is no chapter on this page.
> > >
> > > use \completecontent and not \placecontent
> > >
> > > if this is not what you mean send a example
> >
> > \completecontent seems to solve my problem so far... To see  what my
> > problem was  try out the following example:
> >
> > \setuplayout                [location=middle,
> >                                      header=\lineheight,
> >
> headerdistance=\lineheight]
> >
> > \setuppagenumbering [alternative=doublesided,location=]
> >
> > \setupheadertexts       [section][pagenumber]
> >                                     [pagenumber][chapter]
> >
> > \setuphead
> > [chapter]
> >
> [%before={\talkingk[force,\dimexpr\headerheight+\headerdistance\relax]},
> >   header=high]
> >
> > \setupbackgrounds
> [header][text][frame=off,bottomframe=on]
> >
> > \starttext
> >
> > \placecontent
> > %\completecontent
> >
> > \dorecurse{3}
> >         {\chapter{Test}
> >                 \dorecurse{250}{talking talking talking }
> >         }
> >
> > \stoptext
> >
>
> Actually, if I add something before the content, eg.
> \subject{Preface}\page[yes] then things go bad again... There is something
> about this I can't grasp.

Can you send the pdf file and explain what is wrong in the output

Wolfgang
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2007-07-02 14:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-01 21:16 Peter I. Hansen
2007-07-01 21:43 ` Aditya Mahajan
2007-07-01 22:58   ` Peter I. Hansen
2007-07-01 23:24     ` Aditya Mahajan
2007-07-02  9:43       ` Peter I. Hansen
2007-07-02 11:04         ` Wolfgang Schuster
2007-07-02 11:18           ` Aditya Mahajan
2007-07-02 12:10           ` Peter I. Hansen
2007-07-02 12:31             ` Wolfgang Schuster
2007-07-02 13:24               ` Peter I. Hansen
2007-07-02 13:40                 ` Wolfgang Schuster
2007-07-02 13:40                 ` Peter I. Hansen
2007-07-02 14:12                   ` Wolfgang Schuster [this message]
2007-07-02 11:18 ` Wolfgang Schuster

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=115224fb0707020712p7781d9b6w20586edfb82675ca@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.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).