lfs-pdf.xsl 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version='1.0' encoding='ISO-8859-1'?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:fo="http://www.w3.org/1999/XSL/Format"
  4. version="1.0">
  5. <!-- We use FO and FOP as the processor -->
  6. <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/fo/docbook.xsl"/>
  7. <xsl:param name="fop.extensions" select="1"/>
  8. <xsl:param name="draft.mode" select="'no'"/>
  9. <!-- Including our others customized templates -->
  10. <xsl:include href="pdf/lfs-index.xsl"/>
  11. <xsl:include href="pdf/lfs-pagesetup.xsl"/>
  12. <!-- Probably want to make the paper size configurable -->
  13. <xsl:param name="paper.type" select="'A4'"/>
  14. <!-- Don't hyphenate -->
  15. <xsl:param name="hyphenate">false</xsl:param>
  16. <xsl:param name="alignment">left</xsl:param>
  17. <!-- Font size -->
  18. <xsl:param name="body.font.master">8</xsl:param>
  19. <xsl:param name="body.font.size">10pt</xsl:param>
  20. <!-- Graphics in admonitions -->
  21. <xsl:param name="admon.graphics" select="1"/>
  22. <xsl:param name="admon.graphics.path"
  23. select="'/usr/share/xml/docbook/xsl-stylesheets-1.65.1/images/'"/>
  24. <!-- Shade screen -->
  25. <xsl:param name="shade.verbatim" select="1"/>
  26. <!-- TOC generation -->
  27. <xsl:param name="generate.toc">
  28. book toc
  29. part nop
  30. </xsl:param>
  31. <xsl:param name="toc.section.depth">1</xsl:param>
  32. <xsl:param name="generate.section.toc.level" select="-1"/>
  33. <xsl:param name="toc.indent.width" select="18"/>
  34. <!-- Page number in Xref-->
  35. <xsl:param name="insert.xref.page.number">yes</xsl:param>
  36. <xsl:template match="*" mode="page.citation">
  37. <xsl:param name="id" select="'???'"/>
  38. <fo:inline keep-together.within-line="always">
  39. <xsl:text>[p.</xsl:text>
  40. <fo:page-number-citation ref-id="{$id}"/>
  41. <xsl:text>]</xsl:text>
  42. </fo:inline>
  43. </xsl:template>
  44. <!-- Prevent duplicate e-mails in the Acknowledgments pages-->
  45. <xsl:param name="ulink.show" select="0"/>
  46. </xsl:stylesheet>