I've used this technique for years and I'm pretty darned sure that this is how I get my figure numbers and table numbers not to wrap within cross-references. Let's take it a step at a time.
First, let's create a span class that we'll use to style the auto-number of a figure or table title. (I use the same span class for both.) This won't determine the format of the auto-number, but it will determine its appearance (bold, orange, particular font, etc.).
In the CSS, here's the code for that. In my case, I want the auto-number to be bold and regular (rather than, say, bold and italic), but notice that I want it *not to wrap*. That's the important bit for our discussion.
Code: Select all
span.FigureTableNumber
{
font-weight: bold;
font-style: normal;
white-space: nowrap;
}
Next, let's set up the CSS for the figure title with an auto-number. Notice that for the mc-auto-number-format, I don't use any format commands (e.g., {b}) but only auto-number commands (e.g., {chapnum}, {n+}). That's because I want the formatting to come from the span we just set up. (I won't illustrate a table title's auto-number, as it's basically the same.)
Code: Select all
p.FigureTitle
{
mc-auto-number-format: 'CF:Figure {chapnum}–{n+} ';
mc-auto-number-class: FigureTableNumber;
}
If we're going to do this through the Stylesheet Editor, start in Simplified View, and edit the p.FigureTitle style's properties. On the Auto-number tab, for Span Class, we can select FigureTableNumber.
Span_class_for_autonumber.png
Hope this helps.
You do not have the required permissions to view the files attached to this post.