View Single Post
  #4   Report Post  
Posted to microsoft.public.word.formatting.longdocs
Suzanne S. Barnhill
 
Posts: n/a
Default Problems with Styleref

Normally you would insert the fields as follows:

1. At the left margin of the header paragraph, insert your { StyleRef
MyStyle } field.

2. Remove the center tab stop from the header paragraph, as it will just
cause problems.

3. Tab once to get to the right tab stop and insert your { StyleRef MyStyle
\l } field.

Note that if you copy/paste this header paragraph from one header to
another, no matter how carefully you omit the paragraph mark from the
selection when you copy/paste, you will always get an extra, empty paragraph
in the header you're pasting into. You just have to select and delete it.
Displaying nonprinting characters so that you can see what's going on (as
you are apparently doing) is vital.

I suspect that your problem may be caused by having headings that, combined,
are too long for a single line, causing Word to wrap the second field to the
next line. If that's the case, then instead of using a paragraph style for
the StyleRef, use a character style applied to some portion of each heading
(more work, but it will avoid problems). See
http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"homeologica" wrote in message
...
Thank you Suzanne:

I'm creating a style to put it in my headings. This is a dictionary. When

I
put [StyleRef MyStyle] and [StyleRef MyStyle \l]
sometimes this Style don't appear in the heading.

In other times both appear but the second one is showed a row lower, with

a
paragraph mark between them that I can't delete.

Alejandro Fernandez