https://www.douban.com/note/331370169/ 参照该方法为每章添加独立参考文献,但加上这一句,所有文中引用会成问号,且章末无参考文献;注释后一切正常,请问如何解决?

\documentclass{book}
\usepackage[sectionbib]{chapterbib}
\usepackage{hologo}
\usepackage[super]{gbt7714}
\begin{document}
\include{chp/chp1}
\include{chp/chp2}
\end{document}

chp1内容为
\chapter{chapter 1}
this is chapter 1.\cite{RN202}\cite{RN203}
\bibliography{LI}

chp2内容为
\chapter{chapter 2}
this is chapter 2.
\cite{RN202}
\bibliography{LI}

3 回答3

1
1. 在同时使用 `chapterbib` 和 `gbt7714` 宏包时,要传递选项 `sectionbib` 给 `gbt7714` ```tex % 增加宏包选项 sectionbib \usepackage[super, sectionbib]{gbt7714} ``` 1. 需要**手动**在每个子文件里使用 `\bibliographystyle` 命令加载 bst 文件。参考 https://github.com/CTeX-org/gbt7714-bibtex-style/issues/48#issuecomment-584223600 1. 为生成的 `chp1.aux` 和 `chp2.aux` 分别执行一次 bibtex。 参考资料:`texdoc chapterbib`, _Introduction_ > The main point is to allow you to use BibTeX: Each included file should have its own `\bibliographystyle` and `\bibliography` commands, and you should run bibtex on each included file separately rather than on the main or root file.

作者追问:2020-02-10 21:09

附件 ![](/static/images/ext/zip.gif)chp.zip
0
正常是没问题的,文件不全无法测试。总体代码是没问题的。

作者追问:2020-02-10 19:48

提问没有加.bib文件 @ARTICLE{RN203, author = {Kruger, W.D}, title = {Determining Areal Permeability Distribution by Calculations}, journal = {Journal of Petroleum Technology}, year = {1961}, volume = {13}, number = {7}, pages = {691-696}, } @ARTICLE{RN202, author = {Kruger, W.D}, title = {Determining Areal Permeability Distribution by Calculations}, journal = {Journal of Petroleum Technology}, year = {1961}, volume = {13}, number = {7}, pages = {691-696}, }
  • @ARTICLE{RN203, author = {Kruger, W.D}, title = {Determining Areal Permeability Dis – 奥特曼要打小怪兽 2020-02-10 19:48 回复
0
请重新编辑问题…… 注意使用代码块……

你的回答

请登录后回答

你的回答将会帮助更多人,请务必认真回答问题。