M
Marko Pinteric
In technical documentation for a civil engineering project there has to
be heading reference in footer - but level dependant. If page includes
only Heading 2, reference in footer should be Heading 2, otherwise
reference in footer should be Heading 1.
I found following code field on the Internet:
{ IF {STYLEREF "Heading 2" \n}<{STYLEREF "Heading 1" \n} {STYLEREF
"Heading 1" \n} {STYLEREF "Heading 2" \n} }
This works fine, but only AFTER first Heading 2 appears. All pages
BEFORE first Heading 2 reference first Heading 2. The reason for this
lays in fact that Word first searches from the beginning to the end of
the current page and then (if it can't find Heading 1/2) from the
current page to the beginning of the document and then from the current
page to the end of the document. Therefore, before the first Heading 2
appears, he compares all Headings 1 with first Heading 2.
I tried to modify code field using \p switch (which tells if the Heading
1/2 founded is before or after position of code field), but this switch
does not work for footers.
Is there any solution for this problem? Can I somehow tell windows not
to search AFTER current page?
Please help!
Thanks, Marko Pinteric.
be heading reference in footer - but level dependant. If page includes
only Heading 2, reference in footer should be Heading 2, otherwise
reference in footer should be Heading 1.
I found following code field on the Internet:
{ IF {STYLEREF "Heading 2" \n}<{STYLEREF "Heading 1" \n} {STYLEREF
"Heading 1" \n} {STYLEREF "Heading 2" \n} }
This works fine, but only AFTER first Heading 2 appears. All pages
BEFORE first Heading 2 reference first Heading 2. The reason for this
lays in fact that Word first searches from the beginning to the end of
the current page and then (if it can't find Heading 1/2) from the
current page to the beginning of the document and then from the current
page to the end of the document. Therefore, before the first Heading 2
appears, he compares all Headings 1 with first Heading 2.
I tried to modify code field using \p switch (which tells if the Heading
1/2 founded is before or after position of code field), but this switch
does not work for footers.
Is there any solution for this problem? Can I somehow tell windows not
to search AFTER current page?
Please help!
Thanks, Marko Pinteric.