• Tables of Contents (Word 2003)

    Author
    Topic
    #434346

    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

    Viewing 0 reply threads
    Author
    Replies
    • #1023747

      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.

      • #1023758

        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

        • #1023760

          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.

        • #1023761

          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.

          • #1023768

            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

            • #1023780

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

            • #1023869

              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

            • #1023888

              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).

    Viewing 0 reply threads
    Reply To: Tables of Contents (Word 2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: