如何新增不同文件類型的引用:.bib 和 .text

如何新增不同文件類型的引用:.bib 和 .text

我正在研究“宇宙”的背頁示例。我想嘗試添加對當前(使用圍脖)參考文獻列表的引用。但我想使用 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.texbibliography我沒有得到任何輸出。

我在主 tex 檔中這樣做了bibliography

\bibliography{references,ref}

但沒有成功。是否有任何我應該首先導入的包,以便它像上面一樣工作以在 bib 文件之後引用 tex 文件?

當前輸出為:

在此輸入影像描述

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

相關內容