OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: only chapter icon at the edge


Now I can put some “chapter icon” at the very edge of the pages. 
(Thank Bob very much. Thank you for the answer on 23. Oct 2008. I wrote the code according your help. Thanks!!! ) 

One new problem:

I want to put the “chapter icon” at the very edge of the pages. The only way I found out is:  
<xsl:param name="page.margin.outer">0in </xsl:param>

My book is double-sided. 

But then the normal texts are also begins or ends at the very edge of the pages. How can I prevent this?

I only want to put the “chapter icon” at the very edge of the pages. But the text in the book should not be at the very edge of the pages. 

I tried some parameters like “body.start.indent” and so an. But they did not work. 

Thanks for any help!!


I don’t know if you need to know some code. Probably not. Anyway I show it in the case it may helps. 

In order to add the “chapter icon” at edge of the page I did the following according to the answer from Bob on …

<xsl:param name="region.side.extent">0.5in</xsl:param>

1) Add the „start“ and „end“ Element in “fo:simple-page-master”. In “odd” page it’s like this: <fo:simple-page-master master-name="my-body-odd"
      <xsl:if test="$axf.extensions != 0">
        <xsl:call-template name="axf-page-master-properties">
          <xsl:with-param name="page.master">my-body-odd</xsl:with-param>
      … …
      <fo:region-start region-name = "xsl-region-start-body-odd"
        extent ="0pt"/>
      <fo:region-end region-name = "xsl-region-end-body-odd"
        extent ="{$region.side.extent}"/>                       

2) customize the template “running.head.mode”: add many “fo:static-content”. For example: 
<fo:static-content flow-name="xsl-region-end-body-odd">
    <xsl:call-template name="bleed.tab">
      <xsl:with-param name="pageclass" select="$pageclass"/>
      <xsl:with-param name="sequence" select="'odd'"/>
      <xsl:with-param name="side" select="'end'"/>
      <xsl:with-param name="gentext-key" select="$gentext-key"/>

3) create a template “bleed.tab”: 

<xsl:template name="bleed.tab">
    <xsl:param name="pageclass" select="''"/>
    <xsl:param name="sequence" select="''"/>
    <!-- lining added side -->
    <xsl:param name="side" select="''"/>
    <xsl:param name="position" select="''"/> 
    <xsl:param name="gentext-key" select="''"/>
        <xsl:when test="$sequence = 'odd' and $side = 'end'">   
            absolute-position = "absolute"
            width = "0.5in"
            height = "1in"
            top = "2.5in">      
                <xsl:when test="preceding-sibling::chapter[1]">
                  <fo:external-graphic  src="url('file:///C:/a_pink_edge_icon.png')" />
                  <fo:external-graphic  src="url('file:///C:/a_yellow_edge_icon.png')" />

Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]