Hi Flare Forums,
Tried to perform my due diligence in searching the forums before posting, but couldn't find this precise issue articulated, so here goes:
The motivation is as follows: I'm building out a project to serve as a template for a technical manual for the products my company sells. These manuals feature a number of figures, where the image always appears above the caption. The captions live inside an auto-numbered <p> tag [ mc-auto-number-format: CF:{b}Figure {chapnum}-{n}: {/b} ] to keep them dynamically numbered in case we insert new ones, move them around, etc.
Initially, I used these caption paragraphs to generate a Table of Figures via a List-Of Proxy. This works fine, but the in-PDF-links 'jump' you to the caption, requiring you to scroll up to see the figure itself, since it's technically the captions which you're creating a list of. Despite this being the completely correct behavior, it was not the desired outcome. My next idea was to add additional <p> that always goes above the image, and since it comes first it also does the incrementing of the figure number counter [ mc-auto-number-format: CF:{b}Figure {chapnum}-{n+}: {/b} ]. If I use these 'bookmark' paragraphs (for lack of a better term) for generating the List-Of proxy, the links generated by the proxy drop me exactly at the top of each figure- good! This has the added benefit of allowing the author to define a short caption for the proxy list, so that a single wordy caption doesn't disrupt the visual flow of the list.
The final touch here is to make the 'bookmark' paragraph content disappear from the print output, since it would be odd to see the figure numbering repeated above and below the image. This is most cleanly accomplished by setting display: none for the 'bookmark' paragraph. At this point, everything works just as I would like, with one exception: cross references.
Even though the Table of Figures functions as desired now, it should also be possible to dynamically reference these figures in the text (ie: "The doodad internals are shown in Figure X-X.") My cross-ref format is simple: {color #8b0000}{paranumonly}{/color}, but when I point it at a 'bookmark' paragraph, there appears to be no paranum value to pull from. If I turn the display styling of the 'bookmark' paragraph back to the default, then the cross-ref will generate correctly.
I suppose the crux of my question is: why can the List-Of Proxy correctly extract the auto-numbered information from my display:none paragraphs, but the cross-ref cannot?
(I'm also completely open to alternate suggestions of how to accomplish the stated goal which sidestep this problem, but none of the alternatives I've tried my hand at have worked...)
Thanks in advance!