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: empty page before chapter and part
Date: Sat, 11 Dec 2010 18:50:20 +0100	[thread overview]
Message-ID: <C42B619C-332E-4FF0-A707-C09AEC106F3C@gmail.com> (raw)
In-Reply-To: <AANLkTin8=SA2xB_Ey_nTRC7x8+sN6UBvj1-Fbw6+nuci@mail.gmail.com>


Am 11.12.2010 um 17:58 schrieb Emanuele Sacco:

> Hi all.
> With the following code  the second and eighth pages of the document
> are not empty as it would like.
> Thanks in advance
> 
> ----------------------------------------------------------------------------------------
> 
> \setuppapersize[A4][A4]
> 
> \setuplayout
> [location=doublesided,
> header=5mm,
> headerdistance=15mm,
> footerdistance=0mm,
> textwidth=14cm]
> \setuppagenumbering
> [alternative=doublesided,
> location=marginedge,
> way=bytext,
> partnumber=no]
> 
> 
> \setupheadertexts[][part][chapter][]

You can replace this block

> \setupbackgrounds[state=repeat]
> \setupbackgrounds[header][text][background=whatever]
> \defineoverlay[whatever][{\framed[width=\overlaywidth,height=\overlayheight,frame=off,bottomframe=on]{}}]
> \couplepage[chapter][before={\defineoverlay[whatever][]}]
> \setuphead[chapter][before={\pagetype[chapter]}]

with

\setupheader[text][after=\hrule] % \thinrule

Now you can suppress the line on an empty page before the chapter start with

\setuphead
  [chapter]
  [page={yes,header,right}]

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


  parent reply	other threads:[~2010-12-11 17:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-11 16:58 Emanuele Sacco
2010-12-11 17:01 ` Emanuele Sacco
2010-12-11 17:50 ` Wolfgang Schuster [this message]
2010-12-12  9:29   ` Emanuele Sacco

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=C42B619C-332E-4FF0-A707-C09AEC106F3C@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).