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
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » 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.
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
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
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.
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
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).
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications