page.height.portrait.xml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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.height.portrait">
  7. <refmeta>
  8. <refentrytitle>page.height.portrait</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">length</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>page.height.portrait</refname>
  13. <refpurpose>Specify the physical size of the long edge of the page</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="page.height.portrait.frag"><xsl:param name="page.height.portrait">
  17. <xsl:choose>
  18. <xsl:when test="$paper.type = 'A4landscape'">210mm</xsl:when>
  19. <xsl:when test="$paper.type = 'USletter'">11in</xsl:when>
  20. <xsl:when test="$paper.type = 'USlandscape'">8.5in</xsl:when>
  21. <xsl:when test="$paper.type = 'USlegal'">14in</xsl:when>
  22. <xsl:when test="$paper.type = 'USlegallandscape'">8.5in</xsl:when>
  23. <xsl:when test="$paper.type = '4A0'">2378mm</xsl:when>
  24. <xsl:when test="$paper.type = '2A0'">1682mm</xsl:when>
  25. <xsl:when test="$paper.type = 'A0'">1189mm</xsl:when>
  26. <xsl:when test="$paper.type = 'A1'">841mm</xsl:when>
  27. <xsl:when test="$paper.type = 'A2'">594mm</xsl:when>
  28. <xsl:when test="$paper.type = 'A3'">420mm</xsl:when>
  29. <xsl:when test="$paper.type = 'A4'">297mm</xsl:when>
  30. <xsl:when test="$paper.type = 'A5'">210mm</xsl:when>
  31. <xsl:when test="$paper.type = 'A6'">148mm</xsl:when>
  32. <xsl:when test="$paper.type = 'A7'">105mm</xsl:when>
  33. <xsl:when test="$paper.type = 'A8'">74mm</xsl:when>
  34. <xsl:when test="$paper.type = 'A9'">52mm</xsl:when>
  35. <xsl:when test="$paper.type = 'A10'">37mm</xsl:when>
  36. <xsl:when test="$paper.type = 'B0'">1414mm</xsl:when>
  37. <xsl:when test="$paper.type = 'B1'">1000mm</xsl:when>
  38. <xsl:when test="$paper.type = 'B2'">707mm</xsl:when>
  39. <xsl:when test="$paper.type = 'B3'">500mm</xsl:when>
  40. <xsl:when test="$paper.type = 'B4'">353mm</xsl:when>
  41. <xsl:when test="$paper.type = 'B5'">250mm</xsl:when>
  42. <xsl:when test="$paper.type = 'B6'">176mm</xsl:when>
  43. <xsl:when test="$paper.type = 'B7'">125mm</xsl:when>
  44. <xsl:when test="$paper.type = 'B8'">88mm</xsl:when>
  45. <xsl:when test="$paper.type = 'B9'">62mm</xsl:when>
  46. <xsl:when test="$paper.type = 'B10'">44mm</xsl:when>
  47. <xsl:when test="$paper.type = 'C0'">1297mm</xsl:when>
  48. <xsl:when test="$paper.type = 'C1'">917mm</xsl:when>
  49. <xsl:when test="$paper.type = 'C2'">648mm</xsl:when>
  50. <xsl:when test="$paper.type = 'C3'">458mm</xsl:when>
  51. <xsl:when test="$paper.type = 'C4'">324mm</xsl:when>
  52. <xsl:when test="$paper.type = 'C5'">229mm</xsl:when>
  53. <xsl:when test="$paper.type = 'C6'">162mm</xsl:when>
  54. <xsl:when test="$paper.type = 'C7'">114mm</xsl:when>
  55. <xsl:when test="$paper.type = 'C8'">81mm</xsl:when>
  56. <xsl:when test="$paper.type = 'C9'">57mm</xsl:when>
  57. <xsl:when test="$paper.type = 'C10'">40mm</xsl:when>
  58. <xsl:otherwise>11in</xsl:otherwise>
  59. </xsl:choose>
  60. </xsl:param></src:fragment>
  61. </refsynopsisdiv>
  62. <refsection><info><title>Description</title></info>
  63. <para>The portrait page height is the length of the long
  64. edge of the physical page.
  65. </para>
  66. </refsection>
  67. </refentry>