I'm writing a publication that requires me to highlight specific references for special interest. In the references list, the citation needs to have a asterisk like this: "[3] * Author, etc".
Based on some other answers on the internet (sorry, did this weeks ago, can't find the posts anymore) I wrote the code below. The command \bibnote allows me to do:
\bibnote{citationkey}{Note about this particular article.}.
\makeatletter
\newcommand{\bibnote}[2]{\csdef{cbx@#1@bibnote}{#2}}
\renewbibmacro*{begentry}{%
\ifcsdef{cbx@\thefield{entrykey}@bibnote}{%
*%
}{}}
\renewbibmacro*{finentry}{%
\ifcsdef{cbx@\thefield{entrykey}@bibnote}{%
\\\textit{\csuse{cbx@\thefield{entrykey}@bibnote}}%
}{}}
\makeatother
The code works, with one annoying caveat: each reference in the list now ends with a newline and period, followed by the next entry:
[1] Author, Title, ...
.[2] Author, Title, ...
.[3] * Author, Title, ...
I've tried digging into the code of biblatex, but I wasn't able to remove the period. \renewcommand*{\finentrypunct}{\nopunct} does nothing. Anyone with enough knowledge of biblatex to help me solve this problem?
Another problem is that in the text, the citations of interest need to have an asterisk like this: "[3*]". I now solve that when citing, using post-notes, but that's quite error-prone. Is there a way to automatically add a post-note to every citation based on the citation key?
![Lorem [2*] dolor [3] sit [1]](../../images/465e3987a86d00e0fb29c04e89fe20ab.webp)