(pop music)
- [Gini] One of the benefits of using styles in
reports and other longer documents is you can quickly
and easily create dynamic tables of contents.
The same power that lets us see
are all of these different headings
in the navigation pane
can be used to generate a table of contents for us.
I've added a cover page to our document.
And now I want to insert
a blank page for table of content.
So, Control + Enter will get me a blank page.
(computer mouse clicking)
And I'm going to go to references, table of contents.
And I really have several choices.
The difference between automatic table one and table two is
one says contents and two says table of contents.
Then you can create a manual table of contents
but I'm going to choose automatic table one.
And there is my table of contents, just like that.
And if I make any modifications to my document,
for example if we decide that
we'd like to have our commercial installation
start on a new page.
So, we do this.
Hold Control and hit Enter to add a new page.
Now, commercial installations is starting on page four
of six,
but my table of content says it starts on page three,
but that's okay.
Click in the table of contents, choose update table.
And you can either update the page numbers only
if all you've done is move items.
Or if you actually have changed the names
of some of the headings, you could update the entire table.
If you're not sure, just update the entire table.
And now it's automatically renumbered for me.
The assumption behind my standard table of contents
is that I'm using heading one, heading two, heading three,
heading four styles for my table of contents,
or in our case, styles that are based on those.
But what if you have some styles
that you want to use that aren't heading one and heading two
but you still want to use them in the table of contents?
Maybe you have a document where the styles were created
from scratch and they're not called K head one
or K head two.
They're called My heading one.
And they really aren't recognized as heading ones.
Don't worry about that.
In that case, you're just going to have an extra step.
You're going to go to the table of contents.
You're going to go into your table of contents.
(computer mouse clicking)
And go to custom table of contents.
And you can do this even after it's created.
And click the options button and it says,
build the table of contents from styles.
And here I'm saying heading ones, twos, heading threes,
you can use them,
and they'll come in at level one, two and three.
But notice also that here are our K heads.
And if these were not listed, if they just didn't show up
and I created my table of contents,
I'd be missing lots of stuff.
Therefore, what I would need to do
in my custom table of contents
is go back into the options and go down to my K heads
and say, well if it's a K head one, make it a level one.
If it's a K head two, make it a level two.
(computer mouse clicking)
And then my table of contents will be correct.
There are some other choices that you can make
in that custom table of contents dialogue.
You can choose what kind of a tab leader you want to have.
You can even modify the styles that are used
in the table of contents, which is pretty slick.
You just go to modify and for TOC level one
and saying a body at 11 point.
But if you wanted to have something different,
you can just modify the style
that is being used for the level one of a table of contents,
the level two, the level three and so on.
(computer mouse clicking)
Even though it's taken me a few minutes
to talk to you about how to create a table of contents,
we can actually create it really in about a minute or less.
So if I remove my table of contents here,
let's do it one more time so you remember how easy this is.
You go to references, table of contents,
choose your table of contents, and you're all done.
And if you need to update it, simply click in it
and update either numbers or the entire table.
(upbeat music)