From ce0a863e65d1c238e9b66de832ada2e14f0d7710 Mon Sep 17 00:00:00 2001 From: fotis Date: Thu, 1 Feb 2001 23:08:50 +0000 Subject: changed the use of leader in content table, added some introductory remarks git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194010 13f79535-47bb-0310-9956-ffa450edef68 --- docs/examples/fo/leader.fo | 329 ++++++++++++++++++++------------------------- 1 file changed, 144 insertions(+), 185 deletions(-) (limited to 'docs/examples') diff --git a/docs/examples/fo/leader.fo b/docs/examples/fo/leader.fo index 818ee4ade..6555b5878 100644 --- a/docs/examples/fo/leader.fo +++ b/docs/examples/fo/leader.fo @@ -1,6 +1,6 @@ - + @@ -33,7 +33,10 @@ font-family="sans-serif" line-height="15pt" space-after.optimum="3pt" - text-align="start"> + text-align="start" + background-color="blue" + color="white" + > Leader examples @@ -43,6 +46,35 @@ space-before.optimum="5pt" space-after.optimum="3pt" text-align="start"> + fo:leader is mainly used a) in table-of-contents to generate sequences of "." glyphs that separate titles from page numbers + b) to create entry fields in fill-in-the-blank forms c) to create horizontal rules for use as separators. You + define the look and use of fo:leader with the property "leader-pattern". It can have the following values: a) space. This + just creates an space. b) dots. This creates a sequence of "." c) rule. This creates a line. d) use-content. This creates a + repeating pattern of the content of fo:leader (not supported yet by Fop). + + + + + The dimensions of fo:leader are determined by the compound property leader-length. It consists of the + 3 sub values: leader-length.minimum (default = 0), leader-length.optimum (default = 12pt), leader-length.maximum + (default = 100%). If you want to make sure, that leader-length has a fixed size, you should use the compound + property (p.e. leader-length="5cm"). If you want to fill the rest of the remaining space with dots in a table of + content, you can use the default values. + + + leader with leader-pattern="space" @@ -67,13 +99,28 @@ + + Using fo:leader with leader-pattern="dots" + + - Using fo:leader with leader-pattern="dots" + There are two properties which allow you to specify the looks of the dotted line. First + "leader-pattern-width". It specifies the length of one dot and the space up to the next dot. + Second leader-alignment. It can be used to make sure, the dots in different lines are parallel (only value "reference-area" + is supported). @@ -315,12 +362,96 @@ - + Table of Content + + + + shows the use of leader properties in combination to build a table of content. + Following values are used for the leader: + leader-pattern="dots" + leader-pattern-width="8pt" + leader-alignment="reference-area" + no leader-length is specified, so the default values are used (min: 0, opt: 12pt, max: 100%) + + + + + + + + + + + + A) + This is some longer sample text + 1 + + + + + B) + Some text + 2 + + + + C) + Text + 3 + + + + D) + This text is even longer than the first entry + 4 + + + + E) + Shorter text example + 5 + + + + + + + + + + + + text-align="start" + background-color="blue" + color="white" + > Leader with leader-pattern="rule" @@ -542,7 +673,7 @@ Using leader in combination with justified text @@ -553,8 +684,7 @@ Here is some longer text. Here comes the leader (dots width 8pt): Here is some longer text. Here is some longer text. + leader-length="5cm"/>Here is some longer text. Here is some longer text. Here is some longer text. Here is some longer text. Here is some longer text. @@ -562,16 +692,14 @@ Here is some longer text. Here comes the leader (dots width 5pt): Here is some longer text. Here is some longer text. + leader-length="5cm"/>Here is some longer text. Here is some longer text. Here is some longer text. Here is some longer text. Here is some longer text. Here is some longer text. Here is some longer text. Here is some longer text. Here comes the leader (dots): Here is some longer text. Here is some longer text. + leader-length="5cm"/>Here is some longer text. Here is some longer text. Here is some longer text. Here is some longer text. Here is some longer text. @@ -579,187 +707,18 @@ Here is some longer text. Here is some longer text. Here is some longer text. Here comes the leader (rule): Here is some longer text. Here is some longer text. + leader-length="5cm"/>Here is some longer text. Here is some longer text. Here is some longer text. Here is some longer text. Here is some longer text. Here is some longer text. Here is some longer text. Here is some longer text. Here comes the leader (space): Here is some longer text. Here is some longer text. + leader-length="5cm"/>Here is some longer text. Here is some longer text. Here is some longer text. Here is some longer text. Here is some longer text. - - Table of Content - - - - shows the use of leader properties in combination to build a table of content. - Following values are used for the leader: - leader-pattern="dots" - leader-pattern-width="8pt" - leader-alignment="reference-area" - leader-length.optimum="14cm" - - - - - - - - - - - - A) - What is FOP? - 1 - - - - - B) - Downloading FOP - 2 - - - - C) - Running FOP - 3 - - - - D) - Embedding FOP - 4 - - - - E) - What is Implemented? - 5 - - - - - - - - Table of Content 2 - - - - shows the use of leader-length.minimum in the middle column. Values are increased from 0cm (default) - to 0.5 and then to 1cm - - - - - - - - - - - - A) - What is FOP doing here in the middle? - 1 - - - - A) - What is FOP doing here in the middle? - 1 - - - - A) - What is FOP doing here in the middle? - 1 - - - - - - - The text/leader combination from table 1 without the table - - - -What is FOP? - -Downloading FOP - -Running FOP - -Embedding FOP - -What is Implemented? - - -- cgit v1.2.3