[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Re: Removing extra blank pages in fo - including the TOC
Hi Igor, I'm not understanding this new problem. What exactly is the Part anchor, and what are the links pointing to it? In my FO output, I don't see anything at the end of the part TOC that would be the target of a link. The link in the book's TOC to the part lands on the first page in my tests. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Igor Rosenberg" <Igor.Rosenberg@sophia.inria.fr> To: "Docbook-Apps" <docbook-apps@lists.oasis-open.org> Sent: Thursday, March 02, 2006 10:01 AM Subject: [docbook-apps] Re: Removing extra blank pages in fo - including the TOC > Hello, > > Many thanks Bob for this answer. Indeed the TOC now goes onto the PART > page. But... Now the Part "anchor", to which point all the links, stands > at the end of the TOC. If I have a TOC spanning several pages, the link > brings me back to the end of the TOC, ie maybe two pages AFTER the real > first page of the PART. > > It's not a real bother to me, twas just to report a faulty behavior. > > Thanks again for the good and hard work! > > Igor > > Bob Stayton wrote: > > Hi Igor, > > This would make a good feature request. 8^) > > > > I've done this before with a customization: > > > > <xsl:template name="part.titlepage.before.verso" priority="1"> > > <xsl:variable name="toc.params"> > > <xsl:call-template name="find.path.params"> > > <xsl:with-param name="table" > > select="normalize-space($generate.toc)"/> > > </xsl:call-template> > > </xsl:variable> > > <xsl:if test="contains($toc.params, 'toc')"> > > <xsl:call-template name="division.toc"> > > <xsl:with-param name="toc.context" select="."/> > > </xsl:call-template> > > </xsl:if> > > </xsl:template> > > > > <!-- Turn off the traditional full part toc --> > > <xsl:template name="generate.part.toc"> > > </xsl:template> > > > > The 'part.titlepage.before.verso' template is one of those generated by the > > titlepage spec file, and you can see it in fo/titlepage.templates.xsl. > > Normally it is empty, so you can override it to do something else, like put > > the TOC before the verso titlepage (which means on the recto titlepage > > after the title). > > > > It calls division.toc to generate the part TOC. You must have a "part toc" > > or "part toc,title" string in your generate.toc parameter (it is there by > > default). > > > > The last template nulls out the template that generates a page sequence for > > the part TOC. That is what generates the extra pages, because it is in its > > own page sequence. > > > > > > Bob Stayton > > Sagehill Enterprises > > DocBook Consulting > > bobs@sagehill.net > > > > > > ----- Original Message ----- > > From: "Igor Rosenberg" <Igor.Rosenberg@sophia.inria.fr> > > To: "Docbook-Apps" <docbook-apps@lists.oasis-open.org> > > Sent: Thursday, February 16, 2006 11:03 AM > > Subject: [docbook-apps] Removing extra blank pages in fo - including the > > TOC > > > > > > > >>Dear list, > >> > >>I'm creating a pdf using the ant xslt task (and then converting fo to > >>pdf). Linux based, docbook-xsl-1.69.1. > >> > >>Every part is on its own page, followed by a blank page, followed by the > >>part TOC, followed by a blank page, then goes the first chapter. > >> > >> PART I : first part > >> blank // to remove > >> PART TOC // to move to "part" page > >> blank > >> Chapter 1 : first chapter (and text) > >> > >> > >>I feel like having the TOC on the same page as where the part starts, > >>instead of having the part page just bearing its name. I just can't > >>figure out when a "page break" is generated, in the customization > >>layers. I guess the modification goes in the > >> <xsl:template name="part.titlepage"> > >>but I haven't been able to locate the reference to the TOC. > >> > >>Any hints appreciated! > >> > >>Igor > >> > >> > >>--------------------------------------------------------------------- > >>To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > >>For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > >> > >> > >> > > > -- > Igor Rosenberg > Research engineer, OASIS project, INRIA > http://www-sop.inria.fr/oasis/personnel/Igor.Rosenberg/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]