Hi Michael:
OK, I can finally test this.
Linked styles ARE implemented. But the fact that they are linked is
HIDDEN!!
I am sorry to mislead you. When I last looked at this briefly, I saw it
could partially-apply Heading styles and thought "Ah hah!" they've
implemented Word 2003/7's Linked Styles.
Well, they have, but they've kept it a big secret!
1) If you create a style, say "Style 1", and apply a font and an indent.
2) Then pick a different style (say: Body Text) and define a different
font and indent
3) Then apply Style 1 to a paragraph
4) Then select three words within the Style 1 paragraph and apply Body Text
Only the three words will change, AND
If you click in the three words, the style will show as "Body Text". If you
click outside the three words, the style will show as "Style 1".
If you change the font colour of Body Text, the text in the paragraph that
has Style 1 will change.
5) If you select the paragraph mark and apply Body Text, the whole
paragraph will change and so will the indent.
6) If you just click into the paragraph so your selection is an insertion
point, and apply a different paragraph style, only the parts of the
paragraph that do not have Body Text applied will change.
So Body Text has been created as a Linked Style which is behaving as a
Character Style in that paragraph.
So: Linked Styles are there in Word 2008. They just didn't make it as far
as the user interface, so we can't see them. So we can't see what we're
doing (sigh...).
However, Linked Styles will do what you want without having to do anything
else, once you understand how they work. To an extent you will be flying
blind, because in Word 2008 you cannot see the Character component of a
linked style.
The key is to create your base style as a Paragraph style, with its indents
and spacing as well as all its font properties.
* If you then apply it to a selection that does not include a paragraph
mark, it will apply as a linked character style and you will get only the
character properties.
* If you apply it to the whole paragraph, or with only an insertion point
instead of a selection, it will apply as a Paragraph style and you will get
the indents as well.
If I think about it, this is probably a better implementation of the
mechanism than Word 2007's. In point of fact, the user never needs to know
whether a style has a linked style or not. The character properties of the
linked style can never be different from the character properties stored in
the paragraph style, so there is no point in differentiating.
The automation coder needs to know, because you need to know whether you
have a paragraph in context or just a string for some operations. But
presumably you can test the "LinkedStyle" property in AppleScript the same
as you could in VBA if VBA were there
So I think this is actually an improvement. No longer does the user see two
indicators against the one style name, and no longer to they see the horrid
"char char" appended to their style names...
Hope this helps
I doesn't create a character style, it reformats the whole paragraph (not just
the selected text) with the paragraph style.
I have never seen a ¶a style, though I've tried to create one based on all the
suggestions in this thread.
This is true if the paragraph style doesn't include any font attributes.
Nope applying a character style clears the bold, italic and underline
attributes, so I have to duplicate the paragraph, apply the character style
(which just specifies font & size) and then manually reapply bold, italic and
underline.
--
Don't wait for your answer, click here:
http://www.word.mvps.org/
Please reply in the group. Please do NOT email me unless I ask you to.
John McGhie, Consultant Technical Writer
McGhie Information Engineering Pty Ltd
http://jgmcghie.fastmail.com.au/
Sydney, Australia. S33°53'34.20 E151°14'54.50
+61 4 1209 1410, mailto:
[email protected]