Book-Build INI file

The ditafmx-bookbuild.ini file defines many of the parameters used to assemble the generated book to match your needs. The book build process first looks for this file in the directory that you have specified for the new book file, then it checks in the main DITA-FMx directory. If you always use the same settings, you can just keep one copy in the DITA-FMx directory, but if you have book-specific settings, you may want to add this file to each output directory. This file follows the standard INI file format with section names in square brackets and key/value pairs following each section using a <key>=<value> syntax.

The book build process operates on individual book components based on the names of the map elements that are referencing the topic files (such as “part,” “chapter,” “toc,” “indexlist,” and so on). These element names are stored in the @mapelemtype attributes on the fm-ditafile and fm-subditamap elements in the generated book. The ditafmx-bookbuild.ini file provides two general section types, one that defines the numbering and pagination properties for each element type and one that defines the creation of generated FM files that replace the “list” files in the frontmatter and backmatter elements. The basic syntax for this file is as follows:

[General] 
BookTemplatesDir=<path to templates folder> 
 
[NumberingFirst-<mapelemtype>] 
... (same as below) 
 
[NumberingDefault-<mapelemtype>] 
VolumeProperty=(Restart|Continue|UseSame|FromFile) 
VolumeNumberValue=<value> 
VolumeNumberFormat=(Numeric|LCRoman|UCRoman|LCAlpha|UCAlpha|Text) 
ChapterProperty=(Restart|Continue|UseSame|FromFile) 
ChapterNumberValue=<value> 
ChapterNumberFormat=(Numeric|LCRoman|UCRoman|LCAlpha|UCAlpha|Text) 
PageProperty=(Restart|Continue|FromFile) 
PageNumberValue=<value> 
PageNumberFormat=(Numeric|LCRoman|UCRoman|LCAlpha|UCAlpha|Text) 
ParagraphProperty=(Restart|Continue|FromFile) 
FootnoteProperty=(Restart|StartOver|Continue|FromFile) 
FootnoteNumberValue=<value> 
FootnoteNumberFormat=(Numeric|LCRoman|UCRoman|LCAlpha|UCAlpha|Custom) 
FootnoteNumberCustom=<value> 
TableFootnoteProperty=(Format|FromFile) 
TableFootnoteNumberFormat=(Numeric|LCRoman|UCRoman|LCAlpha|UCAlpha|Custom) 
TableFootnoteNumberCustom=<value> 
PageStartSide=(FromFile|Next|Left|Right) 
PageDoubleSided=(1|0) 
PageRounding=(DeleteEmpty|MakeEven|MakeOdd|NoChange) 
 
[GeneratedFile-<mapelemtype>] 
ComponentType=(IndexAuthor|IndexFormats|IndexMarker|IndexReferences|IndexStandard|IndexSubject|ListFigure|ListFormat|ListMarker|ListMarkerAlpha|ListPara|ListParaAlpha|ListReferences|ListTable|Toc) 
NumTags=<N> 
1=<paratag or markername> 
2=<paratag or markername> 
<N>=<paratag or markername> 
 
[IncludeFiles] 
<position>=<filename> 
 
[IncludeFileTypes] 
<position>=<mapelemtype>

Each section and item are described below.

General Section

BookTemplatesDir
Specifies the directory that contains the layout templates (tpl~*.fm) and generated file templates (gentpl~*.fm) files. A relative path is relative to the INI file.

Numbering(First|Default)-<mapelemtype> Sections

A NumberingFirst-<mapelemtype> section applies to the first occurrence of this element in the map, and NumberingDefault-<mapelemtype> applies to any additional like-named elements in the map.

VolumeProperty
Correlates to the options on the Volume tab of the Numbering Properties dialog. Valid values are: Restart, Continue, UseSame, and FromFile.
VolumeNumberValue
If Restart is specified for VolumeProperty, defines the number to use as the starting value (use numeric values only regardless of the number format).
VolumeNumberFormat
If Restart is specified for VolumeProperty, defines the format for that number and all subsequent numbers of this type that follow. Valid values are: Numeric, LCRoman, UCRoman, LCAlpha, UCAlpha, and Text.
ChapterProperty
Correlates to the options on the Chapter tab of the Numbering Properties dialog. Valid values are: Restart, Continue, UseSame, and FromFile.
ChapterNumberValue
If Restart is specified for ChapterProperty, defines the number to use as the starting value (use numeric values only regardless of the number format).
ChapterNumberFormat
If Restart is specified for ChapterProperty, defines the format for that number and all subsequent numbers of this type that follow. Valid values are: Numeric, LCRoman, UCRoman, LCAlpha, UCAlpha, and Text.
PageProperty
Correlates to the options on the Page tab of the Numbering Properties dialog. Valid values are: Restart, Continue, and FromFile.
PageNumberValue
If Restart is specified for PageProperty, defines the number to use as the starting value (use numeric values only regardless of the number format).
PageNumberFormat
If Restart is specified for PageProperty, defines the format for that number and all subsequent numbers of this type that follow. Valid values are: Numeric, LCRoman, UCRoman, LCAlpha, UCAlpha, and Text.
ParagraphProperty
Correlates to the options on the Paragraph tab of the Numbering Properties dialog. Valid values are: Restart, Continue, and FromFile.
FootnoteProperty
Correlates to the options on the Footnote tab of the Numbering Properties dialog. Valid values are: Restart, Continue, UseSame, and FromFile.
FootnoteNumberValue
If Restart is specified for FootnoteProperty, defines the number to use as the starting value (use numeric values only regardless of the number format).
FootnoteNumberFormat
If Restart is specified for FootnoteProperty, defines the format for that number and all subsequent numbers of this type that follow. Valid values are: Numeric, LCRoman, UCRoman, LCAlpha, UCAlpha, and Custom.
FootnoteNumberCustom
If Custom is specified in FootnoteNumberFormat, defines the custom value to use.
TableFootnoteProperty
Correlates to the options on the Table Footnote tab of the Numbering Properties dialog. Valid values are: Format and FromFile.
TableFootnoteNumberFormat
If Format is specified for TableFootnoteProperty, defines the format for that number and all subsequent numbers of this type that follow. Valid values are: Numeric, LCRoman, UCRoman, LCAlpha, UCAlpha, and Custom.
TableFootnoteNumberCustom
If Custom is specified in TableFootnoteNumberFormat, defines the custom value to use.
PageStartSide
Correlates to the 1st Page Side options in the Pagination dialog. Valid values are: FromFile, Next, Left, and Right.
PageDoubleSided
Correlates to the Pagination options in the Pagination dialog. Valid values are: 1 (double-sided) and 0 (single-sided).
PageRounding
Correlates to the Before Saving & Printing options in the Pagination dialog. Valid values are: DeleteEmpty, MakeEven, MakeOdd, and NoChange.

GeneratedFile-<mapelemtype> Section

A GeneratedFile-<mapelemtype> section should be included for each generated file to be included in the book.

ComponentType
Specifies the type of generated file to create for this map element. Valid values are:
  • Toc - Table of contents
  • ListFigure - List of figures
  • ListTable - List of tables
  • ListPara - Elements and paragraphs
  • ListParaAlpha - Elements and paragraphs (alphabetical)
  • ListMarker - List of markers
  • ListMarkerAlpha - List of markers (alphabetical)
  • ListReferences - List of references
  • ListFormat - List of formats
  • IndexStandard - Standard index
  • IndexAuthor - Index of authors
  • IndexSubject - Index of subjects
  • IndexMarker - Index of markers
  • IndexReferences - Index of references
  • IndexFormats - Index of formats
NumTags
Specifies the number of “tags” (paragraph style names or marker types) to be included in this generated file. For each tag provide a numbered entry starting with 1 and extending to the value specified in NumTags.

IncludeFiles Section

An IncludeFiles section is used to include FM binary (.fm) files in a generated book.

Entries in the IncludeFiles section specify the position and file name of the included file, where the file name is relative to the book file. The key specifies the position and the value specifies the file name. This section can contain multiple entries to add multiple files, just make sure that the “position” values are always unique, and the files are ordered from the lowest position to the highest.

IncludeFileTypes Section

An IncludeFileTypes section is optionally included (if the IncludeFiles section is used) to define the “mapelemtype” values that are associated with the files listed in the IncludeFiles section.

Entries in the IncludeFileTypes section assign the specified mapelemtype values to the files defined by the “position” as used in the IncludeFiles section. The key specifies the position, and the value is the mapelemtype string. You can use values that match those that are map element types in DITA (such as “chapter” or “appendix”) and you can create your own values (such as “titlepage”). Be sure to define the NumberingFirst and NumberingDefault sections as needed to assign numbering and pagination values to these mapelemtype values.