Re: Thumb index
Jirka Kosek <[email protected]>
| Newsgroups | gmane.text.docbook.apps |
|---|---|
| Message-ID | <[email protected]> |
On 20.7.2020 18:20, Tony Graham wrote:
> The 'mod 7' in Jirka's solution restarts the positioning after 7
> chapters. Have you tried it?
Thanks Tony for further clarification. I have been in rush and haven't
time to comment much on my example. For positioning of thumb index the
following code is cruical:
<xsl:attribute name="top">
<xsl:value-of select="(count(preceding::d:chapter |
preceding::d:appendix | preceding::d:preface |
preceding::d:bibliography) mod 7) * 28 + 18"/>
<xsl:text>mm</xsl:text>
</xsl:attribute>
mod 7 -- means that after each 7 chapters/appendices/... thumb index
will be moved back to the top of a page
28 -- is height of thumb index (in mm)
18 -- is intial offset (in mm)
--
------------------------------------------------------------------
Jirka Kosek e-mail: [email protected] http://xmlguru.cz
------------------------------------------------------------------
Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
Bringing you XML Prague conference http://xmlprague.cz
------------------------------------------------------------------
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQRya5eRAjs9i3DpmvLPCZLDufR1HgUCXxa74wAKCRDPCZLDufR1 HhY+AKCvUAiASwjm30mB6cAuycTJFczX+wCdFKQPLykxYgVpiggmIc6NpJ3aOkM= =Eae7 -----END PGP SIGNATURE-----