如何在乳胶中设置两个参考书目?

如何在乳胶中设置两个参考书目?
\newsection
\phantomsection
\addcontentsline{toc}{chapter}{Bibliography}
\bibliography{bibliography}{}
\bibliographystyle{unsrt}       

\newsection
\phantomsection
\addcontentsline{toc}{chapter}{Bibliography_ilustration}
\bibliography{bibliography_ilustration}{}
\bibliographystyle{unsrt}

但是当我使用时出现了一些错误\cite{item_from_bibliography_ilustration}

答案1

您可能对 的使用感兴趣multibib。此包允许您首先在文档中打印多个参考书目,其次,使用多个.bib文件来执行此操作。

例如:

\documentclass{article}

\usepackage{filecontents}

\begin{filecontents}{bibliography.bib}
@Book{Knuth:1990,
    author    = {Knuth, Donald E.},
    title     = {The {\TeX}book},
    year      = {1990},
    isbn      = {0-201-13447-0},
    publisher = {Addison\,\textendash\,Wesley},
}

@Book{Lamport:94,
    author    = {Lamport, Leslie},
    title     = {{\LaTeX}: A Document Preparation System},
    year      = {1994},
    isbn      = {0-021-52983-1},
    publisher = {Addison\,\textendash\,Wesley},
}
\end{filecontents}

\begin{filecontents}{bibliography_ilustration.bib}
@article{Olfati:2004,
  title   = {Consensus problems in networks of agents with switching topology and time-delays},
  author  = {Olfati-Saber, Reza and Murray, Richard M},
  journal = {IEEE Transactions on automatic control},
  volume  = {49},
  number  = {9},
  pages   = {1520--1533},
  year    = {2004}
}
\end{filecontents}

\usepackage{multibib}
    \newcites{secone,sectwo}{References for section 1, References for section 2}

\begin{document}

\section{Section 1}

    \citesecone{Knuth:1990}

    \bibliographystylesecone{unsrt}       
    \bibliographysecone{bibliography}{}

\section{Section 2}

    \citesectwo{Olfati:2004}

    \bibliographystylesectwo{unsrt}
    \bibliographysectwo{bibliography_ilustration}{}

\end{document}

结果是:

结果代码

但是,使用multibib这种方式,你必须bibtex为每个参考书目运行:

bibtex secone
bibtex sectwo
...

这个答案.bib仅使用一个文件和几种参考书目样式就可以完成同样的事情。

相关内容