STYLEREF

R

raj

I want my chapter title to appear in my page headers. So i used {styleref
"Chapter Title"}. This now displays the chapter title in my page headers.

Since the chapter titles are long, i have keyed CTR+enter in my chapter
titles. These soft enter are getting displayed in my headers. Can some one
please suggest me, how to avoid that softenters in the headers and only pick
up the text and display it in the headers.

Thanks in advance
 
G

Graham Mayor

I take it you meant SHIFT+Enter as CTRL+Enter is a page break? The hidden
characters are toggled with CTRL+* (CTRL+SHIFT+8) or by clicking the pilcrow
button on the toolbar. What is actually displayed is controlled by tools >
options > view.
I get no soft break character displayed if I repeat your action here.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
R

raj

Thank you very much for the reply.

But what i exactly want is, since my chapter title is big in length, i broke
it as

e.g.

Sample Chapter Title<shift+enter>
at First Page

and in my header i want to display it in a single line as "Sample Chapter
Title at First Page" i.e. with out that softenter.

Please suggest how to do this automatically, say like using {Styleref}

Raj
 
G

Graham Mayor

Strictly speaking you can't. You could create two *character* styles and
apply them to the first and second lines of the heading and include two
Styleref fields in the header to place the two lines on the same line as it
were. This will certainly work but is a bit fiddly to manage. I can think of
no way to lose the line feed in a single styleref result.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
S

Suzanne S. Barnhill

The way I have handled this is to use nonbreaking spaces instead of a line
break to force text onto a second line. Another approach you might try if
you have a lot of long titles is to pick up just part of the title. Instead
of having the StyleRef pick up the paragraph style, use a character style
and apply it to just the portion of the title you want to pick up. The
character style doesn't have to have any particular formatting--it can be
"Default Paragraph Font + [nothing]"--it just needs a name.
 
Top