Hi,
I looked at your document and the StyleRef field is working the way it is
supposed to work. What you want (what many of us want) is some way to not
have it display irrelevant information. Sorry that I was so dense.
The result displayed for Heading 1 seems OK., but the "Heading 2" results
displays false information. For example, I get "Description B - Part 4" in
the page beginning by Description B. But this Description B paragraph does
not have a Part 4 !!. How can I maybe place an "if not Heading 2 not found
in Heading 1, put nothing" ?
This isn't "false" information, in that the StyleRef field is referring to a
real heading in your document. It is irrelevant because it is referring to a
subheading of a previous heading, not a subheading of the current heading.
If you know which pages this is going to be a problem on, you can use
conditional text -- that is -- IF fields to not display on pages where the
StyleRef is displaying information from a previous setting. Take a look at
http://www.mvps.org/word/FAQs/Numbering/PageNumbering.htm.
This will be a pain to maintain but probably beats inserting extra section
breaks and modifying each section's headers and footers.
Anik said:
After removing manual page breaks, I still have problems. If you say it's
supposed to work, please tell me your magic trick !
This is my document structure :
Table Of Contents
blablabla...
---SECTION BREAK---
Introduction
blablabal...
Description A
Blablabla...
Part 1
Blablabla...
Part 2
blablabla...
Part 3
blablabla...
Part 4
blablabla...
Description B
Blablabla...
Description C
Blablabla...
Part 1
Blablabla...
Part 2
blablabla...
Conclusion
blablabla...
---SECTION BREAK---
References
blablabla...
Intro, Descriptions, Conclusion and References are type "Heading 1"
Parts are type "Heading 2"
The 3 sections breaks (NEXT PAGE) are important to have no header and
footer in sections containing "references" and also "table of contents".
This is my code in the footer:
{ STYLEREF "Heading 1" } - { STYLEREF "Heading 2" }
The result displayed for Heading 1 seems OK., but the "Heading 2" results
displays false information. For example, I get "Description B - Part 4" in
the page beginning by Description B. But this Description B paragraph does
not have a Part 4 !!. How can I maybe place an "if not Heading 2 not found
in Heading 1, put nothing" ?