如何从不同的文件类型添加参考文献:.bib 和 .text

如何从不同的文件类型添加参考文献:.bib 和 .text

我正在研究“universe”的背面示例。我想尝试向当前(使用 bib)参考列表添加引用。但我想使用 tex 文件。

有没有办法将 tex 文件与 bib 文件一起添加?

我有这个:

\documentclass{article}
\usepackage[utf8]{inputenc}

\title{Universe}
\author{Overleaf}
\date{September 2020}

\usepackage{natbib}
\usepackage{graphicx}

\begin{document}

\maketitle

\section{Introduction}
There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.
There is another theory which states that this has already happened.

\section{Conclusion}
``I always thought something was fundamentally wrong with the universe'' \citep{adams1995hitchhiker}

\bibliographystyle{plain}
\bibliography{references}
\end{document}

看起来reference.bib像这样:

@book{adams1995hitchhiker,
  title={The Hitchhiker's Guide to the Galaxy},
  author={Adams, D.},
  isbn={9781417642595},
  url={http://books.google.com/books?id=W-xMPgAACAAJ},
  year={1995},
  publisher={San Val}
}

看起来ref.tex像这样:

@article{PhysRev.47.777,
  title = {Can Quantum-Mechanical Description of Physical Reality Be Considered Complete?},
  author = {Einstein, A. and Podolsky, B. and Rosen, N.},
  journal = {Phys. Rev.},
  volume = {47},
  issue = {10},
  pages = {777--780},
  numpages = {0},
  year = {1935},
  month = {May},
  publisher = {American Physical Society},
  doi = {10.1103/PhysRev.47.777},
  url = {https://link.aps.org/doi/10.1103/PhysRev.47.777}
}

当我尝试添加到ref.tex时,bibliography我没有得到任何输出。

我在主 tex 文件中执行了此操作bibliography

\bibliography{references,ref}

但没有用。我是否应该先导入任何包,以便它像上面一样在 bib 文件之后引用 tex 文件?

当前输出为:

在此处输入图片描述

我希望 ref.tex 也遵循 [2] 中的这一内容。

相关内容