引用网页

引用网页

不知为何,我引用的引用不正确。我在网上查找解决方案,但不知为何就是找不到正确的引用。这是我的 latex 文件,其中包含使用过的包。

  \documentclass[english,12pt,oneside, a4paper]{article}
    \usepackage{graphicx}   % need for figures
\usepackage{verbatim}   % useful for program listings
\usepackage{color}      % use if color is used in text
\usepackage{subfigure}  % use for side-by-side figures
\usepackage{hyperref}   % use for hypertext links, including those to external documents and URLs
\usepackage{pstricks-add}
\usepackage[english]{babel}
\usepackage{amsmath,amsthm,amssymb,amsfonts,amscd,amsbsy,amsxtra}
\usepackage{stmaryrd}
\usepackage{tikz}
\usepackage{paralist}
\usepackage{changepage}
\usepackage{mathtools}
\usepackage{setspace}
\usepackage{tikz}
\usepackage{float}
\usepackage{url}
\usepackage{pst-all}
\usepackage{natbib}

\begin{document}
\citep{darpa16}

\newpage
\bibliographystyle{agsm}
\bibliography{auction}
\end{document}

现在是我的 bibtex 文件

@ONLINE{darpa16,
author = {Cheryl Pellerino},
title = {Three Teams Earn Prizes in DARPA Cyber Grand Challenge},
year = {2016},
url = {https://www.defense.gov/News/Article/Article/906931/three-teams-earn-prizes-in-darpa-cyber-grand-challenge}
}

我错过了什么?

答案1

bibstyleagsm不知道条目类型online,这已经由 bibtex 运行报告:

This is BibTeX, Version 0.99d (TeX Live 2016)
The top-level auxiliary file: zzz2.aux
The style file: agsm.bst
Database file #1: auction.bib
Warning--entry type for "darpa16" isn't style-file defined
--line 1 of file auction.bib
(There was 1 warning)

不要使用natbib和 ,而要bibtex使用 newbiblatexbiber

[...]
\usepackage[style=authoryear]{biblatex}
\addbibresource{auction.bib}

\begin{document}
 \parencite{darpa16}

\newpage
\printbibliography
\end{document}

在此处输入图片描述

相关内容