Office 2007 - How to add new style for TOC entry

D

DJM

In Word 2003, you could insert a TOC based on custom styles you had made and
for each TOC entry, you could setup your own custom style so that you can
control what font, etc each entry in the TOC has
But in Word 2007, the Create new style for the TOC has the New button grayed
out.

Would there be a way to use the custom styles to control the appears of the
TOC in Word 2007?
 
S

Stefan Blom

What you are describing are two separate things. You can certainly have Word
look for custom styles when building the TOC. Any style in the document can
be specified (you can even specify built-in headings, to override their
default TOC levels).

However, you cannot add a *TOC level*; these are limitied to nine. What you
can do is change the formatting of the built-in TOC 1--TOC 9 styles (these
determine the formatting of TOC entries).

You can add a style to the be included in the TOC via the Table of Contents
dialog box. In the dialog box, click the Options button, and type a level for
the style to be included (in the "Available styles" list); see
http://sbarnhill.mvps.org/WordFAQs/TOCTips.htm.

For an existing TOC, just modify the TOC field code to include the \t switch
(see http://sbarnhill.mvps.org/WordFAQs/TOCTips.htm).

You can modify the TOC styles via the Table of Contents dialog box. Click
the Modify button. For details, see
http://sbarnhill.mvps.org/WordFAQs/TOCTips.htm.
 
D

DJM

Stefan - thank you for the links and answers. Looks like I will have to
rebuild in Word 2007 and that it does not have a feature that was available
in Word 2003.
Just to clarify for others who may run into the same issue:
In Word 2003, you could have customized TOC entry styles in addition to
doing the following in the Table of Contents dialog box:
1) Set table leader and select formats (from template)
2) Click Options button and select how to build the TOC, from Styles,
Outline levels, or Table entry fields; and select TOC levels and at what
level number to show them.
3) Click Modify and select the appropriate style for the table entry.
- it was here that you could create NEW and use a style you had created
(the company has specific text styles for the TOC entries as well as for the
document Headers, text, pictures, and so on)
- Also, you could select the entry style and click Modify, to setup tab
leaders, fonts, and spacing among other things.
- what you did was setup Normal to have these styles; Then setup templates
with some modifications based on Normal so that the styles would carry
through but some templates would have a few different styles

=== Thank you again for your topic breakout with links.
 
D

Dawn Crosier, Word MVP

You can still do that in Word 2007, however the command is not easily
recognized.

On the References Tab, select the Table of Contents Command. From there,
select "Insert Table of Contents". The older TOC dialog box will open
allowing you the ability to modify each of the TOC Styles, as well as
set the Options to include marked entries or change the styles
associated with a TOC Level.

Hope that helps.

--
Dawn Crosier
Microsoft MVP
"Education Lasts a Lifetime"
This message is posted to a newsgroup. Please post replies and questions
to the newsgroup so that others can learn as well.




Stefan - thank you for the links and answers. Looks like I will have to
rebuild in Word 2007 and that it does not have a feature that was available
in Word 2003.
Just to clarify for others who may run into the same issue:
In Word 2003, you could have customized TOC entry styles in addition to
doing the following in the Table of Contents dialog box:
1) Set table leader and select formats (from template)
2) Click Options button and select how to build the TOC, from Styles,
Outline levels, or Table entry fields; and select TOC levels and at what
level number to show them.
3) Click Modify and select the appropriate style for the table entry.
- it was here that you could create NEW and use a style you had created
(the company has specific text styles for the TOC entries as well as for the
document Headers, text, pictures, and so on)
- Also, you could select the entry style and click Modify, to setup tab
leaders, fonts, and spacing among other things.
- what you did was setup Normal to have these styles; Then setup templates
with some modifications based on Normal so that the styles would carry
through but some templates would have a few different styles

=== Thank you again for your topic breakout with links.


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.4/1189 - Release Date:
12/18/2007 9:40 PM
 
S

Stefan Blom

Maybe I misunderstood your question. You can certainly set the same options
as in Word 2003, but, as Dawn pointed out in her message, (some of) the
steps are a bit different in Word 2007.

To display the equivalent of the old Index and Tables dialog box (for TOC
creation), click the References tab | Table of Contents | Insert Table of
Contents. As in previous versions, the dialog box has an Options button and
a Modify button.

To specify how to build the TOC (from styles, TC fields, and/or TOC levels),
click the Options button; this displays the Table of Contents Options dialog
box.

To change the TOC styles, click the Modify button. After you have selected a
TOC style, click Modify. You'll see the Modify Style dialog box. Note that
in order to add a modified style to the attached template, click the "New
documents based on this template" option (which replaces "Add to template"
of Word 97-2003).

--
Stefan Blom
Microsoft Word MVP


in message
 
J

J Weir

Hi - another question for you...

I am setting up templates and need to provide bith a landscape and a
portrait table of contents - I suspect I will need to create two different
templates as the tabs for the TOC styles need to be different.

Is that the case or iis there something I have missed?

Thanks
 
S

Suzanne S. Barnhill

Not necessarily. The style definitions for the TOC styles do not include the
right-aligned tab stop for the page number. This tab stop is set dynamically
(at the current right margin) when the TOC is generated. If your template
will include a dummy TOC, then yes, you'll need two templates, but if it
includes only the styles, then the tab setting alone won't be an issue.

But if your document can be used in either portrait or landscape
orientation, it would probably be wise to create two templates anyway.
Although the new "alignment tabs" can be used to adjust the header/footer
automatically, there are still other things you might want to change between
one orientation and the other.
 
J

J Weir

Hi,

Thanks for your post.

I have just posted another question but will add it here too (I had
forgotten this thread (and am having trouble finding posts))

I did get the TOC working in both portrait and landscape orientation but now
the alignment of the page numbers is all over the place. I am trying to
retrace my steps - it may be linked with adding the TOC as a quick part
(Word 2007) -- though I have had the same problem with standard plain
documents.

Do you have any ideas/help? Thanks Judiht
 
S

Suzanne S. Barnhill

As I mentioned in the other thread, in Word 2007 you have the option of
using the new alignment tab instead of a right tab for the page number.
 
J

J Weir

I have looked in the tab dialog box and in help but can't find any reference
to teh alignment tab.

What ribbon tab/goup/cammand should I use?

Thanks for your patience. Judith
 
S

Stefan Blom

"Alignment tab" refers to a new kind of tab stop, that you can set relative
to the right margin. Add the Insert Alignment Tab command to the Quick
Access Toolbar. Note that for this type of tab to work, the document must be
saved in Word 2007 format.

--
Stefan Blom
Microsoft Word MVP


in message
 
S

Suzanne S. Barnhill

To add to what Stefan has said, this new type of tab stop is not documented
in the offline Help at all, and it isn't easy to find at Office Online
because the article that addresses it
(http://office.microsoft.com/en-us/word/HA102341341033.aspx, coauthored by
Office MVP Beth Melton) is ostensibly (and primarily) about headers and
footers. But if you use Google to search for "Word 2007 alignment tab stop,"
you can come up with articles such as
http://blogs.techrepublic.com.com/msoffice/?p=344 that discuss it
exclusively.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top