I am writing my thesis and the document (in book
class) contains multiple lists of references, one per chapter. Thus, I am using multibib
package and the command \newcites
to group the citations in the correct lists. I am combining that with natbib
, since I want the apa
style. Further, I am using hyperref
package to generate the hyperlinks all over the document.
I have references that are repeated in different reference lists, since they are cited in different chapters.
My problem is that hyperref always point such citations to the first reference list where it appears. For instance, if a specific citation appears twice in chapter I and chapter II, the hyperref will point the citation in chapter II to the reference list of chapter I and not to the list of chapter II.
Here you have the relevant code:
\RequirePackage{filecontents}
\begin{filecontents*}{bibliotest.bib}
@article{author2014,
author = "Author",
title = "Title of the paper",
journal = "The Journal",
volume = "1",
number = "1",
pages = "1-2",
month = "September",
year = "2014",
}
\end{filecontents*}
\documentclass[a4paper,11pt,english,pdftex]{book}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[pdftex]{color,graphicx}
\usepackage{float}
\usepackage{hyperref}
%citation Harvard style
\usepackage{natbib}
\bibpunct{(}{)}{;}{a}{,}{,}
%Multiple reference sections (per chapter)
\usepackage{multibib}
\def\@mb@citenamelist{cite,citep,citet,citealp,citealt}
\newcites{oneintro}{References 1}
\newcites{twomatproc}{References 2}
\begin{document}
\chapter{Intro}
I am citing for the first time this reference here. \citeponeintro{author2014}
%%%%%%%%The Biliography%%%%%%%%%%%%%%
\renewcommand{\bibname}{References 1}
\bibliographystyleoneintro{apa}
\bibliographyoneintro{bibliotest}
\chapter{Methods}
And now, I am citing it once again in this chapter. \citeptwomatproc{author2014}
%%%%%%%%%The bibliography%%%%%%%%%%%%
\renewcommand{\bibname}{References 2}
\bibliographystyletwomatproc{apa}
\bibliographytwomatproc{bibliotest}
\end{document}
The .bib
file is included in the MWE with package filelists
.
I have tried to debug this problem looking for answers on the internet but without success. Could you help me?
\documentclass{...}
and ending with\end{document}
. – user31729 Sep 5 '14 at 19:14