Chapter Headings

D

db

I'm building what amounts to a technical manual or
procedure.

I've organized it using outline level formatting. My TOC
is based upon this outline format. I want to
display "continuation text" in the header of the doucment,
so the reader always knows what part of the chapter
they're in.

In the body of the document, I'm trying to display (using
field codes) the outline level number and corresponding
heading for the "Heading 2" level on each page, except for
the first page that the paragraph with the Heading 2
occurs.

Example, say "A. First Topic" ends on page 2, and "B. Next
Topic" begins on page 2. The top of page 2 should read
ach page will have something like "A. First Topic
(continued)". The next page (page 3) would say "B. Next
Topic (continued)".

So far, I can only get it such that the most recent
paragraph heading on a page will display in the header.
In other words, in the header of page 2 would be "B.
Next Topic" (continued). Because the is the latest
paragraph heading to show up on the page.

How do I accomplish the former using field codes only, and
avoiding VBA? Here is a field code snipet to help you
help me: :eek:D

{STYLEREF "Heading 2" \n}.{STYLEREF "Heading 2" \*
MERGEFORMAT} (continued)

DB
 
S

Shauna Kelly

Hi db

I'm not 100% sure I understand what you need. Are you saying that, on the
page that B. Next Topic begins, you want the header to say "B. Next Topic",
and on subsequent pages, while B. Next Topic runs, you need "B. Next Topic
(continued)"?

If that's what you need, then you can achieve it with section breaks.

Just before the B. Next Topic heading, do Insert > Break. Choose Next Page,
or, if you always want the topic to start on a right-hand page, choose Odd
Page. Now, File > Page Setup. On the Layout tab, tick "Different First
Page". Repeat for each topic. Now, if you do View > Header and Footer,
you'll see that, for each section, you have a "First Page" header. So in the
"First Page" header, you can just use a STYLEREF field, without the
"continued" in the first page header.

By default, headers are set up to be the "Same as Previous". That means that
the headers for one section are the same as the header for the previous
section. So the "First Page" headers for each section can be the same (with
the STYLEREF field), and Word will resolve that to display your heading 2
style.

More info at
Working with sections
http://www.mvps.org/word/FAQs/Formatting/WorkWithSections.htm

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 
C

Chad DeMeyer

db,

I'm sorry, but I don't think that can be done. The "\l" switch when used
with STYLEREF will insert the last text formatted with the style on the
current page instead of the first text formatted with the style, but no
switch is provided which skips the current page and inserts the first
instance from the following page. There also does not seem to be any method
to detect whether or not the STYLEREF result was pulled from the current
page and so add "continued" conditionally.

Regards,
Chad
 

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