| Search Locate Previous Next | Contents |
To flow one or more paragraphs of free text into the current frame:
rleaf.Flow vtv © Vector of text vectors
A simple vector is treated as one paragraph, and has the current values of <before> and <after> spacing applied. It is wrapped into the frame using the current Font and Pitch. Any indents are also applied, and if automatic numbered indents are in effect, the counter will be incremented appropriately.
Returns (shyly) the number of lines remaining in the frame (assuming the current type size).
A vector of vectors is treated as a sequence of paragraphs, so this can be used to write an entire set of indented blocks at a single call. To use an existing style, pass the style name as the left argument:
'indent' leaf.Flow mytext
The style will be applied only to the text in this particular call.
Using HTML to enhance formatted text
NewLeaf supports a selection of HTML tags which can be used to change the appearance of text within a paragraph. These are:
Note that heavy use of these tags substantially increases printing time. If you simply want to underline a subheading, set its style to include emphasis underline and use leaf.Place rather than surrounding it with HTML tags and calling leaf.Flow.
See also ...
leaf.Tabrack set up tabstops
How to Mark Text as Bold or Italic