多个参考文献和 bibtex 文件

多个参考文献和 bibtex 文件

我想创建一个单一的乳胶文件,可以在其中添加许多 bibtex 文件(或者只有一个,但有不同的部分)。

举例来说,我理想情况下只想要一个如下所示的文档:

Literature Review 1
[1] Author1, "MCMC sampling", 2015
[2] Author2, "Stochastic Gradient Descent", 2017

Literature Review 2
[1] AuthorA, "SIFT key point descriptors", 2018
[2] AuthorB, "HOG for pedestrian detection", 2012

与我使用引用时通常的样子不同:

References
[1] Author1, "MCMC sampling", 2015
[2] Author2, "Stochastic Gradient Descent", 2017
[3] AuthorA, "SIFT key point descriptors", 2018
[4] AuthorB, "HOG for pedestrian detection", 2012

到目前为止,这是我的策略:

\usepackage{etoolbox}

\patchcmd{\ComputerVision}{\chapter*}{\section*}{}{}
\patchcmd{\MachineLearning}{\chapter*}{\section*}{}{}

\begin{document}
\input{ComputerVision}
\input{MachineLearning}
\end{document}

ComputerVision.tex 是以下文件:

\renewcommand\refname{Computer Vision}

{\small
\bibliographystyle{ieee}
\bibliography{egbib_CV}
}

MachineLearning.tex 是以下文件:

\renewcommand\refname{Machine Learning}

{\small
\bibliographystyle{ieee}
\bibliography{egbib_ML}
}

egbib_ML.bib 是:

@article{hash1,
  title={MCMC sampling},
  author={Author1},
  year={2015}
}

@article{hash2,
  title={Stochastic Gradient Descent},
  author={Author2},
  year={2017}
}

egbib_CV.bib 是:

@article{hashA,
  title={SIFT key point detector},
  author={AuthorA},
  year={2018}
}

@article{hashB,
  title={HOG for pedestrian detection},
  author={AuthorB},
  year={2012}
}

我得到的输出看起来就像这样(一切都重复......):

Literature Review 1
[1] Author1, "MCMC sampling", 2015
[2] Author2, "Stochastic Gradient Descent", 2017
[3] AuthorA, "SIFT key point descriptors", 2018
[4] AuthorB, "HOG for pedestrian detection", 2012

Literature Review 2
[1] Author1, "MCMC sampling", 2015
[2] Author2, "Stochastic Gradient Descent", 2017
[3] AuthorA, "SIFT key point descriptors", 2018
[4] AuthorB, "HOG for pedestrian detection", 2012

相关内容