you can do the following:
1. Clear overrides from Headings in the text
2. Create the Character style which will have only Italic Font style, without any other new settings.
3. Set Bold font style as a main option for your Headings (in the text) Paragraph style and add the Italic Character Style as a nested style.
You will have this look: Sample Heading
4. Create the TOC style with Regular font style as a main option and Italic Character style as a nested style with the same rule.
Here you will have this look: Sample Heading.
The overrides are very hardy, they can survive any paragraph style changing
I have some troubles with nested styles; I've never used them yet.
In 3rd point: what should I do exactly? Here's a screenshot of what I have in the Drop Caps and Nested Styles of the particular Heading 2 paragraph style settings. Should I create a New Nested Style?
When I click on the New Nested Style button, the following is what comes out. As I understand, I should select the Italic character style I created before, instead of [None] in the first column, but them what?
The second and last columns have following options:
Thank you for helping me out.
yes, you have to click "New Nested Style" button.
Actually, for your example you need (1) character style and (2) paragraph formatting set
1. Straight bold character style for the first part of the sentence (paragraph). ::: Sample
2. Italic bold style as a Basic Character Settings in the Paragraph style for the other part. :::: Heading
So you add the first style (click New Nested Style button and choose the style name in the drop-down menu) and set the rule:
- Through or Up to — defines if the style should include the selected item or not. Use Through as an original and change if needed.
- Number (1, 2 etc.) — defines how many selected items should be formatted by the selected style
- Items list. For example, if you set "Through 1 word", the style will format only the first word in the sentence.
If the paragraph structure is the same for all the titles, you can use this construction: Through (1, 2, ...) Words. The last part of the Paragraph will keep the basic character formatting.
If you have different numbers of the words in the straight part of the titles, you can previously add the End Nested Style Character in every title between the straight and italic parts. And use another construction: Through 1 End Nested Style Character.
Okay, now I got it.
But then there is another issue: this makes all Heading 2 titles formatted the same way, however only some should be. Is there any solution for that? I mean: can I just select which titles would use the nested styles. I could just create another paragraph style for those, but I don't know then, how would I create a TOC with Heading 2 and Heading 2 Nested Styles in the same level.
yes, you can create 2 styles, and when you wil create TOC, just set them the same level (use More Options button to see the levels drop-down)