[NTG-context] Some extra empty pages, why? And how to get an initial blank page with page number 0?

2005-03-13 Thread Gerben Wierda
Fro my environment:
%\setuppapersize[B5][B4,landscape]
\setuppapersize[B5][B5]
\setupindenting[small]
\setuplayout[location=doublesided]
%\setuparranging[2SIDE]
\setuppagenumbering[alternative=doublesided]
%
\usemodule[lettri]
\def\ClearChapterQuote{\def\ChapterQuote{}}
\ClearChapterQuote
\newcommand{\ChQuoteFormat}[1]{\starttext%
%\raggedright%
\startalignment[left]%
\startnarrower[4*left] \noindent{\em #1}%
\stopnarrower\stopalignment\stoptext\blank}
\setuphead[chapter]
[page=left,
before={\ChQuoteFormat{\ChapterQuote}\noheaderandfooterlines%
\page[right]\blank[2*big]},
after={\ClearChapterQuote\blank[3*big]}%
\noheaderandfooterlines]
Without \setuppagenumbering[alternative=doublesided], I get single 
sided layout (even if I have the \setuplayout statement, very 
confusing). If I do add \setuppagenumbering[alternative=doublesided], I 
get the following:

1. Title page
2. Empty
3. Page with only a page numer 1 at the top
4. empty
5. Page with Contents 'chapter'
6. Page with quote
7. First page of chapter
Except for pages 3 and 4 that is how I want it. Why are these pages 
there? They are not there if 
\setuppagenumbering[alternative=doublesided] is left out.

My product file looks like this:
\startproduct prd_book
\project project_teoada
\starttext
\start
\startstandardmakeup \ss
\hairline \start
\switchtobodyfont[20pt]\bf
\leftaligned{TEOADA}%
\stop \hairline \blank[line]\rightaligned{Gerben Wierda}%
\blank[10cm]\start\leftskip=10cm\hairline\stop
\rightaligned{2005}%
\stopstandardmakeup
\stop
\startfrontmatter
\completecontent
\component c_guide
\stopfrontmatter
\component c_ch1
\component c_ch2
\component c_ch3
\startappendices
   \component c_app1
\stopappendices
\stoptext
\stopproduct
I have been trying a lot of permutations but so far without luck.
Secondly, when I turn on 2xB5 on one B4 landscape and 2SIDE 
arrangement, I would like to have an initial blank page (with page 
number 0) so I can have my 2SIDE look just like a book would look. I 
have tried to get one with the \page command in various places and with 
various setups, but so far without *any* effect.

I have been using the manual, the wiki and any documentation I have 
been able to find. So far no luck.

Thanks,
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Some extra empty pages, why? And how to get an initial blank page with page number 0?

2005-03-13 Thread Willi Egger
Hi Gerben,
I puzzeled with your project code.
First you  are not allowed to use \starttext \stoptext in a definition.
Your definitione interferes with the chapter mechnism. So more knowledge 
is necessary which I do not have at the moment.
in the before option you say \page=right, seems to create a problem.
If you want to start a page with blank lines you nee to insert a \strut

Please see the attached file
KR
Willi
Gerben Wierda wrote:
Fro my environment:
%\setuppapersize[B5][B4,landscape]
\setuppapersize[B5][B5]
\setupindenting[small]
\setuplayout[location=doublesided]
%\setuparranging[2SIDE]
\setuppagenumbering[alternative=doublesided]
%
\usemodule[lettri]
\def\ClearChapterQuote{\def\ChapterQuote{}}
\ClearChapterQuote
\newcommand{\ChQuoteFormat}[1]{\starttext%
%\raggedright%
\startalignment[left]%
\startnarrower[4*left] \noindent{\em #1}%
\stopnarrower\stopalignment\stoptext\blank}
\setuphead[chapter]
[page=left,
before={\ChQuoteFormat{\ChapterQuote}\noheaderandfooterlines%
\page[right]\blank[2*big]},
after={\ClearChapterQuote\blank[3*big]}%
\noheaderandfooterlines]

Without \setuppagenumbering[alternative=doublesided], I get single sided 
layout (even if I have the \setuplayout statement, very confusing). If I 
do add \setuppagenumbering[alternative=doublesided], I get the following:

1. Title page
2. Empty
3. Page with only a page numer 1 at the top
4. empty
5. Page with Contents 'chapter'
6. Page with quote
7. First page of chapter
Except for pages 3 and 4 that is how I want it. Why are these pages 
there? They are not there if 
\setuppagenumbering[alternative=doublesided] is left out.

My product file looks like this:
\startproduct prd_book
\project project_teoada
\starttext
\start
\startstandardmakeup \ss
\hairline \start
\switchtobodyfont[20pt]\bf
\leftaligned{TEOADA}%
\stop \hairline \blank[line]\rightaligned{Gerben Wierda}%
\blank[10cm]\start\leftskip=10cm\hairline\stop
\rightaligned{2005}%
\stopstandardmakeup
\stop
\startfrontmatter
\completecontent
\component c_guide
\stopfrontmatter
\component c_ch1
\component c_ch2
\component c_ch3
\startappendices
   \component c_app1
\stopappendices
\stoptext
\stopproduct

I have been trying a lot of permutations but so far without luck.
Secondly, when I turn on 2xB5 on one B4 landscape and 2SIDE arrangement, 
I would like to have an initial blank page (with page number 0) so I can 
have my 2SIDE look just like a book would look. I have tried to get one 
with the \page command in various places and with various setups, but so 
far without *any* effect.

I have been using the manual, the wiki and any documentation I have been 
able to find. So far no luck.

Thanks,
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
 % Project Gerben Wierda
% COntext file
% filename: project_teoada.tex

 %\setuppapersize[B5][B4,landscape]
 \setuppapersize[B5][B5]
 \setupindenting[small]
%  \setuplayout[location=doublesided]
 %\setuparranging[2SIDE]
 \setuppagenumbering[alternative=doublesided]
 %
\usemodule[lettri,bib]
\def\ChapterQuote{}
\def\ClearChapterQuote{\def\ChapterQuote{}}
\ClearChapterQuote
 \newcommand{\ChQuoteFormat}[1]{%\starttext%
 %\raggedright%
 \startalignment[left]%
 \startnarrower[4*left] \noindent{\em #1}%
 \stopnarrower\stopalignment
 %\stoptext
 \blank}
 \setuphead[chapter]
 [page=left,
 before={\ChQuoteFormat{\ChapterQuote}\noheaderandfooterlines%
\strut\blank[2*big]}, % \page[right]
 after={\ClearChapterQuote\blank[3*big]%
 \noheaderandfooterlines}]

\startproject project_teoada

\product prd_book

\nomorefiles
\stopproject

In a second file:

Project Gerben Wierda
COntext file
filename: prd_book.tex

\startproduct prd_book
\project project_teoada

\starttext
\start
\startstandardmakeup \ss
\hairline \start
\switchtobodyfont[20pt]\bf
\leftaligned{TEOADA}%
\stop \hairline \blank[line]\rightaligned{Gerben Wierda}%
\blank[10cm]\start\leftskip=10cm\hairline\stop
\rightaligned{2005}%
\stopstandardmakeup
\stop

\startfrontmatter
\completecontent[level=section]
\page
   \component c_guide
\stopfrontmatter
\startbodymatter
\ChapterQuote{Here comes a chapter quote}
\chapter{the first Chapter}

\section{All components listed}
\startitemize[n]
\item \type{\component c_ch1}
\item \type{\component c_ch2}
\item \type{\component c_ch3}
\stopitemize
\stopbodymatter
\startappendices
\chapter{Appendix-chapter}
\section{The appendix component}
\startitemize[n]
\item \type{\component c_app1}
\stopitemize
\stopappendices

\stoptext

\stopproduct