Results 1 to 9 of 9
  1. #1
    5 Star Lounger
    Join Date
    Aug 2006
    Posts
    784
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Tables of Contents (Word 2003)

    Dear friends,

    Can anyone help me with creating Tables of Contents? I have two separate documents, each with a manually inserted table of contents (through

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Tables of Contents (Word 2003)

    Welcome to Woody's Lounge.

    You want 3 TOCs in your combined document: a TOC for what was originally the first document, a TOC for what wat originally the second document, and a TOC containing only a reference to the other two TOCs. The TC fields for these three TOCs must each use a different table identifier in the f switch, for example A for document 1, B for document 2, and C for the combination TOC (these letters are arbitrary, as long as they're unique). You must use the same table identifiers in the f switch of the three TOC fields.

    I have attached a simplistic example. Line spacing has been increased to fluff up the document. Press Alt+F9 to see the field codes and to hide them again.
    Attached Files Attached Files

  3. #3
    5 Star Lounger
    Join Date
    Aug 2006
    Posts
    784
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tables of Contents (Word 2003)

    Hi Hans,

    Thanks for your suggestions. The problem is that, even when I go ahead and manually set the table identifiers to tables of contents to A, or B, or other letters, when I go ahead and insert the actual table of contents, the contents of table of contents C show up for ever table!

    Tables A and B never show up, and if I don't have anything identified by "C," I get the following error message: "Error! No table of contents entries found."

    I am attaching an example. In this example, even though I manually put entries into three different tables of contents identifiers (A, B, C), only C shows up, every time. All three tables of contents are identical!

    What am I doing wrong?

    Thanks!

    John
    Attached Files Attached Files

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Tables of Contents (Word 2003)

    Your TOC fields don't specify the table identifier - there is no letter after the f switch (see screenshot). Instead of like { TOC f h z }, the field codes should look like { TOC f A h z }.

    I'll attach your document with table identifiers in the TOC fields in my next reply.
    Attached Images Attached Images
    • File Type: png x.png (3.3 KB, 0 views)

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Tables of Contents (Word 2003)

    Here is your document. Note that you have TC fields with table identifier B in both Treatise 1 and Treatise B, so the middle TOC probably contains more than you intended.
    Attached Files Attached Files

  6. #6
    5 Star Lounger
    Join Date
    Aug 2006
    Posts
    784
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tables of Contents (Word 2003)

    Hi Hans,

    You said that my field codes should look like { TOC f A h z }.

    First off, I am not seeing those field codes in either your document or my document. In both our documents, the field codes look like { TOC "Treatise One" f A 1 "1" }

    In fact, I see nothing in either your document or my document that looks like, { TOC f A h z }. Where are you seeing that field code? How did you get that to show up on your screen shot? In Word, I tried pressing the Show/Hide Formatting button to reveal that field code, but I didn't see it anything, even in your document.

    Thanks!

    John

  7. #7
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Tables of Contents (Word 2003)

    Show/Hide Formatting relates to the display of spaces, tabs, paragraph marks etc., not to field codes. As I mentioned in <post:=591,496>post 591,496</post:> higher up in this thread, you can press Alt+F9 to show field codes, and later to hide them again.

  8. #8
    5 Star Lounger
    Join Date
    Aug 2006
    Posts
    784
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tables of Contents (Word 2003)

    Well that's an interesting funciton that I never heard of before. So you mean that I would have to press alt + F9 and manually insert the changes everytime? Is that how it works?

    I never noticed how you can make field codes show up with alt + F9. You mean they have been there the whole time without my knowledge?

    I finally did fix up my table of contents.

    I guess all this time, since I never put the table identifier after the "f", Word was just assuming that I wanted the entries identified by "C," since, after all, Word was always just sticking in those entries every time, including in the first example I sent you, where every table fo contents went straight to "C"?

    Thank you! You have made my document coherent!

    John

  9. #9
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Tables of Contents (Word 2003)

    When you insert a table of contents using Insert | Reference | Index and Tables..., Word actually creates a TOC field. So yes, the field codes have been there all the time. Unfortunately, this dialog doesn't provide a way to specify a table identifier, so you have to use Alt+F9 to display field codes and insert the f Something switch manually.
    If you use Insert | Field..., select TOC and click Field Codes, then Options, you can add switches, among which /f, but the description leaves much to be desired.

    See the overview of Keyboard shortcuts for working with fields (Word).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •