A comprehensive example demonstrating almost everything you can do with named styles is found in
:XFC_install_dir
/samples/styles.fo
...
<fo:block xfc:user-style="Heading 1">This is a block
having xfc:user-style="Heading 1".</fo:block>
...
The associated style definition file is
:XFC_install_dir
/samples/styles.xfc
... <numbering name="Heading Numbering" show-all-levels="true"> <level format="%{decimal}." provisional-distance-between-starts="0" provisional-label-separation="8pt"/> <level format="%{decimal}." provisional-distance-between-starts="0" provisional-label-separation="7pt" /> <level format="%{decimal}." provisional-distance-between-starts="0" provisional-label-separation="6pt" /> </numbering> <paragraph-style name="Heading" abstract="true" next-style="Paragraph" numbering="Heading Numbering" keep-with-next="always" font-family="sans-serif" font-weight="bold" color="#004080" /> <paragraph-style name="Heading 1" base-style="Heading" outline-level="1" numbering-level="1" font-size="16pt" line-height="0.82em" space-before="0.82em" space-after="0.82em" /> ...
Specifies the numbering, up to 3 levels, of the headings found in the generated word processor file. | |
This is an abstract | |
This specifies how headings are to be automatically numbered by the word processor. | |
A " | |
This specifies the outline level of a " | |
This specifies the list level, that is, which |
You can generate styles.odt
, styles.rtf
, styles.word.xml
, styles.docx
by running make_samples
inside the
folder.XFC_install_dir
/samples/