[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Title Page Customization
Regarding the font size problem, to apply the generated template from the spec file, use mode="article.titlepage.recto.auto.mode" The mode without "auto" is when you write your own template for that element and there is no template declared in the spec file (article title calls the 'component.title' template, so it does not use article.titlepage.recto.mode). Regarding the table column widths, if you are using FOP 0.20.5, it does not support % in column-width. You need to use the column-width="proportional-column-width(20)" and column-width="proportional-column-width(80)" instead. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Kerstin Buchholz" <Leeloo5E@web.de> To: <docbook-apps@lists.oasis-open.org> Sent: Tuesday, March 07, 2006 6:37 AM Subject: [docbook-apps] Title Page Customization > Hello all, > > I tried to create my customized title page. > First I create a titlepage specfile like desribed here: http://www.sagehill.net/docbookxsl/HTMLTitlePage.html#TitlePageElems > After this I put in my customized mydocbook.xsl described under http://www.sagehill.net/docbookxsl/TitlePagePrint.html#TitlepageTableLayout > the below to make some tables on the TitlePage. > > At [1] I put in the title of the article. But it isn't displayed with the right font-size I set in titlepage.xml. There it is set to hsize5 but shown as hsize0. > At [2] and [3] I tried to set the first cell to 20% of the hole table and the second cell to 80%. But both are still 50% in the PDF output. > > <xsl:template name="article.titlepage.recto"> > <fo:block> > <fo:table> > <fo:table-column column-width="100%"/> > <fo:table-body> > <fo:table-row> > <fo:table-cell> > <fo:block text-align="center"> > <xsl:apply-templates mode="article.titlepage.recto.mode" select="title"/>[1] > </fo:block> > </fo:table-cell> > </fo:table-row> > </fo:table-body> > </fo:table> > <fo:table inline-progression-dimension="100%" table-layout="fixed"> > <fo:table-column column-width="20%"/>[2] > <fo:table-column column-width="80%"/>[3] > <fo:table-body> > <fo:table-row> > <fo:table-cell > > <fo:block text-align="left">Autor: </fo:block> > </fo:table-cell> > <fo:table-cell> > <fo:block text-align="left"> > <xsl:apply-templates > mode="article.titlepage.recto.mode" > select="articleinfo/author"/> > </fo:block> > </fo:table-cell> > </fo:table-row> > <fo:table-row> > <fo:table-cell > > <fo:block text-align="left">Datum: </fo:block> > </fo:table-cell> > <fo:table-cell> > <fo:block text-align="left"> > <xsl:apply-templates > mode="article.titlepage.recto.mode" > select="articleinfo/pubdate"/> > </fo:block> > </fo:table-cell> > </fo:table-row> > <fo:table-row> > <fo:table-cell > > <fo:block text-align="left">Version: </fo:block> > </fo:table-cell> > <fo:table-cell> > <fo:block text-align="left"> > <xsl:apply-templates > mode="article.titlepage.recto.mode" > select="articleinfo/releaseinfo"/> > </fo:block> > </fo:table-cell> > </fo:table-row> > <fo:table-row> > <fo:table-cell> > <fo:block text-align="left"> > <xsl:apply-templates > mode="article.titlepage.recto.mode" > select="articleinfo/abstract"/> > </fo:block> > </fo:table-cell> > </fo:table-row> > </fo:table-body> > </fo:table> > </fo:block> > </xsl:template> > > Regards, > Kerstin > ______________________________________________________________ > Verschicken Sie romantische, coole und witzige Bilder per SMS! > Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 > > > --------------------------------------------------------------- ------ > 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]