A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Formatting Long Documents
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Chapter Headings "continued"



 
 
Thread Tools Display Modes
  #1  
Old November 4th, 2004, 04:09 PM
db
external usenet poster
 
Posts: n/a
Default Chapter Headings "continued"

I'm trying to accomplish something in a large document that I think should
be very simple.

I'm using a user-created style for my document, which uses cross-referencing
to generate a TOC at the beginning.

In the header of the following pages, I use a STYLEREF-Heading 2 field to
display the Level 2 heading at the top of each page. Of course, some
chapters span several pages and end midway down a page.
The STYLEREF field always picks up the first occurrence of a level 2 heading
that it sees on each page.

What I really want it to do is to keep a running tab of the current style.
That is, instead of the field picking up the first level 2 heading it sees
on the current page, it I want it to pickup the current level 2 heading, and
if it is on any page past the first instance of that heading, then it would
display "continued from page X" in the header.

How do I manipulate fields to give me this effect?

I know this sounds complicated, but I think its really simple. It's no
different than the way chapter headings are done in most large documents or
books.


  #2  
Old November 5th, 2004, 04:08 AM
Jezebel
external usenet poster
 
Posts: n/a
Default

This is actually a somewhat unusual requirement, which is why there is no
entirely straightforward way to do it. (If you're reading chapter X, it's
usually obvious if you're on the first or a subsequent page of that chapter,
and usually irrelevant what page that chapter started on.)

However, you could do it like this:


1. Insert a section break immediately before each chapter heading.

2. Format your sections to use different first page/subsequent page headers
and footers (File Page Setup : Layout)

3. The first page header will be used only if the chapter starts at the top
of the page; otherwise the ordinary page header will be used.

4. Add a bookmark for each chapter heading, called eg Chapter_01,
Chapter_02, etc

5. Use a field construction like

{ StyleRef \l "Heading 2" } continued from { PageRef { QUOTE "Chapter_"
{ Section \# "00" } } }

The \l (lowercase L) switch tells StyleRef to use the LAST instance of the
style on the page, not the first.

As it stands, the field coding assumes that chapter numbers and sections
correspond (ie, chapter 2 = section 2). If not, you'll need to replace the
Section field with a calculation field based on the section, eg use { = {
Section } - 2 \# "00" } if the section number is 2 more than the chapter
number.





"db" wrote in message
...
I'm trying to accomplish something in a large document that I think should
be very simple.

I'm using a user-created style for my document, which uses

cross-referencing
to generate a TOC at the beginning.

In the header of the following pages, I use a STYLEREF-Heading 2 field to
display the Level 2 heading at the top of each page. Of course, some
chapters span several pages and end midway down a page.





The STYLEREF field always picks up the first occurrence of a level 2

heading
that it sees on each page.

What I really want it to do is to keep a running tab of the current style.
That is, instead of the field picking up the first level 2 heading it sees
on the current page, it I want it to pickup the current level 2 heading,

and
if it is on any page past the first instance of that heading, then it

would
display "continued from page X" in the header.

How do I manipulate fields to give me this effect?

I know this sounds complicated, but I think its really simple. It's no
different than the way chapter headings are done in most large documents

or
books.




  #3  
Old November 5th, 2004, 09:34 PM
db
external usenet poster
 
Posts: n/a
Default

In this medium, its difficult sometimes to see what other see. I don't mean to trivialize the problem. After all, if it were that simple, I've had figured it out! It's the age old dilemma with computers:getting them to understand what you want and then telling them how to generate it.

In any case, let me try a picture...


***************************************
* Page1 "Nothing here yet" *
*-------------------------------------*
* *
* Heading 1 "Chapter 1" *
* *
* Heading 2 "Alpha" *
* *
* Body Text under Heading 2 "Alpha" *
* Body Text under Heading 2 "Alpha" *
* Body Text under Heading 2 "Alpha" *
* Body Text under Heading 2 "Alpha" *
* Body Text under Heading 2 "Alpha" *
* Body Text under Heading 2 "Alpha" *
* Body Text under Heading 2 "Alpha" *
* Body Text under Heading 2 "Alpha" *

***************************************
*Page2 "Heading 2 "Alpha" continued *
* ------------------------------------*
* Body Text under Heading 2 "Alpha" *
* Body Text under Heading 2 "Alpha" *
* Body Text under Heading 2 "Alpha" *
* Body Text under Heading 2 "Alpha" *
* Body Text under Heading 2 "Alpha" *
* *
* Heading 2 "Bravo" *
* Body Text under Heading 2 "Bravo" *
* Body Text under Heading 2 "Bravo" *
* Body Text under Heading 2 "Bravo" *
* Body Text under Heading 2 "Bravo" *

***************************************
*Page3 "Heading 2 "Bravo",continued *
* ------------------------------------*
* Body Text under Heading 2 "Bravo" *
* Body Text under Heading 2 "Bravo" *
* Body Text under Heading 2 "Bravo" *
* Body Text under Heading 2 "Bravo" *
* *
* Heading 2 "Charlie" *
* Body Text under Heading 2 "Cats" *
* Body Text under Heading 2 "Cats" *
* Body Text under Heading 2 "Cats" *
* Body Text under Heading 2 "Cats" *
* *

* and so on........


This represents (as well as one can in .txt) what I want to accomplish in my document. Think of it as a schematic sketch. It looks best if viewed in a non-proportional font like Courier New...









"Jezebel" wrote in message ...
This is actually a somewhat unusual requirement, which is why there is no
entirely straightforward way to do it. (If you're reading chapter X, it's
usually obvious if you're on the first or a subsequent page of that chapter,
and usually irrelevant what page that chapter started on.)

However, you could do it like this:


1. Insert a section break immediately before each chapter heading.

2. Format your sections to use different first page/subsequent page headers
and footers (File Page Setup : Layout)

3. The first page header will be used only if the chapter starts at the top
of the page; otherwise the ordinary page header will be used.

4. Add a bookmark for each chapter heading, called eg Chapter_01,
Chapter_02, etc

5. Use a field construction like

{ StyleRef \l "Heading 2" } continued from { PageRef { QUOTE "Chapter_"
{ Section \# "00" } } }

The \l (lowercase L) switch tells StyleRef to use the LAST instance of the
style on the page, not the first.

As it stands, the field coding assumes that chapter numbers and sections
correspond (ie, chapter 2 = section 2). If not, you'll need to replace the
Section field with a calculation field based on the section, eg use { = {
Section } - 2 \# "00" } if the section number is 2 more than the chapter
number.





"db" wrote in message
...
I'm trying to accomplish something in a large document that I think should
be very simple.

I'm using a user-created style for my document, which uses

cross-referencing
to generate a TOC at the beginning.

In the header of the following pages, I use a STYLEREF-Heading 2 field to
display the Level 2 heading at the top of each page. Of course, some
chapters span several pages and end midway down a page.





The STYLEREF field always picks up the first occurrence of a level 2

heading
that it sees on each page.

What I really want it to do is to keep a running tab of the current style.
That is, instead of the field picking up the first level 2 heading it sees
on the current page, it I want it to pickup the current level 2 heading,

and
if it is on any page past the first instance of that heading, then it

would
display "continued from page X" in the header.

How do I manipulate fields to give me this effect?

I know this sounds complicated, but I think its really simple. It's no
different than the way chapter headings are done in most large documents

or
books.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter Headings db Formatting Long Documents 2 August 17th, 2004 08:29 PM
Chapter Headings db Formatting Long Documents 0 August 13th, 2004 03:15 PM
different chapter titles and specific page numbering HB Jim General Discussion 1 May 28th, 2004 07:37 AM


All times are GMT +1. The time now is 08:37 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.