[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Keeping Book Title and ToC together
Hi, You need to do a couple of things. 1. A book is set up to create separate FO page sequences for the title pages and for the table of contents. To get them on the same page, they need to be in the same page sequence. To do that, you will need to copy the template with match="book" in fo/division.xsl to your customization file and rearrange it. You will see that it starts two page-sequences. In one it calls the "book.titlepage" template, and in the other it calls the "division.toc" template. Those need to put inside one page sequence. 2. To disable the extra title page (verso page), you need to edit the titlepage specifications in a copy of fo/titlepage.templates.xml and regenerate the titlepage templates. You will want to put zero content into <t:titlepage-content t:side="verso"> and <t:titlepage-before t:side="verso">. You may also need to zero out the <t:titlepage-separator> item as well, in case your formatter inserts an extra page (the first chapter should start the new page since it is in a new page sequence). To learn how to change the titlepage specifications, see this reference (the section is talking about HTML titlepages, but the method applies for print titlepages too): http://www.sagehill.net/docbookxsl/HtmlCustomEx.html#HTMLTitlePage Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Donna Robinson" <donna@terpsichore.ws> To: <docbook-apps@lists.oasis-open.org> Sent: Friday, July 30, 2004 2:02 AM Subject: [docbook-apps] Keeping Book Title and ToC together > Hi, > > (sorry for the cross-post, just read msg re which list was the right one, so > have re-posted.) > > I'm building a set of books. > > I'm trying to modify the fo stylesheet such that: > ---------- page break ---------------- > Book Title > Published 30 July 2004 > > Table of Contents > ... ... > ---------- page break ---------------- > Chapter 1. > etc. > > > What I've got (so far) is this: > ---------- page break ---------------- > Book Title > Published 30 July 2004 > ---------- page break ---------------- > Book Title > Published 30 July 2004 > ---------- page break ---------------- > Table of Contents > ... ... > ---------- page break ---------------- > Chapter 1. > etc. > > Please, can someone point me in the right direction before I go nuts > trying to figure this out? It is *so* frustrating! > > Regards, > > Donna > > -- > Having abandoned my search for truth, > I am now looking for a good fantasy. > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]