Not sure what you want to do. Can you elaborate? What, in the above screen shot, is not styled correctly, and how should it be styled? What does the nested style specification look like?
you can use grep style or nested style,
you must define two attributes in you character style: red and regular
grep style is below:
character style red+regular
I don't think we can define a solution until we know what the text coming in looks like and what it should look like after....
Yes you are right Peter, we should wait for more info.
Thanks Peter and Olfar,
Its always so hard to explain these things. Let me try again
Everything is styled correctly in the screen shot, because I hand styled it. I'm looking for a way to keep my body text to one paragraph style, with a nested style.
This works fine, until an italic entry head is introduced.
Is there a way to say "apply nested style 'entry head' when text is roman but apply 'entry head italic' when text is italic?
I'm losing my italics, in the nested style, when I apply the body style to the text box.
Can I do a find and replace for every instance of "carriage return, italic words, period" with the "entry head italic" character style.
Or write some GREP style that will do this?
Hope this is a little more clear, feel like I'm speaking in a foreign language
Here's my Body Text paragraph style with the Nested Style.
What does the character style actually do? Seems like it is applying a font style along with anything else that's happening, but maybe it shouldn't be doing that. If you leave the font family and style fields blank in the character style definition they won't change in the text.
As I understand you do not use character styles. And this is you problem.
First of all clear you text, remove all attributes and find/change it to character styles.
Then your nested styles will work as you want.
Back up. Nested Styles ARE character styles (as are GREP styles), but they are applied through pattern matching as part of the paragraph style definition rather than being applied to selected text. That's an important distinction. Nested styles only remain when the correct paragraph style is applied, while character styles applied to selected text will continue to be applied if you change the paragraph style (and will wreak havoc with a TOC, for example).
I'm using nested styles to apply a character style through the first period of the entry. This is great, works like a charm. Here's a screen grab of the character style, its a different font from the body text so I need the font field filled in.
The problem is when the entry head needs to be set as Nimbus Sans Bold Condensed Italic, I have a separate style for that but would have to override my nested style manually to apply it.
Ideally I will be applying my Body Text paragraph style to my text box and flowing the book with minimal or no hand styling.
Perhaps its not possible.
Well, that's a major problem. I cannot think of a way to differentiate which text needs to be italic and which does not in order to apply the correct formatting using either nested styles or GREP styles since there is no method for specifying the current format in either of those.
This could be done using two find/change queries, though.
Find ^[^.]+\. to find all the text from the beginning of the paragraph to the first period. For the first query set the find format to the non-italic font spec (and there is no reason to include the size and leading here) and set the change format to the non-italic font spec.
Use the same find for the italics, but change the find and change format specs to use the italic fonts.
I would not use GREP here, I would use a nested style:
- Specify a chracter style: red, caps
- Chreate a paragraph style with nested style, use red caps through 1 .
For the last paragraph you can apply a character style above with the property italic manually.
Willi, that's what the OP is doing now and wants to avoid....
You need to Use the GREP tab in find/change.
And I don't see any find format settings, so it is going to work the same as your nested style.
Got it, think I can take it from here. thanks a million
You can do it easly using nested style for your test and grep style for the italic.
But first you have change your italic style from you topics and put for example nonbreaking space insted of space after the period.
you will need another one character style - red-bold-condensed-italic and you should add it to grep style.
grep style is stronger then nested style, so it will work. You have to put nonbreaking space or any other character instead of the space and remove italic style.
@Rosebud, good luck, but come back if you need more help.
@Olfar, I like that, but I'm not sure it's much better than using two find/change queries -- you'd have to use find/change on the text BEFORE applying the style with the nested styles in it to change the plain spaces after the italics, and it will only work if the period is also italic (though that's a shortcoming to my two-query method, too).
The real problem is font family naming. We shouldn't use find/change queries at all in such cases. Every condensed, caption, subhead etc., styles will not wrok with nested styles and grep if they do not have proper font family naming. More info here.
I don't see that as a problem here. The problem is that Rosebud needs a way to make the same pattern of text have two different formats, so there needs to be a way to alter the pattern or identify some other characteristic of the text matching that pattern.