source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/header.column.widths.xml@ c8e0d1d

Last change on this file since c8e0d1d was 15c7d39, checked in by Matthew Burgess <matthew@…>, 11 years ago

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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