- [Instructor] If you have a long document
with lots of sections, you may want to set up
a table of contents, and Word can automatically generate
a table of contents for you
if you have your document organized in a specific way.
Now first, in another video, we introduced styles.
And if I place my cursor on this line right here
and I go to the home ribbon,
I can see that that line has the heading one style
applied to it.
And if I go to this line and click on that,
I can see that line has the heading two style.
Now, of course, I redefined those styles
to have the exact formatting and colors that I want,
but by using the heading one, heading two,
and heading three styles,
I've also established the organization
that we need for this document.
Let's keep that in mind as we add the table of contents.
So I'm going to scroll in my document.
I want to put the table of contents
at the end of this first article.
I'm going to click to place my cursor there.
And why don't we go ahead and put in a page break.
So I'll go to the layout ribbon, to breaks,
and then choose a page break,
and then we've got a new, fresh start on this page
where we can insert the table of contents.
To do that, just place your cursor,
then go to the references ribbon, then to table of contents.
And in this case, I'm going to choose an automatic
table of contents.
And immediately, I have a full table of contents here,
and it even has accurate page numbers in it.
Now you can see that there are two levels to this table.
This line right here that says
connecting you to the latest technology,
that refers to a line on the first page
that has the heading one style.
And this next line refers to a line in my document
that has the heading two style.
I don't have anything marked with heading three,
but if I did, that would show up as
another level here as well.
And that's why those styles are so important
to making a table of contents.
If you don't use the heading one,
heading two, and heading three styles,
it would not be able to generate
the automatic table of contents like this.
Now, you can still make changes to your document.
For example, I'm going to go to this line here
and I'll go to the home ribbon
and let's just change the style on this line.
I'm going to switch it to the heading two style.
You can see, it changes the color
and the other formatting on that line,
but nothing has changed in my table of contents.
After you make changes in your document,
you can click anywhere in the table of contents,
and then you've got this update table button,
and you can click on that.
Now, when you add a significant amount of new content
to a document, everything will shift around
to different pages.
So there is an option to simply update the page numbers
without updating anything else.
But I do want to update everything,
so I'm going to choose update entire table.
And before I click OK,
I want you to keep an eye on this
team member spotlight line.
So when I click OK, we can see that line shifts.
That's because I changed that line here in my document
to have the heading two style,
and the table of contents has updated with that line move
to the level of other heading two lines.
Now, you can also manually edit the table of contents.
So let's go to this line here
and I can delete the text that it has here,
because I simply want this to say cover story.
So I can delete that and I can type in the text
that I actually want.
And I can even go to this line up here at the top
and I could change that.
Maybe I want this to actually say table of contents,
so you can manually make changes there.
You just need to be careful when you make manual changes.
Let's say you've made significant changes to the document
and then you want to come back here
and update the table of contents.
So you can click somewhere in the table of contents
and hit that update button.
And if you just update the page numbers,
it'll just update those numbers
without affecting anything else in the table of contents.
But if you update the entire table and click OK,
you can see it resets where I typed in the word cover story.
However, it did not reset the change that I made
to this title line, so it does not reset everything.
Okay, one more thing.
Let's remove this table of contents.
So click anywhere in the table of contents.
You can go to this menu and you can remove it.
And if you did not use the correct styles
to structure your document,
you're not completely out of luck.
You can place your cursor,
you can go to the references ribbon,
to that table of contents menu,
and you can choose a manual table of contents.
And that just gives you a pre-formatted table
with placeholder text, and you can type in
anything you want into it manually.
It's more work, but you could do it that way.