[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Footer background color for pront output
Hi Alan,That template looks like it should work. Can you peak in your .fo file to see if the new page master is being referenced? For a body page-sequence, you should see:<fo:page-sequence master-reference="instart-body" ...>If you see "body", then the selection process is not working. If you see "instart-body", then the custom page-master is not working.From: Alan OehlerSent: Wednesday, July 24, 2013 4:05 PMTo: docbook-appsSubject: Re: [docbook-apps] Footer background color for pront outputTook me a while to get back to this.Bob, I followed the documentation that you referred to, and added a background-color attribute to the fo:region-after elements. It doesn't seem to do a thing.Here's the logic I put in to decide whether to use the default or the custom page-masters:<xsl:template name="select.user.pagemaster"><xsl:param name="element"/><xsl:param name="pageclass"/><xsl:param name="default-pagemaster"/><!-- Return my customized title page master name if for body,otherwise return the default --><xsl:choose><xsl:when test="$default-pagemaster = 'body'"><xsl:value-of select="'instart-body'" /></xsl:when><xsl:otherwise><xsl:value-of select="$default-pagemaster"/></xsl:otherwise></xsl:choose></xsl:template>I suspect I am not selecting my custom one properly and it's using the default - but I can't see why. Any ideas?Alan
On Fri, Jun 28, 2013 at 1:04 PM, Alan Oehler <aoehler@instartlogic.com> wrote:
Bob,Thanks! I'll give it a look-over.Alan
On Fri, Jun 28, 2013 at 12:37 PM, Bob Stayton <bobs@sagehill.net> wrote:
Hi Alan,That area is defined by the fo:region-after in the fo:simple-page-masters in fo:pagesetup.xsl. There is no attribute-set for that region, but you can create your own custom page-masters, and add the background-color to that fo:region-after element. Customing page-masters is described here:From: Alan OehlerSent: Wednesday, June 26, 2013 3:17 PMSubject: [docbook-apps] Footer background color for pront outputHi,I'm having some trouble trying to figure out how to set up my footer for print output to have its background color set. I can add it to the footer.content.properties attribute set, but that only sets the background color of the displayed text - kind of like in HTML setting the background color attribute for the text in a div rather than for the div itself. In other words, I want the entire lower 15% or so of the printed page to have a different background color than the rest of the page.Any hints?Thanks!
--
Alan C. OehlerSenior Technical Writer | Instart Logic
--
Alan C. OehlerSenior Technical Writer | Instart Logic
--
Alan C. OehlerSenior Technical Writer | Instart Logic
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]