I'm not sure I really understand the question, but maybe it will will help you if you understand that as far as ID is concerned your variable is a single character so it is impossible to have multiple formats within the variable text unless you use multiple variables.
Depending on the text itself, it is sometimes possible to assign character styles to different parts of the paragraph that you want to use in your running header/footer, then to use two or more Running Header (Character Style) variables to build the header/footer itself. These character styles don't need to actually do anything -- they can be completely blank except for having unique names so that they don't affect the actual formatting of the paragraph in which they appear.
InDesign 6? Does that mean InDesign CS6 or InDesign version 6 ( =
If you have InDesign CS6, you can try creating a "composite font". If
you have the ME version, it's built into the type menu (Type>Composite
Font). If not, I vaguely recall the Marc Autret has a script that lets
you access composite font functionality.
With a composite font, you can designate your Expert font (small caps)
as the base font, and point it to the other font for the figures. Then,
for your running headers, choose the new composite font.
This should work. I recall that I answered a similar question a few
weeks ago -- perhaps do a forum search for "Composite fonts" for more
"your variable is a single character so it is impossible to have multiple formats": I already thought it was something like this.
About your possible solution: that would work if the figures are on a fixed place. I'll give an example of what I meant. Compare the 150 in the chapter title with the page footer. In any other chapter title figures could appear in different positions.
Ariel, thank you for your reaction.
However, your solution scares me a bit. Marc Autret writes his script is a kind of hack into InDesign and warns it should be used with caution. That's not for me. For a small problem I don't want to run the risk my print shop gets a pdf it can't handle, or worse, will handle incorrectly - with all the problems with my customer that would give.
But if there are any happy 'guinea pigs' out there, I would like to hear from them!
In the ME version of InDesign CS6 (that's the version that supports
right-to-left text flow), as well as in the Japanese versions (as far as
I understand), the composite font feature is built into the user
interface. It's an official part of InDesign.
In the non-ME versions, Adobe did not expose it in the UI simply, I
imagine, so as not to overwhelm customers who would have little need of
the feature (but they probably didn't think of cases like yours).
However, although they didn't expose it in the UI, they did expose it in
the scripting DOM. So, through scripting, all the features are
available. What Marc did, I'm guessing (I haven't actually had the
opportunity to check out his script), is simply provide a UI for non-ME
users via scripting.
So -- if you can get it to work, it should be perfectly safe.
Nevertheless, if you prefer not to risk it, that's fine. I won't take it
While I think in this case the compound font is probably the way to go, you could use three variables -- one for text in front of the number, one for the number, and one for text after. If one of those categories is missing it will just be ignored in the footer -- the variable itself has no width that I can discern.
This is the trick I was looking for!
Works excellent with one group of figures in the chapter title, but with two groups of figures you can just add two more variables, et cetera.
Thanks very much!