TOC

  • 2 minutes to read

TOC

Non-MailMerge field

{ TOC [ switches ] }

 

  • Without switches the table of contents is built upon styles with set outline levels. Outline levels assigned to individual paragraphs are disregarded unless the \u switch is specified.
  • \b Includes entries only from the portion of the document marked by the bookmark named by text in this switch’s field-argument.
  • \h Inserts table of contents entries as hyperlinks.
  • \n “LEVELSTART-LEVELEND”Omits page numbers from the table of contents. Page numbers are omitted from all levels unless a range of entry levels is specified. For example, { TOC \n 1-1 } omits page numbers from level 1.
  • \u Uses the applied paragraph outline level.
  • \o “LEVELSTART-LEVELEND” Builds a table of contents from paragraphs with specified outline levels. For example, { TOC \o “1-3” } lists only paragraphs with outline levels 1 through 3.
  • \t “STYLE,LEVEL, STYLE,LEVEL,…”Builds a table of contents from paragraphs formatted with specified styles. For example, {TOC \t”Title,1,subtitle,2,customtitle,3”} builds a table of contents from paragraphs formatted with the styles “Title”, “subtitle” and “customtitle”. The number after each style name indicates the entry level corresponding to that style.
  • \c “SEQ FIELD IDENTIFIER” Builds a table of contents from items that are numbered by a SEQ. The sequence identifier designated by text in this switch’s field-argument shall match the identifier in the corresponding SEQ field.
  • \s “SEQ FIELD IDENTIFIER” For entries numbered with a SEQ field, adds a prefix to the page number. The prefix depends on the type of entry.
  • \d “SEPARATOR SYMBOL”When used with \s, defines the separator between sequence and page numbers. The default separator is a hyphen (-).
  • \f “TC IDENTIFIER” Builds a table of contents from TC. TC field identifier must exactly match the text in this switch’s field-argument.
  • \l “LEVELSTART-LEVELEND” Used with \f key. Includes TC fields that assign entries to one of the specified levels.