mlreportgen.dom.AutoNumberStream class

Package: mlreportgen.dom
Superclasses:

Numbering stream

Description

A numbering stream generates a sequence of numbers for numbering chapters, tables, figures, and other document objects. To create a numbering stream object, use the createAutoNumberStream method.

Properties

expand all

Character case of generated numbers, specified as:

  • 'lower' — lowercase (for example, a, b ,c)

  • 'upper' — uppercase (for example, A, B, C)

Character type of generated numbers, specified as:

  • 'alphabetic' — for example, a, b, c

  • 'arabic' — for example, 1, 2, 3

  • 'roman' — for example, i, ii, iii

ID for this document element, specified as a character vector. The DOM generates a session-unique ID when it creates the document element. You can specify your own ID.

The value of this property should be one less than the number that you want to be generated first. For example, if you want the number of the first item to be numbered by this stream to be 2, set the value of this property to 1.

Name of numbering stream, specified as a character vector.

Tag for the document element, specified as a character vector.

The DOM generates a session-unique tag when it creates the document element. Structure the tag as class:id, where class is the class of the element and id is the value of the Id property. You can specify a tag to replace the generated tag. Specifying your own tag can make it easier to identify where an issue occurred during document generation.