Share via

Multiple list of tables (using TOC) in a single document?

Anonymous
2011-01-15T13:47:19+00:00

Hello, I know this looks like a long question but really it is a simple question...I'm just posting all the details to be sure everyone understands exactly what I'm trying to do.  Thank you very much in advance!!!

I currently have Word 2003 and I have a list of tables AND a list of figures in my document.

I used the Insert->Reference->Caption feature to insert all of the captions for all of my figures and tables.

I have tried a few different ways of generating the two lists (e.g., using different switches, etc), but currently I have:

{TOC \c "Table"} to generate the list of tables

and

{TOC \c "Figure"} to generate the list of figures

This produces something like:

Table 1: some table name........4

Table 2: another table name......6

etc

for the list of tables and something like:

Figure 1: some figure name......6

Figure 2: another figure name.....8

etc

for the list of figures.

What I really want is to remove the repeated "Table" and "Figure" text from the TOC's so that they instead look like this (using the list of tables as the example):

1: some table name........4

2: another table name......6

etc

Now, I can achieve the first part of this by using the \a switch instead so that I have

{TOC \a "Table"} for the list of tables (and I use "Figure" to generate the list of figures).

So now, for the list of tables, for example, I get something like:

A table name here.....1

Another table name here....3

etc.

Now, here is the problem.  I thought I should be able to simply edit the style that Word uses in the TOC so that I add numbering to it and that should give me what I want, and when I do I get something like:

1.  A table name here.....1

2.  Another table name here...3

which is great, and exactly what I want, but then my list of figures that immediately follows my list of tables is also automatically numbered (which is great too) EXCEPT the numbering is continuous and carried over from my list of tables.  So, I have 30 tables in my document and the first entry in my list of figures then looks like:

31: First figure name is here.....6

I want the list of figures numbered starting at 1, just like with the list of tables.

The problem, as I see it, is that I modify the style word that word uses for each entry in the list of tables/figures.  If I click Edit Field, then TOC button, and click the Modify button, I see that word uses the style named "Table of Figures,ListI Item

  • Tables".  And this is the only style listed in the box.  The New... and Delete buttons are both greyed out so that I cannot create a new style--I think this would solve it, if I could just create a new style and use one for the list of tables and one for the list of figures...but I cannot do that because there is no way that I see of adding a new style and making word see it.  I mean, I have many different styles in my doc that I've created, but as I said, the built-in one mentioned above is the only one Word seems to want me to have for list of tables/figures.  When I view either of the list (of tables or figures), Word has this same style name (and only this style) listed in the box.  I can change the name of the style in the box, but then of course this same style is just listed for my other list when I go look edit its field code.

So, is there a way to actually choose which style Word applies  to list of tables/figures (like, a way to add a second one)?

Or, is there another way to generate the list of tables and list of figures that I'm not seeing that would achieve what I want, which is to have each entry in the list of tables numbered from 1 through n (n is number of tables), and then my list of figures start numbering at 1, instead of n+1?

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Anonymous
    2011-01-18T14:41:48+00:00

    I finally found a pretty simple solution to this very annoying problem.

    And using my approach, you can put a table of tables, figures, authorities, or anything else you want in the same document and have each table numbered starting at 1.

    Create each of your tables using the \a switch with the TOC field code.  Consult standard documentation for more details on the \a switch, but I've found the info to be incorrect in several places, including several places on Microsoft's own website...surprise, surprise.

    Despite what the documentation says, you can't use {TOC \a tables} or {TOC \a figures} to generate tables...it doesn't do anything for me when I try this in 4 different versions of Word, including 2010.

    What does work for me is using:

    {TOC \a "Table"} to generate my list of tables and

    {TOC \a "Figure"} to generate my list of figures.

    Using the \a switch gives you a list that does not include the repeated "Table x:" or "Figure y:" all the way down the generated table.

    You can also create your own label type, by using Insert->Reference->Caption and on the dialog box click the New Label button.  Then enter whatever labe you want to have in each caption you enter.  For example, say that you want to designate and label "supplemental" figures as well as regular figures.  Create a new label named "Supplemental Fig."  Then anytime you want to insert a caption for such a figure, use Insert->Reference->Caption and then choose Supplemental Fig from the drop down box.  Word keeps up with autonumbering the labels for you when you insert them, just like with Tables, Figures, etc.

    But now, you could generate a list of supplemental figures at the beginning of your document by using:

    {TOC \a "Supplemental Fig"}

    Note that if you name the label something that contains "Figure" (e.g., Supplemental Fig), then later if you use a {TOC \a "Figure"} field code, you will get a list of ALL labels that contain the text "Figure" so keep this in mind.

    So using \a, you can generate a list of any items that are numbered using a SEQ field.  The string delimited value after the switch specifies a piece of text that is present in all of the labels you are interested in.  You can also create your own labels using any SEQ value you have defined--you are not limited to the captions that Word inserts for you.

    Ok, so finally, say you have all your tables generated (a list of tables and figures for example).  Modify the style Word applies to the list--which will be named Table of Figures by default.  Add numbering to the style using your desired prefs.  Now, this will numbering all the items continuously throughout all of your tables.  For m tables and n total figures in your document, the first list of tables will be numbered 1 through m and the second list of figures will be numbered m+1 through m+n.

    Now goto the first item in the list of figures and click on the first NUMBER in the list--it should turn grey.  Now right click, and click Restart Numbering.  The value changes to 1.  Repeat for any other tables that follow that you want to be numbered correctly (that use that common style Table of Figures).  So this is how you can reset all the numbering for your lists so that each list is numbered starting at 1.  Of course, this will not hold through field updates, but that's easy to work around.

    So what I do is the following.  When I get ready to print my document, I Edit->Select All text.  Then right click on it, and click Update Field, so that all fields in the entire document will be updated.  At each prompt asking to update the entire table or page numbers only, choose to update the entire table.  When finished, your entire document is updated.  Now go to the first item in each of your generated tables (tables that share that same style, Table of Figures) and reset the numbering to start at 1.  Now click Print.  At each prompt asking to update the tables again, just click Cancel or choose the page numbers only option--everything is updated anyway because you just did it.  (If you click the update entire table option, your numbering will get reset across the lists)

    This works like a charm for me.  I know this is more of a work-around than an absolute solution, but this method is much faster and less tedious than locking the tables and editing each one by hand, doing find/replace to remove redundant "Table x:" labels, etc.  I also created my own macro by writing VBA code and then including a field code with a MACROBUTTON field code that called my macro.  In the macro, I wrote code to search through my document, gather a list of alld desired label types, and then create the list myself without including the repeated "Table x:" entries.  Then I set the fieldName.result value to a formatted string that I created by concatenating all the list values together.  Everything worked except the final formatting in the documeting--the tab leaders did not work correctly.

    I truly hope this helps someone out there.  This is one of the most frustrating things I've ever dealt with in Word.

    1 person found this answer helpful.
    0 comments No comments

10 additional answers

Sort by: Most helpful
  1. Suzanne S Barnhill 277.1K Reputation points MVP Volunteer Moderator
    2011-01-16T16:56:21+00:00

    Rats! I didn't know that. It seems we are now thrown back on TC fields as the only solution. You'd think this would be such a basic requirement that MS would have dealt with it long ago, but I guess the redundancy of Table 1, Table 2, etc., in a list of tables may be less of a problem than going to the trouble of creating a TOC without the labels.

    0 comments No comments
  2. Stefan Blom 338.7K Reputation points MVP Volunteer Moderator
    2011-01-16T13:58:15+00:00

    The \a switch only works when you generate the table of figures from caption labels. It cannot be used with a style-based table of figures.

    0 comments No comments
  3. Anonymous
    2011-01-16T06:13:46+00:00

    Thank you very much for your help, Suzanne!

    This did MOSTLY answer my question, but...I already had my own styles defined for my figure and table captions: "Caption - Figure" and "Caption - Table"

    Anyway, I see what you mean about generating a TOC and modifying everything as you said above--I decided to use the TOC 7 style for my list of tables (in case I decide to tinker with how many levels I show in main table of contents at the beginning of the document).

    Well, I have:

    { TOC \t "Caption - Table,7" } for my field code of the list of tables.  I modified the TOC 7 style as you said to add numbering.

    So now I still get something like:

    1.     Table 1: Some table caption here......4

    2.     Table 2: Some table caption here......8

    etc.

    This is exactly what I want, EXCEPT the full caption is still displayed and I don't want all the redundant "Table x:" parts listed.  And the problem is, adding the \a switch as you suggested makes it revert back to a regular table of figures and it reverts back to what I had before--I lose the numbering I assigned (because it's now using Word's built in style named "Table of Figures,List Item - Tables") and I just have a list of the full captions, including the repeated "Table x:".  I tried adding the \a switch both before the \t switch, and after the arguments for the \t switch, and both produce the same result--Word creates a regular list of figures, just as it was doing before when I used the \a switch--I see everything listed in the field code, it's just Word apparently ignores the /t and it's arguments.

    The good news is my other TOC (the one for list of figures) is not being changed as I tinker with the TOC for my tables.  This is great!  (Before your help, whatever changes I made to the list of tables was instantly carried over to the list of figures as well, because Word uses the same style for both, that "Table of Figures, List Item - Tables" style. 

    So if I figure out this last problem of the full caption still being shown, I will just repeat the same procedure for my list of figures, except use the built in TOC 8 style.

    So, am I missing something obvious using the \a switch?  It doesn't work for me!

    Thank you again, you've been so much help already!

    0 comments No comments
  4. Suzanne S Barnhill 277.1K Reputation points MVP Volunteer Moderator
    2011-01-15T14:28:36+00:00

    I considered this when you posted this question before, and I don't see any way around this except as follows:

    1. Change the style used for either the figure captions or the table captions. You can do this without affecting the caption label itself (which is a SEQ field), and you can create a new style that looks identical to the Caption style, or you might find you prefer using different formatting for figure and table captions. For the purposes of this discussion, let's say you will apply a new style to the table captions.
    2. Create the Table of Figures as before, adding numbering to the Table of Figures style.
    3. For the table captions, create a TOC based on the style you used for them. To do this, use the Table of Contents tab of the Index and Tables dialog.
    4. For this TOC you will use an otherwise unused TOC style. So if your main table of contents has three levels, say, you could use TOC 4 for the List of Tables, so choose 4 as the number of levels to display in your TOC.
    5. Click the Options button and, in the Table of Contents Options dialog, delete the numbers beside all the styles that show them (this should be Headings 1-4, Title, and Subtitle. Then type 4 beside the style you created for your table captions. OK to close.
    6. Now click Modify, choose the TOC 4 style, click Modify..., and apply your desired numbering as before. Click OK to close.
    7. Click OK to close the Index and Tables dialog.

    I think that will give you the rough outlines of a solution. You'll need to edit the TOC field to add the \a switch to omit the caption labels.

    In case it isn't clear from the above, the reason you have to create a new style for the table captions is that a TOC (unlike a TOF) doesn't consider caption labels; if you base a TOC on the Caption style, it will include *all* captions, so you'd have figure and table captions mixed. Additionally, you can base a TOF on any style, but it will still use the Table of Figures style, which is why you have to use a TOC instead of a TOF.

    0 comments No comments