From: Willi Egger <w.egger@boede.nl>
Subject: Re: Some extra empty pages, why? And how to get an initial blank page with page number 0?
Date: Sun, 13 Mar 2005 18:45:55 +0100 [thread overview]
Message-ID: <42347C53.4030200@boede.nl> (raw)
In-Reply-To: <685ddcd53f731c75a330016baf3f8650@rna.nl>
[-- Attachment #1: Type: text/plain, Size: 3185 bytes --]
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
[-- Attachment #2: project_teoada.tex --]
[-- Type: text/plain, Size: 1877 bytes --]
% 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
[-- Attachment #3: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
prev parent reply other threads:[~2005-03-13 17:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-13 15:12 Gerben Wierda
2005-03-13 17:45 ` Willi Egger [this message]
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=42347C53.4030200@boede.nl \
--to=w.egger@boede.nl \
--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).