page.width.xml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <refentry xmlns="http://docbook.org/ns/docbook"
  2. xmlns:xlink="http://www.w3.org/1999/xlink"
  3. xmlns:xi="http://www.w3.org/2001/XInclude"
  4. xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
  5. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  6. version="5.0" xml:id="page.width">
  7. <refmeta>
  8. <refentrytitle>page.width</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">length</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>page.width</refname>
  13. <refpurpose>The width of the physical page</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="page.width.frag"><xsl:param name="page.width">
  17. <xsl:choose>
  18. <xsl:when test="$page.orientation = 'portrait'">
  19. <xsl:value-of select="$page.width.portrait"/>
  20. </xsl:when>
  21. <xsl:otherwise>
  22. <xsl:value-of select="$page.height.portrait"/>
  23. </xsl:otherwise>
  24. </xsl:choose>
  25. </xsl:param></src:fragment>
  26. </refsynopsisdiv>
  27. <refsection><info><title>Description</title></info>
  28. <para>The page width is generally calculated from the
  29. <parameter>paper.type</parameter> and
  30. <parameter>page.orientation</parameter> parameters.</para>
  31. </refsection>
  32. </refentry>