我该如何整理我的参考书目?

我该如何整理我的参考书目?
Warning--entry type for "antimatteruses" isn't style-file defined
--line 21 of file antimatter.bib

Warning--entry type for "antimatterbombs" isn't style-file defined
--line 31 of file antimatter.bib

Warning--to sort, need author or key in antimatteruses

(There were 3 warnings).

这些警告不断出现,但我遇到的另一个大问题是,当我第一次运行 LaTex 并尝试添加参考书目时,它会清除我的

.bib文件

@mastersthesis{antiprotonanduranium, 
   Author = {Hans-Peter Duerr and Edward Teller}, 
   Date-Added = {2017-02-09 19:56:07 +0000}, 
   Date-Modified = {2017-02-09 20:05:25 +0000}, 
   Rating = {5}, 
   Read = {1}, 
   School = {University of California}, 
   Title = {Interaction of antiprotons with nuclear fields}, 
   Year = {1956}
}
@online{antimatterbombs, 
   Author = {Andre Gsponer and Jean-Pierre Hurni}, 
   Date-Added = {2017-02-09 19:51:42 +0000}, 
   Date-Modified = {2017-02-10 14:55:40 +0000}, 
   Rating = {4}, 
   Read = {1}, 
   Title = {Antimatter Weapons}, 
   Url = {cui.unige.ch/isi/sscr/phys/antim-BPP.html}, 
   Bdsk-Url-1 = {cui.unige.ch/isi/sscr/phys/antim-BPP.html}
}

答案1

您可以忽略警告。如果您选择的书目样式无法识别给定的条目类型(例如@webpage),@misc则将使用默认条目类型。

确保你使用的书目样式知道如何处理名为 的字段url。在下面的代码中,我使用plainnat书目样式以及natbib引文管理包。

在此处输入图片描述

\RequirePackage{filecontents}
\begin{filecontents}{mybib.bib}
@mastersthesis{antiprotonanduranium, 
   Author = {Hans-Peter Duerr and Edward Teller}, 
   Date-Added = {2017-02-09 19:56:07 +0000}, 
   Date-Modified = {2017-02-09 20:05:25 +0000}, 
   Rating = {5}, 
   Read = {1}, 
   School = {University of California}, 
   Title = {Interaction of antiprotons with nuclear fields}, 
   Year = {1956}
}
@online{antimatterbombs, 
   Author = {Andre Gsponer and Jean-Pierre Hurni}, 
   Date-Added = {2017-02-09 19:51:42 +0000}, 
   Date-Modified = {2017-02-10 14:55:40 +0000}, 
   Rating = {4}, 
   Read = {1}, 
   Title = {Antimatter Weapons}, 
   Url = {cui.unige.ch/isi/sscr/phys/antim-BPP.html}, 
   Bdsk-Url-1 = {cui.unige.ch/isi/sscr/phys/antim-BPP.html}
}
\end{filecontents}

\documentclass{article}
\usepackage[hyphens,spaces]{url}
\usepackage[colorlinks,allcolors=blue]{hyperref}
\usepackage[numbers,sort&compress]{natbib}
\bibliographystyle{plainnat}

\begin{document}
\cite{antimatterbombs,antiprotonanduranium}
\bibliography{mybib}
\end{document}

相关内容