* empty page before chapter and part
@ 2010-12-11 16:58 Emanuele Sacco
2010-12-11 17:01 ` Emanuele Sacco
2010-12-11 17:50 ` Wolfgang Schuster
0 siblings, 2 replies; 4+ messages in thread
From: Emanuele Sacco @ 2010-12-11 16:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
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][]
\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]}]
\setuphead[part]
[placehead=yes,
before={\pagetype[chapter]\startstandardmakeup[align={middle,lohi}]\switchtobodyfont[20pt]},
after=\stopstandardmakeup,
align=middle,
prefix=no,
resetnumber=no]
\setuphead[chapter]
[header=empty]
\starttext
\completecontent
\part{Parte}
\chapter{Capitolo}
\section{Sezione}
\input knuth
\subsection{Sottosezione}
\input knuth
\input tufte
\section{Altra sezione}
\input knuth
\input tufte
\input knuth
\input tufte
\input knuth
\input tufte
\chapter{Altro Capitolo}
\input knuth
\input tufte
\input knuth
\input tufte
\input knuth
\input tufte
\input tufte
\input knuth
\input tufte
\input knuth
\input tufte
\stoptext
----------------------------------------------------------------------------------------
Emanulele
___________________________________________________________________________________
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] 4+ messages in thread
* Re: empty page before chapter and part
2010-12-11 16:58 empty page before chapter and part Emanuele Sacco
@ 2010-12-11 17:01 ` Emanuele Sacco
2010-12-11 17:50 ` Wolfgang Schuster
1 sibling, 0 replies; 4+ messages in thread
From: Emanuele Sacco @ 2010-12-11 17:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
I'm using MKII.
2010/12/11 Emanuele Sacco <emanuelesacco@gmail.com>:
> 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][]
>
> \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]}]
>
> \setuphead[part]
> [placehead=yes,
> before={\pagetype[chapter]\startstandardmakeup[align={middle,lohi}]\switchtobodyfont[20pt]},
> after=\stopstandardmakeup,
> align=middle,
> prefix=no,
> resetnumber=no]
> \setuphead[chapter]
> [header=empty]
>
> \starttext
>
> \completecontent
>
>
> \part{Parte}
> \chapter{Capitolo}
> \section{Sezione}
> \input knuth
> \subsection{Sottosezione}
> \input knuth
> \input tufte
> \section{Altra sezione}
> \input knuth
> \input tufte
> \input knuth
> \input tufte
> \input knuth
> \input tufte
> \chapter{Altro Capitolo}
> \input knuth
> \input tufte
> \input knuth
> \input tufte
> \input knuth
> \input tufte
> \input tufte
> \input knuth
> \input tufte
> \input knuth
> \input tufte
>
> \stoptext
>
> ----------------------------------------------------------------------------------------
>
> Emanulele
>
--
Al mondo ci sono 10 tipi di persone: quelli che conoscono il sistema
binario e quelli che non lo conoscono.
___________________________________________________________________________________
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] 4+ messages in thread
* Re: empty page before chapter and part
2010-12-11 16:58 empty page before chapter and part Emanuele Sacco
2010-12-11 17:01 ` Emanuele Sacco
@ 2010-12-11 17:50 ` Wolfgang Schuster
2010-12-12 9:29 ` Emanuele Sacco
1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2010-12-11 17:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: empty page before chapter and part
2010-12-11 17:50 ` Wolfgang Schuster
@ 2010-12-12 9:29 ` Emanuele Sacco
0 siblings, 0 replies; 4+ messages in thread
From: Emanuele Sacco @ 2010-12-12 9:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thanks, works perfectly.
ES
2010/12/11 Wolfgang Schuster <schuster.wolfgang@googlemail.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
> ___________________________________________________________________________________
>
--
Al mondo ci sono 10 tipi di persone: quelli che conoscono il sistema
binario e quelli che non lo conoscono.
___________________________________________________________________________________
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] 4+ messages in thread
end of thread, other threads:[~2010-12-12 9:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-11 16:58 empty page before chapter and part Emanuele Sacco
2010-12-11 17:01 ` Emanuele Sacco
2010-12-11 17:50 ` Wolfgang Schuster
2010-12-12 9:29 ` Emanuele Sacco
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).