##### 17.12.2.1 Understanding WinHelp contents level numbers

In a WinHelp .cnt file, each heading line begins with a level number, 1 to 9, followed by the text to display. Each topic line includes the same, and adds an equals sign, followed by the reference string for the topic to be displayed. DITA2Go produces these lines for each format value in [HelpStyles] that starts with Topic and includes Contents. DITA2Go determines the type of line from the [HelpCntStyles] section where formatname=H for top-level headings, formatname=T2 for second-level topics, or formatname=B2 to create a second-level heading with a third-level topic of the same name immediately following:

    [HelpStyles]
    Heading 1=Topic Contents
    [HelpCntStyles]
    ; format = H (heading), T (topic), or B (both), + level (1..9), as in:
    ; Heading 2=B3 which creates both a level 3 head and a level 4 topic
    ; format V adjusts itself to be either T or B, depending on subheads
    ; all formats here must be listed in [HelpStyles] with Contents set
    ChapName=H1
    Heading 1=B2

Previous Topic: 17.12.2 Specifying heading formats and levels for contents

Next Topic: 17.12.2.2 Listing topics for contents with and without subheadings

Parent Topic: 17.12.2 Specifying heading formats and levels for contents

Sibling Topics:

17.12.2.2 Listing topics for contents with and without subheadings

17.12.2.3 Using different names in contents for heading and topic

17.12.2.4 Renaming or eliminating the contents “Overview” topic

17.12.2.5 Referencing multiple help files from contents

17.12.2.6 Displaying contents targets in the main window