Difference between revisions of "Number layout"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 1: Line 1:
 +
== Number Layout capabilities in OD ==
 +
The layout of numbered paragraphs in ODT is controlled by
 +
a)Paragraphs properties, like indent, etc; and
 +
 +
b)Numbering position and spacing properties: indent (text:space-before), spacing to text (text:min-label-distance), minimum space numbering <-> text(text:min-label-distance) and numbering alignment (fo:text-align).
 +
 +
Properties of category (a) and (b) are “additive”, e.g. the real paragraph indent is calculated by the paragraph indent property and the number indent property and the minimum space numbering <-> text property.
 +
The following figure shows, how the layout of a numbered paragraph is influenced by the different parameters. The parameters shown are those defined in the ODT file format:
 +
[[Image:ODNumLayoutExample.jpg]]
 +
 +
The spacing l* is calculated by
 +
<pre>
 +
l*:=max{text:min-label-width, text:min-label-distance+label-width}
 +
</pre>
 +
The position of the label within the l* space is controlled by the fo:text-align parameter.
 +
 +
 
== Number layout capabilities in WW ==
 
== Number layout capabilities in WW ==
  

Revision as of 12:17, 29 November 2006

Number Layout capabilities in OD

The layout of numbered paragraphs in ODT is controlled by a)Paragraphs properties, like indent, etc; and

b)Numbering position and spacing properties: indent (text:space-before), spacing to text (text:min-label-distance), minimum space numbering <-> text(text:min-label-distance) and numbering alignment (fo:text-align).

Properties of category (a) and (b) are “additive”, e.g. the real paragraph indent is calculated by the paragraph indent property and the number indent property and the minimum space numbering <-> text property. The following figure shows, how the layout of a numbered paragraph is influenced by the different parameters. The parameters shown are those defined in the ODT file format: ODNumLayoutExample.jpg

The spacing l* is calculated by

l*:=max{text:min-label-width, text:min-label-distance+label-width}

The position of the label within the l* space is controlled by the fo:text-align parameter.


Number layout capabilities in WW

In WW the layout of numbered paragraphs is controlled by the paragraph's properties and mainly by the “level follow char”, which is either a tab; a space or nothing. Usually the “level follow char” is a “tab” and the space between the number's label and the paragraph text is given by the defined tab positions:

WWNumLayoutExample.jpg

The justification of the label is set with respect to the paragraph left indent (w:first-line+w:left). Although being “faked” by the GUI no “own” number spacing and position properties exist in Microsoft Word.

The number layout capabilities of WW and the number layout capabilities of ODT do not match. For illustration consider e.g. the following document (which happens to occur in real word). The following screen shot shows a numbered paragraph in Microsoft Word:

NumParSample1Example.jpg

The above paragraph is numbered, the follow char is a tab and the paragraph defines two tab positions. When the number in the above example grows, automatically the next tab position will be chosen:

NumParSample2Example.jpg

This e.g. can not be modelled using the ODT number layout capabilities without knowing the actual labels length at import time.

Personal tools