* Problems with pagenumbering using frontpart/bodyart/...
@ 2004-01-08 14:48 Holger Schöner
0 siblings, 0 replies; only message in thread
From: Holger Schöner @ 2004-01-08 14:48 UTC (permalink / raw)
Hi,
I think that I either found a bug, or am using some commands in an invalid
way. What do you think about the following code:
\setuplayout[location=duplex]
\setuppagenumbering[alternative=doublesided]
\setuppagenumbering[way=bytext,partnumber=no]
\startsectionblockenvironment[frontpart]
\setuppagenumbering[conversion=romannumerals,left={--~},right={~--}]
\stopsectionblockenvironment
\startsectionblockenvironment[bodypart]
% \setuppagenumber[number=1] % *1
\setuppagenumber[number=0] % *2
\stopsectionblockenvironment
\setupsectionblock[frontpart][page=no] % *2
\setupsectionblock[bodypart][page=no] % *2
\setupsectionblock[appendixpart][page=no] % *2
\setuphead[part][placehead=yes,alternative=middle,number=no,ownnumber=no,resetnumber=no]
\definepagebreak
[chapter]
[yes,header,footer,right]
\setuphead
[part,chapter,title]
[page=chapter]
\starttext
\startfrontmatter
\title{abstract}
\completecontent
\page[yes,header,footer,left] % *2
\stopfrontmatter
\startbodymatter
\chapter{Introduction}
\chapter{Algorithms}
\chapter{Discussion}
\stopbodymatter
\startappendices
\chapter{Appendices}
\stopappendices
\stoptext
I want to exclude only unmarked lines and those have a "*1" in their
comment, but not the lines marked with "*2" at the end. Unfortunately then
the empty page between the contents and the chapter introduction is not (as
intended) completely emtpy, but has a page number: "-iv-". To avoid this I
am using (following a tip posted here some months ago, I think) the lines
\setupsectionblock[frontpart][page=no]
\setupsectionblock[bodypart][page=no]
\setupsectionblock[appendixpart][page=no]
Unfortunately, now (and this, I think, is the bug) the last chapter or title
before the end of the frontmatter (in this case the table of contents) does
no longer receive roman page numbers, but already the normal ones (and page
numbering also starts at this chapter, not with the "Introduction"). To
compensate for this I am currently using a workaround (all the lines marked
with "*2" instead the one marked with "*1"), basically avoiding the
described effect by forcing a page break (found using trial and error such
that it works regardless of the length of the table of contents). Can I
somehow get rid of these workarounds, without the otherwise empty pages
being numbered?
Unfortunately, pages 6, 8, 9 still are numbered, although otherwise empty
(and the last two are unnecessary anyway), but I guess the problem is the
same as for the pages between frontmatter and bodypart. (Probably fiddling
with the backmatter and using some forced page breaks could solve those as
well.)
I am using:
ConTeXt ver: 2003.10.5 fmt: 2003.10.19 int: english mes: english
--
Holger F. Schoener TU Berlin; Dept. IV: EE and Computer Science
hfsch@cs.tu-berlin.de http://www.cs.tu-berlin.de/~hfsch/
Rooms FR2525 Tel: +49-30-314-73115, Fax: -73121
Office FR 2-1 Franklinstr. 28/29, D-10587 Berlin, Germany
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-01-08 14:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-08 14:48 Problems with pagenumbering using frontpart/bodyart/ Holger Schöner
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).