Two styleRef in one page

A

Axel

Hi
I cannot belief that I am the first one having this problem:

In the header of the page i want to refer to Heading one and Heading
two. So it should look like this

_______________________
Heading 1
Heading 2
_______________________


The problem occurs, when one page starts with a sub chapter marked by
Heading 2 followed by a new chapter marked by Heading 1.

The result is this:
_____________________
Heading 1 (new chapter)
Heading 2 (last sub chapter of old chapter)
_____________________


What options do I have to activate or what is appropriate VBA code to
make the first line referring to the last chapters title which can be
found on one of the previous pages?

Thank you very much
Axel
 
G

G.G.Yagoda

You're right, this problem has come up before and I don't recall any
satisfactory solution using STYLEREF fields being offered. If a
STYLEREF solution does exist, surely Klaus Lincke would know it.

May I suggest a workaround?

Finish the whole document first so nothing will change on you. Then at
the top of each page insert a TextBox, no lines, and use Insert >
Cross-reference, Numbered items to reference your chapter and
subchapter headings. That gives you absolute control over the page
each reference appears on.

Unlike Header/Footers, TextBoxes have the advantage of allowing
different references to appear in the same space.

It's a little more work, sure, but it beats manually typing in each
chapter/subchapter at the top of the page. And who knows, Klaus Lincke
or some other STYLEREF expert may come along with the perfect STYLEREF
solution.
 
K

Klaus Linke

And who knows, Klaus Lincke or some other STYLEREF
expert may come along with the perfect STYLEREF solution.


Unlikely... At least, it won't be me.
For unconventional headers like this (previous chapter heading rather than the one that's on the page), your textbox solution is a fine work-around.

Greetings,
Klaus
 
C

Charles Kenyon

What occurs to me, since the styles being referred to are heading styles, is
some sort of cross-reference to the page numbers being evaluated in a
conditional field. This could work to at least eliminate heading 2 text from
a previous page going under a heading 1 from this page. Wouldn't help,
though, with a heading 2, heading 1 on the same page.


Klaus Linke said:
And who knows, Klaus Lincke or some other STYLEREF
expert may come along with the perfect STYLEREF solution.


Unlikely... At least, it won't be me.
For unconventional headers like this (previous chapter heading rather than
the one that's on the page), your textbox solution is a fine work-around.

Greetings,
Klaus
 

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