[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: only chapter icon at the edge
Hi, 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!! Lily 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" page-width="{$page.width}" page-height="{$page.height}" margin-top="{$page.margin.top}" margin-bottom="{$page.margin.bottom}" margin-left="{$margin.left.inner}" margin-right="{$page.margin.outer}"> <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> </xsl:call-template> </xsl:if> … … <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}"/> </fo:simple-page-master> 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"/> </xsl:call-template> </fo:static-content> 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="''"/> <fo:block> <xsl:choose> <xsl:when test="$sequence = 'odd' and $side = 'end'"> <fo:block-container absolute-position = "absolute" width = "0.5in" height = "1in" top = "2.5in"> <fo:block> <xsl:choose> <xsl:when test="preceding-sibling::chapter[1]"> <fo:external-graphic src="url('file:///C:/a_pink_edge_icon.png')" /> </xsl:when> <xsl:otherwise> <fo:external-graphic src="url('file:///C:/a_yellow_edge_icon.png')" /> </xsl:otherwise> </xsl:choose> </fo:block> </fo:block-container> </xsl:when> -- 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]