footer.column.widths.xml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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="footer.column.widths">
  7. <refmeta>
  8. <refentrytitle>footer.column.widths</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>footer.column.widths</refname>
  13. <refpurpose>Specify relative widths of footer areas</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv><src:fragment xml:id="footer.column.widths.frag">
  16. <xsl:param name="footer.column.widths">1 1 1</xsl:param>
  17. </src:fragment></refsynopsisdiv>
  18. <refsection><info><title>Description</title></info>
  19. <para>Page footers in print output use a three column table
  20. to position text at the left, center, and right side of
  21. the footer on the page.
  22. This parameter lets you specify the relative sizes of the
  23. three columns. The default value is
  24. "1 1 1".</para>
  25. <para>The parameter value must be three numbers, separated
  26. by white space. The first number represents the relative
  27. width of the inside footer for
  28. double-sided output. The second number is the relative
  29. width of the center footer. The third number is the
  30. relative width of the outside footer for
  31. double-sided output.
  32. </para>
  33. <para>For single-sided output, the first number is the
  34. relative width of left footer for left-to-right
  35. text direction, or the right footer for right-to-left
  36. text direction.
  37. The third number is the
  38. relative width of right footer for left-to-right
  39. text direction, or the left footer for right-to-left
  40. text direction.</para>
  41. <para>The numbers are used to specify the column widths
  42. for the table that makes up the footer area.
  43. In the FO output, this looks like:
  44. </para>
  45. <programlisting>
  46. &lt;fo:table-column column-number="1"
  47. column-width="proportional-column-width(1)"/&gt;
  48. </programlisting>
  49. <para>
  50. The <literal>proportional-column-width()</literal>
  51. function computes a column width by dividing its
  52. argument by the total of the arguments for all the columns, and
  53. then multiplying the result by the width of the whole table
  54. (assuming all the column specs use the function).
  55. Its argument can be any positive integer or floating point number.
  56. Zero is an acceptable value, although some FO processors
  57. may warn about it, in which case using a very small number might
  58. be more satisfactory.
  59. </para>
  60. <para>For example, the value "1 2 1" means the center
  61. footer should have twice the width of the other areas.
  62. A value of "0 0 1" means the entire footer area
  63. is reserved for the right (or outside) footer text.
  64. Note that to keep the center area centered on
  65. the page, the left and right values must be
  66. the same. A specification like "1 2 3" means the
  67. center area is no longer centered on the page
  68. since the right area is three times the width of the left area.
  69. </para>
  70. </refsection>
  71. </refentry>