## Text Encoding Initiative

### The XML Version of the TEI Guidelines

# <divGen>

`<divGen>` | (automatically generated text division) indicates the location at which a textual division generated automatically by a text-processing application is to appear.

Attributes

(In addition to global attributes and those inherited from front)

`type` | specifies what type of generated text division (e.g. index, table of contents, etc.) is to appear.
| Datatype: CDATA

Sample values include:

index | an index is to be generated and inserted at this point.
toc | a table of contents
figlist | a list of figures
tablist | a list of tables

| Default: #IMPLIED
Note | Valid values are application-dependent; those shown are of obvious utility in document production, but are by no means exhaustive.

Example

One use for this element is to allow document preparation software to generate an index and insert it in the appropriate place in the output. The example below assumes that the `index` attribute on the `<index>` element has been used to specify index entries for multiple indices, 1 and 2:

    <back>
       <div1 type="backmat">
          <head>Bibliography</head>
          <listBibl>
             <bibl> <!-- ... -->
             </bibl><!-- ... -->
          </listBibl>
       </div1>
       <div1 type="backmat">
          <head>Indices</head>
          <divGen n="Index Nominum" type="index 1"/>
          <divGen n="Index Rerum" type="index 2"/>
       </div1>
    </back>

Another use for `<divGen>` is to specify the location of an automatically produced table of contents:

    <front>
    <titlePage> ... </titlePage>
    <divGen type="toc"/>
    <div><head>Preface</head>
    <p> ... </p>
    </div>
    </front>

Note

This element is intended primarily for use in document production or manipulation, rather than in the transcription of pre-existing materials; it makes it easier to specify the location of indices, tables of contents, etc., to be generated by text preparation or word processing software. The `n` attribute should be used to give a title for the text division being generated.

Module Declared in file teicore2; Core tag sets: enabled when any TEI base is enabled
Class front
Data Description Empty.
May occur within back body div div0 div1 div2 div3 div4 div5 div6 front
Declaration

    <!ELEMENT divGen %om.RO;  EMPTY>
    <!ATTLIST divGen
          %a.global;
          type CDATA #IMPLIED>

See further 6.8.2 Index Entries

Up: 35 Elements