natbib 依章節列出的參考書目

natbib 依章節列出的參考書目

我有 3 篇文章需要彙編成一篇論文。每篇文章都是用 Latex 寫的。每篇文章都有單獨的參考書目。每個參考書目中的一些參考文獻可能會重疊/重複。

我需要使用 natbib 作為參考書目,因為我必須使用特定的參考書目樣式(讓我們稱之為“styleA”)。我在網上尋找解決方案,但我只能找到有關依賴刪除 natbib 的解決方案的資訊。我一直在嘗試執行以下操作,但沒有成功:

\documentclass[12pt, a4paper]{report}
\usepackage{natbib}
\bibliographystyle{StyleA}
\begin{document}
\section*{Introduction}

\newpage

\tableofcontents

\newpage

\input{Chapter1.tex}
\newpage
\input{Chapter2.tex}
\newpage
\input{Chapter3.tex}

\end{document}

每一章都要求以下內容:

\addcontentsline{toc}{section}{References}
\bibliography{bibliographyfile} % I change the filename of the bibliography at each chapter

到目前為止,我得到了第1 章的正確參考書目,但隨後它在第2 章和第3 章中重複了相同的參考書目。 Latex 在第2 章和第2 章中報告問號) 3)。有人對如何使用 natbib 在每一章上有單獨的參考書目有什麼建議嗎?謝謝!

答案1

  • 將選項新增[sectionbib]至 natbib。
  • 新增 \usepackage{chapterbib}
  • \newpage \input{ }改成\include{ }
  • \bibliographystyle{StyleA}在每個之前插入\bibliography
  • 運行 *latex,在每個章節檔案上運行 bibtex,運行 *latex,運行 *latex。

相關內容