lfs-pdf.xsl 2.1 KB

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