I have a "Chapter Title" variable which is used in a footer and which is coupled to the "Chapter Title" style which uses a very large font. This works.
Some chapters have a longer title, for which I have created a derived paragraph style "Chapter Title small", which uses a smaller font so the title does not take up half of the page for instance.
What happens is that the Chapter Variable does not follow this derived style. So, the chapter that starts with a "Chapter Title small" style still has the name of the previous chapter in its footer.
How should I resolve this?
I am using CS6.
No I did not. I need this to be a single variable that is used on the Master Page. What I need is a variable that is keyed to the main style as well as any style that is derived from the main style. If this is not possible, the workaround is to use only the main style and change the layout properties by hand for every time I need the chapter heading with a slightly smaller font. But that means I have to keep track of the 'small' chapter header style by hand and it will be difficlt to have only two varitions (normal and small) in by book.
Too bad. Seems an omission to me. I expect the style to be coupled to variables (and thus inheritable in substyles in an OO way) and not the other way around. Now I can't use a substyle for my chapter heading variations, unless I can make one variable that is linked to another.
You should try using the same style and apply a character style manually that makes the size change in the body of the book. That should get picked up OK, but I'm not sure if the character style will interfere with the formatting of the variable (it will be applied to the TOC entry, for example).
TOC styles are separate, so they will not be influenced. The problem with manually changing each instance of 'the smaller variant' is that it will be difficult to make all instances of the variant identical.
If you are able to make your variants consistent with a paragaraph style they can be made consistent with a character style. It is more work because you have to select the text and apply the style that way, but not a lot more.
And trust me, character styles applied to text that is picked up by a TOC are applied to the text in the TOC as well, no matter waht paragraph style is assigned, unless they are applied as part of a nested style inthe original paragraph style definition. We get users asking how to prevent this all the time.
Ah now I understand a bit more. You want to use a character style. I still don't entrely understand hw this would work. If I create two character styles 'Chapter Title' and 'Chapter Title small' and I use the Running Header (Paragraph Style) link to the paragraph style 'Chapter Title' for my Variable 'Chapter Title', how would I then prevent that this character style ends up in the TOC?
I don't think that would work. That would mean I would have to create a type of master page depending on the chapter title which may be pages earlier. Because there are the 'chapter title' and 'normal page' master pages (spreads actually). That is even more likely to go wrong.
The other possibility is to use a non-printing frame with the title in the regular style on the title page in addition to the one in the second style that will print. Both variables and TOC can pick up the non-printing text.
I use that technique from time to time with things like lists of Illustrations (which are a TOC) where I want to only use a part of the caption, or title it a bit differently in the list.
A non-printing frame to steer the footer (and TOC) would also be a nice solution.
Which brings me to a related question. If I draw a new Text Frame on my page (I do that a lot for diagrams), the paragraph style used to be 'View Caption' all the time (so I have to set it back to Basic Paragraph all the time) and now it suddenly is "Chapter Title". What steers the default paragraph style of a new text frame?
I think the answer is to use a text variable based on character style, i.e., "Running Header (character style)."
Then you will need to create a new character style called "running header" or whatever, that has no attributes (i.e. a blank char style) and apply that to all your chapter titles (you can use find and replace).
Now the running header will pick them all up since it is based on a character style rather than a paragraph style.
Default styles are selected with no text cursor active...
Ariel's suggestion is also a good one. It might even work with making the character style nested as part of the paragraph styles, in which case it will not be applied to the TOC entries.
Do you mean will the footer pick up the Text from the first (or last) TOC listing on the page? Probably.
There is no perfect solution here, I think, only different options with relative strengths and weaknesses.
Actually, let me revise that last answer. If the character style is applied to the actual chapter heads as a nested style within the paragraph style definition, then it will not be present at all in the TOC and will not be picked up if you use a differnt style for the TOC listings that does not include the nested character style.