##### 17.12.2.2 Listing topics for contents with and without subheadings

Suppose you use the same format for topics with subheadings and for topics without subheadings. The possibilities include:

All “book” entries

All “page” entries

Mixed “book” and “page” entries

No subheadings? You get “page” entries

Force “book” entries

All “book” entries

To list all such topics as “books” in the contents file, assign to the format a B (“both”) level: one of [HelpCntStyles] properties B1 through B9. DITA2Go creates a “book” contents entry and a subordinate “page” entry for each.

All “page” entries

To list all such topics as “pages” in the contents file, assign to the format a T (“topic”) level: one of [HelpCntStyles] properties T1 through T9. DITA2Go creates a “page” contents entry for each.

Mixed “book” and “page” entries

To list topics without subheadings as “pages”, and topics with subheadings as “books”, assign to the format a V (“variable”) level: one of [HelpCntStyles] properties V1 through V9. You can adjust the level numbers to fit the way you use your headings; this might take a bit of experimenting to get the effect you want.

No subheadings? You get “page” entries

When you assign V1 through V9, DITA2Go determines whether the format should be a heading or a topic, based on the existence of subheadings. However, a defect in WinHelp causes V entries without subheadings to be treated as though they were T. For example, a chapter heading for a single-topic chapter would appear as a “page” entry under the preceding chapter.

Force “book” entries

To list topics without subheadings as “books” (for example, if you have a single-topic chapter), you must assign a B level to the heading format instead of V.

Previous Topic: 17.12.2.1 Understanding WinHelp contents level numbers

Next Topic: 17.12.2.3 Using different names in contents for heading and topic

Parent Topic: 17.12.2 Specifying heading formats and levels for contents

Sibling Topics:

17.12.2.1 Understanding WinHelp contents level numbers

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

Table of Contents • Index