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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |