dwp-forge / refnotes

4 stars 6 forks source link

Only show single multi-reference identifier with style "note counter" #63

Open sia1984 opened 3 years ago

sia1984 commented 3 years ago

If you set the multi-ref-id to "note", you get abominations like

[1], [1], [1], [1], [1], [1], [1], [1], [1] This is a footnote I entered too many times.

It's clear to me that clicking on these links give me back references to the corresponding entries in the text, but it'd be nice if there could be a single back reference which marks all the references in the text on click, like if you add the ?s[]= parameter in the URL.

dwp-forge commented 3 years ago

When it comes to styling, the plugin gives you a lot of flexibility. But it doesn't mean that all possible combinations of styles will look nice. When you use multi-ref-id : note I would also recommend to tweak back-ref-format. For example, compare these two:

text1[(fn>This is a footnote I entered too many times.)]
text2[(fn)]
text3[(fn)]

<refnotes>
multi-ref-id   : note
note-id-format : []
back-ref-base  : text
</refnotes>

text1[(fn>This is a footnote I entered too many times.)]
text2[(fn)]
text3[(fn)]

<refnotes>
multi-ref-id    : note
note-id-format  : []
note-id-base    : text
back-ref-format : a
back-ref-base   : sup
</refnotes>

As for the reference highlighting on a back-ref click, I think, that could be a neat feature. Not sure it fits into back-ref-format style, as I wouldn't like to trade the ability to style back-refs for the highlighting. I guess, a new style would need to be created. And that would require some thought about how this new style will work together with the existing ones.