• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 908
  • Last Modified:

Page numbering in TOC

I have a document that includes Annexes and Appendices to annexes.

In the header of the Annex's I have put the page numbers in the format e.g. 1-A-1 which breaks down into Chapter 1 Annex 1 Page 1.

I have used the cross-reference function to automate the Chapter and Annex numbers

What I would like to know is how can I include these page identifications in a table of contents. My current table of contents shows the page numbers as just single numbers (e.g. 1).  If I use page formatting to include chapter numbers then I get 1-1 which is not what I want

Thanks in advance

0
mutrus
Asked:
mutrus
  • 2
  • 2
1 Solution
 
Miles_stylusCommented:
you can build a table of contents from any reference - you have to mark it and then build a customs TOC field (insert field dailogue.)

The help system is very good on this, I can dig out the relevant sections if you want.

Something to note is that you may have to have two TOC - one for the normal page numbers up to the start of the annexs and then one specifically for the annexs - again the help system will tell you how to do this or I can if needs be.

HTH

Miles
0
 
mutrusAuthor Commented:
thanks - I looked in the Help but could not find it.

Can you dig them out please
0
 
Miles_stylusCommented:
Mutrus.

Table of contents field switches:
Field codes: TOC (Table of Contents) field
{ TOC [Switches ] }

Builds a table of contents. The TOC field collects entries for a table of contents using heading levels, specified styles, or entries specified by TC (Table of Contents Entry) fields. Microsoft Word inserts the TOC field when you use the Index and Tables command (Insert menu, Reference submenu).

Note   If the table of contents created by the TOC field affects the pagination of the document, you may have to update the field again to reflect the correct page numbers.

Switches

\a Identifier
Lists items captioned with the Caption command (Insert menu, Reference submenu) but omits caption labels and numbers. The identifier corresponds to the caption label. For example, although a caption on page 12 is "Figure 8: Mercury", the field { TOC \a figures } displays entries as "Mercury............12".
Use the \c switch to build a table of captions with labels and numbers.

\b BookmarkName
Collects entries only from the portion of the document marked by the specified bookmark.
\c "SEQIdentifier"
Lists figures, tables, charts, or other items that are numbered by a SEQ (Sequence) field. Word uses SEQ fields to number items captioned with the Caption command (Insert menu, Reference submenu). SEQIdentifier, which corresponds to the caption label, must match the identifier in the SEQ field. For example, { TOC \c tables } lists all numbered tables.
\f EntryIdentifier
Builds a table from TC fields. If EntryIdentifier is specified, the table is built only from TC fields with the same identifier (typically a letter). For example, { TOC \f t } builds a table of contents from TC fields such as { TC "Entry Text" \f t }.
\h Hyperlinks
Inserts TOC entries as hyperlinks.
\l Levels
Builds a table of contents from TC fields that assign entries to one of the specified levels. For example, { TOC \l 1-4 } builds a table of contents from TC fields that assign entries to levels 1-4 in the table of contents. TC fields that assign entries to lower levels are skipped.
\n Levels
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 3-4 } omits page numbers from levels 3 and 4. Delete this switch to include page numbers.
\o "Headings"
Builds a table of contents from paragraphs formatted with built-in heading styles. For example, { TOC \o "1-3" } lists only headings formatted with the styles Heading 1 through Heading 3. If no heading range is specified, all heading levels used in the document are listed. Enclose the range numbers in quotation marks.
\p "Separators"
Specifies the characters that separate an entry and its page number. For example, the field { TOC \p "—" }, with an em dash, displays a result such as "Selecting Text—53." The default is a tab with leader dots. You can use up to five characters, which must be enclosed in quotation marks.
\s Identifier
Includes a number such as a chapter number before the page number. The chapter or other item must be numbered with a SEQ field. Identifier must match the identifier in the SEQ field. For example, if you insert { SEQ chapter } before each chapter heading, { TOC \o "1-3" \s chapter } displays page numbers as 2-14, where "2" is the chapter number.
\d "Separator"
When used with the \s switch, specifies the number of characters that separate the sequence numbers and page numbers. Enclose the characters in quotation marks. Word uses a hyphen (-) if no \d switch is specified. In the table of contents generated by { TOC \o "1-3" \s chapter \d ":" }, a colon (:) separates chapter numbers and page numbers — for example, "2:14."
\t "Style,Level, Style,Level,..."
Builds a table of contents from paragraphs formatted with styles other than the built-in heading styles. For example, { TOC \t "chaptertitle,1, chapterhead,2" } builds a table of contents from paragraphs formatted with the styles "chaptertitle" and "chapterhead." The number after each style name indicates the table of contents entry level that corresponds to that style.
You can use both the \o switch and the \t switch to build a table of contents from built-in heading styles and other styles.

\u
Builds a table of contents by using the applied paragraph outline level.
\w
Preserves tab entries within table entries.
\x
Preserves newline characters within table entries.
\z
Hides tab leader and page numbers in Web layout view.

TC Fields:
Field codes: TOC (Table of Contents) field
{ TOC [Switches ] }

Builds a table of contents. The TOC field collects entries for a table of contents using heading levels, specified styles, or entries specified by TC (Table of Contents Entry) fields. Microsoft Word inserts the TOC field when you use the Index and Tables command (Insert menu, Reference submenu).

Note   If the table of contents created by the TOC field affects the pagination of the document, you may have to update the field again to reflect the correct page numbers.

Switches

\a Identifier
Lists items captioned with the Caption command (Insert menu, Reference submenu) but omits caption labels and numbers. The identifier corresponds to the caption label. For example, although a caption on page 12 is "Figure 8: Mercury", the field { TOC \a figures } displays entries as "Mercury............12".
Use the \c switch to build a table of captions with labels and numbers.

\b BookmarkName
Collects entries only from the portion of the document marked by the specified bookmark.
\c "SEQIdentifier"
Lists figures, tables, charts, or other items that are numbered by a SEQ (Sequence) field. Word uses SEQ fields to number items captioned with the Caption command (Insert menu, Reference submenu). SEQIdentifier, which corresponds to the caption label, must match the identifier in the SEQ field. For example, { TOC \c tables } lists all numbered tables.
\f EntryIdentifier
Builds a table from TC fields. If EntryIdentifier is specified, the table is built only from TC fields with the same identifier (typically a letter). For example, { TOC \f t } builds a table of contents from TC fields such as { TC "Entry Text" \f t }.
\h Hyperlinks
Inserts TOC entries as hyperlinks.
\l Levels
Builds a table of contents from TC fields that assign entries to one of the specified levels. For example, { TOC \l 1-4 } builds a table of contents from TC fields that assign entries to levels 1-4 in the table of contents. TC fields that assign entries to lower levels are skipped.
\n Levels
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 3-4 } omits page numbers from levels 3 and 4. Delete this switch to include page numbers.
\o "Headings"
Builds a table of contents from paragraphs formatted with built-in heading styles. For example, { TOC \o "1-3" } lists only headings formatted with the styles Heading 1 through Heading 3. If no heading range is specified, all heading levels used in the document are listed. Enclose the range numbers in quotation marks.
\p "Separators"
Specifies the characters that separate an entry and its page number. For example, the field { TOC \p "—" }, with an em dash, displays a result such as "Selecting Text—53." The default is a tab with leader dots. You can use up to five characters, which must be enclosed in quotation marks.
\s Identifier
Includes a number such as a chapter number before the page number. The chapter or other item must be numbered with a SEQ field. Identifier must match the identifier in the SEQ field. For example, if you insert { SEQ chapter } before each chapter heading, { TOC \o "1-3" \s chapter } displays page numbers as 2-14, where "2" is the chapter number.
\d "Separator"
When used with the \s switch, specifies the number of characters that separate the sequence numbers and page numbers. Enclose the characters in quotation marks. Word uses a hyphen (-) if no \d switch is specified. In the table of contents generated by { TOC \o "1-3" \s chapter \d ":" }, a colon (:) separates chapter numbers and page numbers — for example, "2:14."
\t "Style,Level, Style,Level,..."
Builds a table of contents from paragraphs formatted with styles other than the built-in heading styles. For example, { TOC \t "chaptertitle,1, chapterhead,2" } builds a table of contents from paragraphs formatted with the styles "chaptertitle" and "chapterhead." The number after each style name indicates the table of contents entry level that corresponds to that style.
You can use both the \o switch and the \t switch to build a table of contents from built-in heading styles and other styles.

\u
Builds a table of contents by using the applied paragraph outline level.
\w
Preserves tab entries within table entries.
\x
Preserves newline characters within table entries.
\z
Hides tab leader and page numbers in Web layout view.

Mind you I'm not convinced that this will solve your problem as they above tends to deal with identifying things you want to include rather than playing with the numbering...
0
 
mutrusAuthor Commented:
Had enough information in the reply for me to search further. Using above and also KB article 290953 should be enough

Thanks
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now