Main Content

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 or string scalar. 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 this document element, specified as a character vector or string scalar.

The DOM generates a session-unique tag as part of the creation of this object. The generated tag has the form CLASS:ID, where CLASS is the object class and ID is the value of the Id property of the object. Specifying your own tag value can help you to identify where an issue occurred during document generation.