[Tex/LaTex] multibib – hyperref doesn’t work for the second bibliography

bibliographieshyperrefmultibibsubdividing

I am using the multibib and hyperref packages.
I would like to create clickable citations for my bibliographies.
It works for the first one (biblio.bib) but not the second one (awebsite.bib)

Here is my minimal working example.

\documentclass[utf8]{article}
\usepackage[english]{babel}

\usepackage{multibib}
\newcites{awebsite}{Another bibliography}

\usepackage[colorlinks=true]{hyperref}

\begin{document}
The quick brown fox \cite[p.4]{article} jumps over
\cite[p.5]{articleweb} the lazy dog \citeawebsite[p.6]{articleweb}.

\bibliographystyle{plain}
\bibliography{biblio}

\bibliographystyleawebsite{plain}
\bibliographyawebsite{awebsite}

\end{document}

The two BIB files (biblio.bib and awebsite.bib) are herebelow.

@inproceedings{article, title = "{Title}", author = "Authors", booktitle = "{BT}"}

@article{articleweb, author = {A}, title = "{Title2}", year = {2013}, note = {\url{URL}}}

And there is the result (PDF)…


The quick brown fox [1, p.4] jumps over [2, p.5] the lazy dog [2, p.6].

References

[1] Authors. Title. In BT.

Another bibliography

[2] A. Title2. 2013. URL.


The first link to References [1] is created but not the two others. Why ?

Thanks in advance for any suggestions on how to fix this.

Best Answer

Since multibib supports natbib, and natbib supports hyperref, load natbib, too.

\documentclass{article}
\usepackage[english]{babel}

\usepackage{filecontents}
\begin{filecontents}{biblio.bib}
  @inproceedings{article, title = "{Title}", author = "Authors", booktitle = "{BT}"}
\end{filecontents}
\begin{filecontents}{awebsite.bib}
  @article{articleweb, author = {A}, title = "{Title2}", year = {2013}, note = {\url{URL}}}
\end{filecontents}

\usepackage{natbib}         %% load this, too
\usepackage{multibib}
\newcites{awebsite}{Another bibliography}

\usepackage[colorlinks=true]{hyperref}

\begin{document}
The quick brown fox \cite[p.4]{article} jumps over
\cite[p.5]{articleweb} the lazy dog \citeawebsite[p.6]{articleweb}.

\bibliographystyle{plain}
\bibliography{biblio}

\bibliographystyleawebsite{plain}
\bibliographyawebsite{awebsite}
\end{document}

gives

sample output

Related Question