ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Organizing the frontmatter of a book....
@ 2001-02-07 22:00 Willi Egger
  2001-02-08  9:42 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Willi Egger @ 2001-02-07 22:00 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1058 bytes --]

Hi all

While I am still busy to finalize the texts concerning the book I was
playing around with the setup of the frontmatter.

The book is in Context organized in the form of a project. I want to typeset
the preface without headertext and pagenumbering. Herafter the contents is
typeset followed by the list figures. The next two small pieces are two very
small chapters outside the scope of the book and these will therefore be
typset with headertext as the rest of the book but with roman
pagenumbering. - Then the book starts.....

Most of the things work out well. But I have the problem, that on the third
page of the preface Context switches the headertext on and places a roman
page number, wich of course is not required. - Strange is, that the
information to start pagenumbering with roman pagenumbers is actually loaded
after the end of the preface. - I am puzzled.

Is there somebody out there who knows the mistake I make? For information I
add a composed file, which contains the main setup information I use. Thanks
for your assistance Willi

[-- Attachment #2: WHY.txt --]
[-- Type: text/plain, Size: 4763 bytes --]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%	Projectfile 'Aantekeningen handboekbinden'	%	
%			HBB-brevier					%
%	Lay-out: Willi Egger, Sambeek				%
%									%
%	Author:  Willi Egger, Sambeek				%
%									%
%	Date:		07 february 2001				%
%									%
%	Start the project with:					%
%		texexec --mode=paper				%
%		texexec --mode=screen				%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\startproject HBBbrev	%Handboekbind-brevier

\environment layout

\product voorpag		%Titlepage for the book
\product beginmat		%Frontmatter: Woord vooraf, Koppermaandag, Boekbinderslied

\startbodymatter

\environment lo-3

\chapter[test:titel]{Test \dots}
Hier zouden dan alle hoofdstukken volgen \dots

\stopproject

-----------------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%						%%
%%	Layout			     	%%
%%	         				%%
%%	by Willi Egger			%%
%%	filename: layout.tex		%%
%%	January 2001			%%
%%						%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\startenvironment layout

\setupoutput[pdftex]

\mainlanguage[nl]

\usemodule[units]

%\setupreferencing[global=yes]

\setuppagenumber[state=start]

\startmode[paper]
	\setuppapersize[A5][A5]
	\setuppagenumbering[alternative=doublesided, location={header,marginedge}]
	\setupbodyfont
		[ber,ppl,11pt]

	% Layout setup 
	\setuplayout
	  [header=20pt,
	   headerdistance=0.5cm,
	   backspace=1.7cm,
	   location=middle]
\stopmode

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Dealing with general matters  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Makeup setup
\setupmakeup
	[standard]
	[voffset=1.5cm,
	 headerstate=empty,
	 bottomframe=off,
	 frame=off]

% Headersetup
\setupheadertexts[HBB-Brevier][chapter]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Load other parts of the layout%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\environment lo-fig	%File with all external figures

\stopenvironment

-----------------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%						%%
%%	Environment lay-out 1 	     	%%
%%	CONTEXTfile				%%
%%	by Willi Egger			%%
%%	filename: lo-1.tex		%%
%%	October 2000			%%
%%						%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\startenvironment lo-1
\setupbackgrounds
  [header]
  [text]
  []
\setupheadertexts[][]
\setuppagenumbering[state=stop]

\stopenvironment

-----------------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%						%%
%%	Environment lay-out 2 	     	%%
%%	CONTEXTfile				%%
%%	by Willi Egger			%%
%%	filename: lo-2.tex		%%
%%	October 2000			%%
%%						%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\startenvironment lo-2
\setupbackgrounds
	[header]
	[text]
	[bottomframe=on,
	 frame=off]

\setupheadertexts[HBB-Brevier][chapter]
\setuppagenumbering[state=start,conversion=Romannumerals]

\stopenvironment

-----------------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%						%%
%%	Environment lay-out 2 	     	%%
%%	CONTEXTfile				%%
%%	by Willi Egger			%%
%%	filename: lo-2.tex		%%
%%	October 2000			%%
%%						%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\startenvironment lo-2
\setupbackgrounds
	[header]
	[text]
	[bottomframe=on,
	 frame=off]

\setupheadertexts[HBB-Brevier][chapter]
\setuppagenumbering[state=start,conversion=Romannumerals]

\stopenvironment

-----------------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%						%%
%%	Environment lay-out 3 	     	%%
%%	CONTEXTfile				%%
%%	by Willi Egger			%%
%%	filename: lo-3.tex		%%
%%	October 2000			%%
%%						%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\startenvironment lo-2
\setupbackgrounds
	[header]
	[text]
	[bottomframe=on,
	 frame=off]

\setupheadertexts[HBB-Brevier][chapter]
\setuppagenumbering[state=start,conversion=numbers]

\stopenvironment

-----------------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%						%%
%%	Begin materie		     	%%
%%	         				%%
%%	by Willi Egger			%%
%%	filename: beginmat.tex		%%
%%	October 2000			%%
%%						%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\startproduct beginmat
\project HBBbrev

\startfrontmatter

\environment lo-1

\component vorwort.tex	%contains \chapter[]{}' rest is text only

\environment lo-2

\completecontent[criterium=all, interaction=sectionnumber]

\page[yes]

\completelistoffigures[criterium=all]

\component kopper
\component boeklied

\stopfrontmatter

\stopproduct

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Organizing the frontmatter of a book....
  2001-02-07 22:00 Organizing the frontmatter of a book Willi Egger
@ 2001-02-08  9:42 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2001-02-08  9:42 UTC (permalink / raw)
  Cc: ntg-context

At 11:00 PM 2/7/01 +0100, Willi Egger wrote:
>Hi all
>
>While I am still busy to finalize the texts concerning the book I was
>playing around with the setup of the frontmatter.
>
>The book is in Context organized in the form of a project. I want to typeset
>the preface without headertext and pagenumbering. Herafter the contents is
>typeset followed by the list figures. The next two small pieces are two very
>small chapters outside the scope of the book and these will therefore be
>typset with headertext as the rest of the book but with roman
>pagenumbering. - Then the book starts.....
>
>Most of the things work out well. But I have the problem, that on the third
>page of the preface Context switches the headertext on and places a roman
>page number, wich of course is not required. - Strange is, that the
>information to start pagenumbering with roman pagenumbers is actually loaded
>after the end of the preface. - I am puzzled.
>
>Is there somebody out there who knows the mistake I make? For information I
>add a composed file, which contains the main setup information I use. Thanks
>for your assistance Willi

there is a special way to handle block specific environments [you can even
define more section block if needed]

\startsectionblockenvironment[frontpart]
  \setuppagenumbering[alternative=doublesided,state=stop]
\stopsectionblockenvironment

\starttext
  \startfrontmatter
    frontmatter
  \stopfrontmatter
  \startbodymatter
    bodytext
  \stopbodymatter
\stoptext

this mechanism is aware of grouping 

the problem [general] with going to pages in combination with changes in
environments, is that one needs to force the next page before the env change: 

\setupheadertext[one]

bla bla 

\setupheadertext[two] \page 

morebla 

is different from 

\page \setupheadertexts[two]

You can influence pages with the paremeters page (or before/after) in
setupsectionblock. 

Hans  
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-02-08  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-07 22:00 Organizing the frontmatter of a book Willi Egger
2001-02-08  9:42 ` Hans Hagen

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).