Auto-create bookmarks for Xrefs to tables and figures?

This forum is for all Flare issues not related to any of the other categories.
Post Reply
Msquared
Propellus Maximus
Posts: 848
Joined: Mon Aug 06, 2012 10:19 am
Location: Southampton, UK

Auto-create bookmarks for Xrefs to tables and figures?

Post by Msquared »

I've finally got auto-numbering working as I want for Tables and Figures. Now I need to be able to set cross-references to them. I can do this, but
first I have to set a bookmark on the table or figure caption I want to cross-reference. This is different from adding a cross-reference to a heading, which is just there for you to select when you click on the Bookmarks symbol in the Insert Cross Reference dialog. Since I don't have a crystal ball, so don't always know I'm going to want to make a cross reference when I set the caption, and also since I'm extremely lazy and don't like clicking around more than I have to, my question is this:

Is there a way that I can modify my Table and Figure caption styles to include the automatic creation of a uniquely numbered bookmark when I apply the style?

For info, my table style is (figures similar):

Code: Select all

p.TableCaption
{
 . . . 
mc-auto-number-format: 'CT:Table {chapnum}.{n+}';
 . . . 
}

MadCap|xref.Figure
{
	mc-format: '{paranum}';
}
What I'd like is to be able to add with the auto-number, something like (I wish!)

Code: Select all

mc-bookmark-name: 'Table_{chapnum}_{n+}'
mc-bookmark-position: after-auto-number;
The other reason I don't like having to do all this manually is because I'm rubish at typping and make mistaks whcih can stop things working. For example, I created a bookmark that contained a space. This is apparently illegal, but Flare (7, at any rate) allows you to do that, and includes the name as you specified it in the XML for the topic, but strips it down to the first word for its own records. But this bookmark doesn't work properly when you use it as a cross-reference. I spent a happy hour trying to work out why my Table cross-references worked properly, but the figure ones didn't, although the CSS styles were identical. Reason - the bookmark for the figure was the invalid one which included the space.
Marjorie

My goal in life is to be as good a person as my dogs already think I am.
Post Reply