This is for print only and I am using Flare 2019 r2.
I have a bunch of Figures and a hand full of Tables in my project.
I setup Table Captions and Figure captions.
- I added a style class to paragraph tags.
- I right-clicked on the p in structure bar > Style Class > Create Style class > name: TableCaption/FigureCaption
- In the stylesheet I added the format I wanted
- Table Caption: mc-auto-number-format: CT:{b}Table {secnum} - {n+}{/b}
- Figure Caption: mc-auto-number-format: CF:{b}Figure {secnum} - {n+}{/b}
I type the name of Figure/Table, then select the style I made and will get something like: Figure/Table 1-1: Table Top
This works fine.
I have added bookmark for my Figures and Tables, ensuring that all the names are different.
Bookmark was named Table Top. So it looks like this: Figure/Table 1-1: (BOOKMARK: Top Table) Table Top
This works fine.
I have added cross-references to the bookmarks.
So in the body of my text it comes up something like this: Install hoist rings on Table Top ("Table Top" above/below/on page)
This works fine.
How can I put the cross-reference before the style so that it includes the Figure/Table number as well as the Caption, something like this: Install hoist rings on Table Top ("Figure/Table 1-1:Table Top" above/below/on page)
Hope I didn't make that sound too confusing.
Thanks,
Belynda
Captions, Bookmarks & Cross-References
-
ajturnersurrey
- Sr. Propeller Head
- Posts: 348
- Joined: Fri Nov 05, 2010 3:30 am
Re: Captions, Bookmarks & Cross-References
Hello Belynda
If I have a table with a distinct autonumbered caption style, I generate this sort of thing, which I think is what you are looking for -
Because the style for MadCap:xref is {para} ..... which just brings the text from the cross referenced item ('Key to door colours and events')
I have another MadCap:xref.HeadingNum using {paranum} ... which just brings the autonumber element for the cross referenced item ('Table 14-1')
(And I condition the MadCap:xref.HeadingNum cross reference for print outputs only.)
Hope that helps
If I have a table with a distinct autonumbered caption style, I generate this sort of thing, which I think is what you are looking for -
The code behind the cross reference is infact two cross references with different styles. And the link in each case of this example is to a bookmark I called 'Key' in a particular topic.:This display uses the same set of colours for door events as the floor plan, see Table 14-1 Key to door colours and events.
Code: Select all
<MadCap:xref href="View floor plan in Manager.htm#Key" class="HeadingNum">Table 1-1 </MadCap:xref> <MadCap:xref href="View floor plan in Manager.htm#Key">Key to door colours and events</MadCap:xref>I have another MadCap:xref.HeadingNum using {paranum} ... which just brings the autonumber element for the cross referenced item ('Table 14-1')
(And I condition the MadCap:xref.HeadingNum cross reference for print outputs only.)
Hope that helps
Re: Captions, Bookmarks & Cross-References
I think that's what I'm looking for. However, I'm still fairly new at dealing with all the code stuff, so I'm not exactly sure where to go to do something like this.
I'm a bit hard headed and some times it takes a while for stuff to click in my brain. :-/
I don't know if it helps, but my Figure/Table Caption stuff is part of my <p> styling.
Thanks
I'm a bit hard headed and some times it takes a while for stuff to click in my brain. :-/
I don't know if it helps, but my Figure/Table Caption stuff is part of my <p> styling.
Thanks