[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] A Complex Title Page - which method to use ?
Peter, Thanks for responding. Sorry not to respond sooner but I haven't had a chance to look at this until now.
"It sounds like you're already customizing article.titlepage.recto to add your page break". No I'm not - well, I suppose I am but I'm not doing so directly. I'm still using the titlepage customization system. I've added the page break by adding <fo:block break-after="page"/> to t:titlepage-separator within the article titlepage template.
I haven't (yet) moved away from using the titlepage system. What I'd like to find out is if I can insert fo:block elements while using the titlepage system. Or whether that's the cue that it is time to change system and start generating the actual title-page directly.
Appreciatively, Richard.
Richard Kerry BNCS Engineer
T: +44 (0)20 82259063 M: +44 (0)7812 325518 Room EBX 301, BBC Television Centre, Wood Lane, London, W12 7RJ
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable From: Peter Desjardins [peter.desjardins.us@gmail.com]
Sent: 14 June 2013 17:04 To: Kerry, Richard Cc: DocBook Apps Mailing List [docbook-apps@lists.oasis-open.org] Subject: Re: [docbook-apps] A Complex Title Page - which method to use ? I'm using a slightly complex title page for a book right now. I'm customizing the book.titlepage.recto template and adding FO elements as needed.
Here's what I'm doing to the book titlepage. I was just playing around with FO blocks and attributes until it looked right. I used
http://www.w3schools.com/xslfo/xslfo_reference.asp and a few other FO references that I found.It sounds like you're already customizing article.titlepage.recto to add your page break. Can you add more FO to get the decoration you need? <xsl:template name="book.titlepage.recto"> <xsl:element name="fo:block"> <xsl:attribute name="margin-top">.5in</xsl:attribute> <xsl:element name ="fo:external-graphic"> <xsl:attribute name="content-height">1in</xsl:attribute> <xsl:attribute name="src"> <xsl:text>url(../mylogo.svg)</xsl:text> </xsl:attribute> </xsl:element> </xsl:element> <xsl:element name="fo:block"> <xsl:attribute name="background-image">url(../mygraphic.png)</xsl:attribute> <xsl:attribute name="space-before">2.25in</xsl:attribute> <xsl:attribute name="margin-right">-1in</xsl:attribute> <xsl:attribute name="padding">10pt</xsl:attribute> <xsl:attribute name="color">white</xsl:attribute> <xsl:attribute name="text-align">left</xsl:attribute> <xsl:attribute name="font-size">20pt</xsl:attribute> <xsl:attribute name="font-family">DINComp</xsl:attribute> <xsl:attribute name="font-weight">600</xsl:attribute> <xsl:value-of select="//d:book/d:info/d:title" /> <!-- <xsl:call-template name="stock.docbook.book.titlepage" /> --> <xsl:element name="fo:block"> <xsl:attribute name="space-before">4.1in</xsl:attribute> </xsl:element> </xsl:element> </xsl:template> Good luck!
Peter
On Fri, Jun 14, 2013 at 6:08 AM, Kerry, Richard
<richard.kerry@atos.net> wrote:
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]