[Tex/LaTex] How to get references at the end of each chapter

bibliographiesmultibib

I want to get references at the end of each chapter. references are in bib files. Please help me. I also want to write the title of each chapter.

    \documentclass[twoside]{book}
\usepackage[paperwidth=7.25in, paperheight=9.5in,bindingoffset=.75in]{geometry}
\usepackage{fancyhdr,graphicx,lipsum,multibib}
\usepackage{natbib}
\usepackage{chapterbib}
\usepackage{abstract}
\renewenvironment{abstract}[1]
{\begin{quote}
\noindent \rule{\linewidth}{.5pt}\par{\bfseries Abstract.} #1}
{\medskip\noindent \rule{\linewidth}{.5pt}
\end{quote}
}
\pagestyle{fancy}
\fancyhead[LO]{\includegraphics[width=1.5cm,height=1.5cm,keepaspectratio]{example-image-a}}
\fancyhead[RE]{\includegraphics[width=1.5cm,height=1.5cm,keepaspectratio]{example-image-b}}
\setlength{\headheight}{47.0pt}
\begin{document}
\include{ch1}
\include{ch2}
\end{document}

Ch1 file

         \begin{abstract}
    Each chapter should be preceded   \cite{celik2009allee} ....
    \end{abstract}
      \bibliography{bibtex_1}
    \bibliographystyle{plain}

ch2 file

        \begin{abstract}
        Each chapter should be preceded  \cite{guin2014spatial} ....
        \end{abstract}
          \bibliography{bibtex_2}
        \bibliographystyle{plain}

bibtex_1

@article{celik2009allee,
  title={Allee effect in a discrete-time predator--prey system},
  author={Celik, Canan and Duman, Oktay},
  journal={Chaos, Solitons \& Fractals},
  volume={40},
  number={4},
  pages={1956--1962},
  year={2009},
  publisher={Elsevier}
}
@article{gao2013dynamics,
  title={DYNAMICS OF A RATIO-DEPENDENT PREDATOR-PREY SYSTEM WITH A STRONG ALLEE EFFECT.},
  author={Gao, Yujing and Li, Bingtuan},
  journal={Discrete \& Continuous Dynamical Systems-Series B},
  volume={18},
  number={9},
  year={2013}
}

bibtex_2 file

@article{guin2014spatial,
  title={Spatiotemporal dynamics of reaction--diffusion models of interacting populations},
  author={Guin, L N and Mandal, P K},
  journal={Applied Mathematical Modelling},
  year={http://dx.doi.org/10.1016/j.apm.2014.02.022},
  publisher={Elsevier}
}
@article{freedman1979stability,
  title={Stability analysis of a predator-prey system with mutual interference and density-dependent death rates},
  author={Freedman, HI},
  journal={Bulletin of Mathematical Biology},
  volume={41},
  number={1},
  pages={67--78},
  year={1979},
  publisher={Springer}
}

Best Answer

  • I removed packages not relevant to the problem.
  • book does not have an abstract environment. In order to get the code to compile, I had to remove the use of the package abstract and substitute \renewcommand... for \newcommand....

Problems relevant to the question:

  • http://dx.doi.org/10.1016/j.apm.2014.02.022 is not a year and you cannot persuade bibtex to accept it as one. I made this a url field.
  • multibib appears to hang compilation, probably because it does not entirely agree with chapterbib though I did not investigate. Instead, I removed it.
  • plain is not compatible with author-year citations which causes natbib to complain. However, if you continue compilation, it is fine - it just uses numerical labels instead. You should consider using plainnat instead, which is natbib's and will still get you numerical citations, without complaints.

Then it works fine. At least, the use of rules is weird but that's an issue with your definition of abstract and not anything to do with bibliographies.

Code

\begin{filecontents}{ch1.tex}
  \begin{abstract}
    Each chapter should be preceded   \cite{celik2009allee} ....
  \end{abstract}
  \bibliography{bib1}
  \bibliographystyle{plain}
\end{filecontents}
\begin{filecontents}{ch2.tex}
  \begin{abstract}
    Each chapter should be preceded  \cite{guin2014spatial} ....
  \end{abstract}
  \bibliography{bib2}
  \bibliographystyle{plain}
\end{filecontents}
\begin{filecontents}{bib1.bib}
  @article{celik2009allee,
    title={Allee effect in a discrete-time predator--prey system},
    author={Celik, Canan and Duman, Oktay},
    journal={Chaos, Solitons \& Fractals},
    volume={40},
    number={4},
    pages={1956--1962},
    year={2009},
    publisher={Elsevier}
  }
  @article{gao2013dynamics,
    title={DYNAMICS OF A RATIO-DEPENDENT PREDATOR-PREY SYSTEM WITH A STRONG ALLEE EFFECT.},
    author={Gao, Yujing and Li, Bingtuan},
    journal={Discrete \& Continuous Dynamical Systems-Series B},
    volume={18},
    number={9},
    year={2013}
  }
\end{filecontents}
\begin{filecontents}{bib2.bib}
  @article{guin2014spatial,
    title={Spatiotemporal dynamics of reaction--diffusion models of interacting populations},
    author={Guin, L N and Mandal, P K},
    journal={Applied Mathematical Modelling},
    url={http://dx.doi.org/10.1016/j.apm.2014.02.022},
    publisher={Elsevier}
  }
  @article{freedman1979stability,
    title={Stability analysis of a predator-prey system with mutual interference and density-dependent death rates},
    author={Freedman, HI},
    journal={Bulletin of Mathematical Biology},
    volume={41},
    number={1},
    pages={67--78},
    year={1979},
    publisher={Springer}
  }
\end{filecontents}
\documentclass{book}
\usepackage{natbib}
\usepackage{chapterbib}
\newenvironment{abstract}[1]
{\begin{quote}
    \noindent \rule{\linewidth}{.5pt}\par{\bfseries Abstract.} #1}
  {\medskip\noindent \rule{\linewidth}{.5pt}
  \end{quote}
}
\begin{document}
  \include{ch1}
  \include{ch2}
\end{document}
Related Question