制作不带引用内容的 Bibtex 参考页

制作不带引用内容的 Bibtex 参考页

好的,这是我的情况,我被告知要使用它bibtex来满足我所有的参考/参考书目需求。

我创建了一个.bib文件,放入一些条目进行测试,并将我需要的两行代码放在主.tex文件中。

\bibliography{bibtex}
\bibliographystyle{plain}

因此,问题在于,参考文献列表完全是空的,除非我在文章的任何时候引用过它们一次 - 我猜是因为它们是自动编号的?(编译器告诉我它找不到任何引用命令aux,这被认为是一个错误)

我已经拥有想要放入 MS Word 文件的所有条目,因此我只想将它们复制过来并以参考文献列表的形式很好地显示出来。

不引用的话可以吗?因为坦白说,我甚至不知道我何时何地使用过它们……而且我不想\cite再输入 50 次。:(

有人能告诉我我应该告诉编译器只显示文档中的内容(像任何其他列表一样)而不关心我是否引用了它吗?

答案1

使用以下 MWE,您可以看到如何在参考书目中显示未引用的 bib 条目。您需要使用的命令很简单\nocite{*}。这意味着所有 ( *) 未引用的 bib 条目也会显示在参考书目中。

使用以下 MWE

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Book{Goossens,
  author    = {Goossens, Michel and Mittelbach, Frank and 
               Samarin, Alexander},
  title     = {The LaTeX Companion},
  edition   = {1},
  publisher = {Addison-Wesley},
  location  = {Reading, Mass.},
  year      = {1994},
}
@Book{adams,
  title     = {The Restaurant at the End of the Universe},
  author    = {Douglas Adams},
  series    = {The Hitchhiker's Guide to the Galaxy},
  publisher = {Pan Macmillan},
  year      = {1980},
}
article{einstein,
  author  = {Albert Einstein},
  title   = {{Zur Elektrodynamik bewegter K{\"o}rper}. ({German}) 
             [{On} the electrodynamics of moving bodies]},
  journal = {Annalen der Physik},
  volume  = {322},
  number  = {10},
  pages   = {891--921},
  year    = {1905},
  DOI     = {http://dx.doi.org/10.1002/andp.19053221004},
}
@article{Ross2006,
  title     = {Treating the right patient at the right time: 
               access to heart failure care},
  author    = {Ross, H and Howlett, J and Arnold, J Malcolm O and 
               Liu, P and O’Neill, BJ and Brophy, JM and Simpson, CS and 
               Sholdice, MM and Knudtson, M and Ross, DB and others},
  journal   = {Canadian journal of Cardiology},
  volume    = {22},
  number    = {9},
  pages     = {749--754},
  year      = {2006},
  publisher = {Elsevier},
}
@article{Heidenreich2013,
  title     = {Forecasting the impact of heart failure in the 
               United States a policy statement from the American Heart Association},
  author    = {Heidenreich, Paul A and Albert, Nancy M and 
               Allen, Larry A and Bluemke, David A and Butler, Javed and 
               Fonarow, Gregg C and Ikonomidis, John S and Khavjou, Olga 
               and Konstam, Marvin A and Maddox, Thomas M and others},
  journal   = {Circulation: Heart Failure},
  volume    = {6},
  number    = {3},
  pages     = {606--619},
  year      = {2013},
  publisher = {Am Heart Assoc},
}
@book{mschinLearning,
  author    = {Tom M. Mitchell}, 
  title     = {Machine learning},
  publisher = {Mac Gew Hill},
  year      = 1997,
  volume    = 4,
  series    = 10,
  address   = {The address},
  edition   = 3,
  month     = 7,
  note      = {An optional note},
  isbn      = {0071154671},
}
@misc{mozart:KV183,
  author  = {Mozart, Wolfgang Amadeus},
  title   = {Sinfonie g-Moll},
  year    = {1773},
  address = {Salzburg},
  note    = {New K{\"o}chelverzeichnis Nr. 183, old version Nr. 25; 
             Erster Satz: Allegro con brio, Zweiter Satz: Andante, 
             Dritter Satz: Menuetto, Vierter Satz: Allegro},
}
\end{filecontents*}


\documentclass[10pt,a4paper]{article}


\begin{document}

\nocite{*} % to test all bib entrys <===================================
\bibliographystyle{plain}
\bibliography{\jobname} % <====== use bib file created with filecontents

\end{document}

你得到了想要的结果:

生成的 pdf

相关内容