Heading style problem

G

George

Hi all.

I want to create a heading that displays the following:
Chapter X
Name of the chapter

I want it to include a line break after inserting the numeration.
How is it possible? Is it going to appear well-formatted on the TOC?

TA.
 
S

Stefan Blom

First, set up numbering as described at
http://www.shaunakelly.com/word/numbering/OutlineNumbering.html. If
you want your heading to be centered, make sure to specify "Nothing"
for "Follow number with" in the Customize Outline Numbered List dialog
box.

If you want the text in the TOC to occupy a single line, all you have
to do is separate the "Chapter #" part and the chapter title with a
line break (press Shift+Enter to insert one). The line break will be
ignored by the TOC (unless you add the \x switch to the field code).

In the document:

Chapter #<line break>
Chapter title here

In the TOC:

Chapter # Chapter title here

Alternatively, if you don't want the "Chapter" part to be in the
TOC, use two styles: Heading 1 for the numbering and a custom style
for the title of the TOC. When you create the TOC, make sure to
exclude Heading 1 and add your custom style.

Note that if you do want the chapter number (but not the word
"Chapter") to be in the TOC you can then add numbering to the TOC 1
style, which is used by Word to add level one text in the TOC.

--
Stefan Blom
Microsoft Word MVP


in message
news:[email protected]...
 
S

Suzanne S. Barnhill

Alternatively, if you don't want the "Chapter" part to be in the
TOC, use two styles: Heading 1 for the numbering and a custom style
for the title of the TOC. When you create the TOC, make sure to
exclude Heading 1 and add your custom style.

Alternatively, you can use Heading 1 for the chapter titles and a custom
numbered style for the chapter number. This works fine if you don't need to
include the chapter number in an outline numbering scheme, page numbers,
figure captions, etc.
 
G

George

This is what I tried. However I want to include in the TOC both Chapter 1
and the title. In this case I get the page number on both, and I only
want one.
Get TOC:
Chapter 1 ----------- 1
The title ----------- 1

Desired TOC:
Chapter 1
The title ----------- 1

Any help.
 
R

Robert M. Franz (RMF)

Hi George
This is what I tried. However I want to include in the TOC both Chapter 1
and the title. In this case I get the page number on both, and I only
want one.
Get TOC:
Chapter 1 ----------- 1
The title ----------- 1

Desired TOC:
Chapter 1
The title ----------- 1

Any help.

Look up the TOC-field in your offline help; the "\n"-switch is your friend.

Greetinx
Robert
 
S

Suzanne S. Barnhill

In that case, you do what Stefan told you first: set "nothing" to follow the
numbering and insert a line break manually. The line break will become a
space in the TOC.
 
G

George

I will try it. Thanks


This is what I tried. However I want to include in the TOC both
Chapter 1 and the title. In this case I get the page number on both,
and I only want one.
Get TOC:
Chapter 1 ----------- 1
The title ----------- 1

Desired TOC:
Chapter 1
The title ----------- 1

Any help.
 
S

Suzanne S. Barnhill

Sorry, my answer was incorrect for what you say you want. There are two ways
to achieve

Chapter 1
Title..............................1

1. Assuming you've used a line break after the numbering, you can insert an
\x switch in the TOC field to make it preserve newline characters (see
http://word.mvps.org/FAQs/Formatting/TOCSwitches.htm). Note that this will
also preserve any other line breaks you have in the titles.

2. You can use two styles, one for the numbering and one for the title.
Assign different outline levels to them, and omit numbering in the TOC for
the outline level used for the chapter number. This is also explained in the
above-referenced article. If you want both TOC 1 and TOC 2 (or the
appropriate TOC levels) both flush left, you'll need to modify TOC 2.
 
G

George

This seems to be the solution I was looking for.

Is there any good tutorial where I can learn this type of macro things?
TOC and so on.

TA.
 
S

Suzanne S. Barnhill

Well, this isn't "macro things," as I don't do VBA. Word's Help on fields is
usually pretty good. If you search the Help for "field codes," many of the
hits will be articles on specific fields.
 

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