View Single Post
  #2   Report Post  
Posted to microsoft.public.word.pagelayout
Jay Freedman
 
Posts: n/a
Default Possible to create style that has different character formatting on multiple lines?

On 22 Dec 2005 09:38:40 -0800, wrote:

Is it possible to create a style such that the first line of the style
has one character formatting, but subsequent lines have a different
character formatting?

The case I am considering is a multiline title header, where only the
bottom line of the header should be underlined (but the whole thing
should be bold). The header is not broken up with paragraph marks, but
rather by wordwrapping or hard-returns line breaks.

This sort of formatting is common in legal documents.


No, there's no way to define one style with multiple formats.

However, there are ways to accomplish the case you described. The
simplest is to define the underline as a paragraph bottom border. It
doesn't matter how many lines are in the single paragraph, the bottom
border will appear only below the last line. It will, however, always
extend from the left to the right of the text column (that is, the
left margin plus any left paragraph indent, and the right margin plus
any right paragraph indent).

Another possibility is a character style that consists of Default
Paragraph Format + Underline. You could manually apply this character
style to only the last line of the paragraph. However, this isn't
particularly stable, because automatic line breaks can change when you
open the same document on a different computer or print it to a
different printer. Thus you could wind up with one underlined word at
the end of the next-to-last line, or one non-underlined word on the
last line. Also, the underline could show up in a table of contents.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ:
http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.