Гиперссылка на одну и ту же ссылку в нескольких главах (bibunits)

Гиперссылка на одну и ту же ссылку в нескольких главах (bibunits)

Попробуйте следующий MWE:

\documentclass[bibtotoc]{scrbook}
\usepackage[english]{babel}
\usepackage{natbib}
\usepackage[sectionbib]{bibunits}
\usepackage{hyperref}

% library
\begin{filecontents}{bib.bib}
    @article{REF1,
        title = {Title of first reference},
        journal = {Journal of first reference},
        volume = {1}, number = {1}, pages = {1-100}, year = {2023},
        author = {FirstAuthor, FirstAuthor}
    }        
    @article{REF2,
        title = {Title of second reference},
        journal = {Journal of second reference},
        volume = {2}, number = {2}, pages = {2-100}, year = {2023},
        author = {SecondAuthor, SecondAuthor}
    }
\end{filecontents}

\begin{document}
    \tableofcontents
    \bibliographyunit[\chapter]
    \defaultbibliography{bib.bib}
    \defaultbibliographystyle{agsm}
    
    \chapter{First section}
    \section{First section}
    some text \cite{REF1} more text more citations
    \newpage
    \putbib
    
    \chapter{Second and last section}
    \section{Second section}
    some text \cite{REF1} and \cite{REF2} more text more citations
    \newpage
    \putbib
\end{document}

Гиперссылка на вторую ссылку REF1 ведет к библиографии первой главы, хотя она встречается во второй главе.

Как сделать гиперссылку на втором маршруте цитирования REF1 на библиографию второй главы?

Связанный контент