Multiple Styles on the same line.

M

mariorivera1974

I need to have different styles on the same line. Some thing like:
StyleOne text [TAB]StyleTwo text

I cannot use tables because I need to be backward compatible with word
6.0/95, which does not allow bottom vertical alignment within cells,
and it looks bad if I choose top vertical alignment.
I was thinking of using tabs, but I don't understand how I cna use
multiple styles in the same line.
Is there a solution?
Thanks in advance.
Mario
 
J

Jezebel

Select part one of the line, apply style 1. Select part 2, apply style 2.
The style for the paragraph as a whole (determing alignment, spacing,
tabbing, etc) is the style applied to the paragraph mark. For the rest, the
style will be applied as a character style only.

It's also possible to create styles that are explicitly character styles.
 
M

mariorivera1974

Jezebel said:
Select part one of the line, apply style 1. Select part 2, apply style 2.
The style for the paragraph as a whole (determing alignment, spacing,
tabbing, etc) is the style applied to the paragraph mark. For the rest, the
style will be applied as a character style only.

It's also possible to create styles that are explicitly character styles.

Of course I knew about character styles. However your solution would
mean I wouldn't get two paragraph styles, but just one with a
character style on top of the first paragraph style and thus
inheriting the underlying properties of that paragraph. This is an
unwanted, spurious inheritance.
Anything cleaner?
Sorry if it looks like I am asking the moon, I know you have to
comprimise...
Mario
 
M

mariorivera1974

Suzanne,
this is not backward compatible.
The other problem is that word is just using a masked character style,
so what's the point? I can use a character style directly.
Mario



Suzanne S. Barnhill said:
See http://home.zebra.net/~sbarnhill/RunInSidehead.htm

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

I need to have different styles on the same line. Some thing like:
StyleOne text [TAB]StyleTwo text

I cannot use tables because I need to be backward compatible with word
6.0/95, which does not allow bottom vertical alignment within cells,
and it looks bad if I choose top vertical alignment.
I was thinking of using tabs, but I don't understand how I cna use
multiple styles in the same line.
Is there a solution?
Thanks in advance.
Mario
 
M

mariorivera1974

Suzanne S. Barnhill said:
See http://home.zebra.net/~sbarnhill/RunInSidehead.htm

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

I need to have different styles on the same line. Some thing like:
StyleOne text [TAB]StyleTwo text

I cannot use tables because I need to be backward compatible with word
6.0/95, which does not allow bottom vertical alignment within cells,
and it looks bad if I choose top vertical alignment.
I was thinking of using tabs, but I don't understand how I cna use
multiple styles in the same line.
Is there a solution?
Thanks in advance.
Mario

Suzanne,
I read the page you suggested again and found out that you may be
right, the solution may be there.
My attention had been dragged towards the "Style separator" heading.
However there is another heading, namely "Hidden paragraph mark",
which may answer my purpose and the site does not mention any backward
compatibility issues (are you aware of any?).

However there are problems with indenting. It seems the joined
paragraph (the second one in the line) does not respect the indent,
which it should have because of the style it belongs to. If I
"disjoin" it (not sure 'disjoin' is english; I found the term in three
out of four dictionary, but not in the most authoritative), it
respects the indent specified.
I am now resorting to using a character style for the second style on
the line, with a tab stop specified in the underlying paragraph style
(which is the first style on the line).
Any better solution?
Mario.
 
S

Suzanne S. Barnhill

You must not have read the article carefully. Both TC fields and
Hidden text are supported in all versions of Word and are therefore fully
backward compatible.
--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Suzanne,
this is not backward compatible.
The other problem is that word is just using a masked character style,
so what's the point? I can use a character style directly.
Mario



"Suzanne S. Barnhill" <[email protected]> wrote in message
See http://home.zebra.net/~sbarnhill/RunInSidehead.htm

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

I need to have different styles on the same line. Some thing like:
StyleOne text [TAB]StyleTwo text

I cannot use tables because I need to be backward compatible with word
6.0/95, which does not allow bottom vertical alignment within cells,
and it looks bad if I choose top vertical alignment.
I was thinking of using tabs, but I don't understand how I cna use
multiple styles in the same line.
Is there a solution?
Thanks in advance.
Mario
 
J

Jezebel

Given that you have only one paragraph, you can't have two paragraph styles
as such. The paragraph can have only one SpaceAbove value (for example) --
if it had two, what would the second apply to?
 
S

Suzanne S. Barnhill

The style separator is available only in Word 2002 and obviously is *not*
backward-compatible. It is, however, offered as the last option, after the
two other equally valid ones.

My experience is that you must give the run-in heading the same formatting
as the paragraph in order for it to work (at least this is true of
justification). You will need to experiment with the formatting of the
respective styles to see what works.

If you can't make this work for you, then apply a character style to the
heading and use a TC field to get the heading in your TOC.

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

"Suzanne S. Barnhill" <[email protected]> wrote in message
See http://home.zebra.net/~sbarnhill/RunInSidehead.htm

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

I need to have different styles on the same line. Some thing like:
StyleOne text [TAB]StyleTwo text

I cannot use tables because I need to be backward compatible with word
6.0/95, which does not allow bottom vertical alignment within cells,
and it looks bad if I choose top vertical alignment.
I was thinking of using tabs, but I don't understand how I cna use
multiple styles in the same line.
Is there a solution?
Thanks in advance.
Mario

Suzanne,
I read the page you suggested again and found out that you may be
right, the solution may be there.
My attention had been dragged towards the "Style separator" heading.
However there is another heading, namely "Hidden paragraph mark",
which may answer my purpose and the site does not mention any backward
compatibility issues (are you aware of any?).

However there are problems with indenting. It seems the joined
paragraph (the second one in the line) does not respect the indent,
which it should have because of the style it belongs to. If I
"disjoin" it (not sure 'disjoin' is english; I found the term in three
out of four dictionary, but not in the most authoritative), it
respects the indent specified.
I am now resorting to using a character style for the second style on
the line, with a tab stop specified in the underlying paragraph style
(which is the first style on the line).
Any better solution?
Mario.
 
M

mariorivera1974

The style separator is available only in Word 2002 and obviously is *not*
backward-compatible. It is, however, offered as the last option, after the
two other equally valid ones. [...]
If you can't make this work for you, then apply a character style to the
heading and use a TC field to get the heading in your TOC.

My problem is not about including anything in the TOC (I have never
mentioned a TOC, I don't have a TOC in my document). It is about
putting different paragraph styles on the same line for organisation
purposes.

The hidden paragraph works, but it looses the indentation
characteristic. Without indentation it makes no sense using it; I can
use a character style with no differences.

Thanks for the interest shown.
Mario
 
M

mariorivera1974

Jezebel said:
Given that you have only one paragraph, you can't have two paragraph styles
as such. The paragraph can have only one SpaceAbove value (for example) --
if it had two, what would the second apply to?

You would apply only the first one, for instance. It happens when you
join paragraphs with the hidden paragraph method described in the page
suggested by Suzanne.
You just need some rules governing conflict resolution; it is
feasible.

I understand that by design a paragraph is implicitly followed by a
newline, but I am not sure I agree with that.
I can only moan about that, nevertheless.
Mario
 

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