@misc bibtex 条目引用不正确

@misc bibtex 条目引用不正确

我使用 @misc bibtex 条目在我的论文中引用政府网站。参考书目编译得很好,但在文本中引用了两次。例如文本文本(引用,引用)。

任何想法,将不胜感激。

\documentclass{report}
\usepackage{natbib}

bibtex 条目:

@misc{kinaSUR,
    author = {{Ministry for Primary Industries}},
    title = {{Kina sea urchin regions in NZ}},
    howpublished = {\url{http://fs.fish.govt.nz/Page.aspx?pk=7\&sc=SUR}},
    note = {Online; accessed 29 January 2014} 

作者的双括号确保排版正确,否则它会尝试将其变成姓和名,结果会乱成一团。这可能是问题所在,但这是我能让作者正确排版的唯一方法。

欢迎提出建议。谢谢

\documentclass{report}
\usepackage{natbib} 
\begin{document}
\bibliographystyle{otago} 
\bibliography{thesis}
\citep{kinaSUR}
\end{document}

bibtex 条目位于上方

答案1

otago.bst为了测试,我从此网站下载了文件:http://otago.libguides.com/content.php?pid=172484&sid=1451535

问题取决于您的输入类型。样式otago和结果输出需要一个字段year。因此,如果您修改输入,它就会起作用。

正确的 BibTeX 条目:

@misc{kinaSUR,
    author = "{Ministry for Primary Industries}",
    title = {{Kina sea urchin regions in NZ}},
    howpublished = {\url{http://fs.fish.govt.nz/Page.aspx?pk=7&sc=SUR}},
    note = {Online; accessed 29 January 2014} ,
    year=2013,
}

以下是完整的 MWE:

\RequirePackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{kinaSUR,
    author = "{Ministry for Primary Industries}",
    title = {{Kina sea urchin regions in NZ}},
    howpublished = {\url{http://fs.fish.govt.nz/Page.aspx?pk=7&sc=SUR}},
    note = {Online; accessed 29 January 2014} ,
    year=2013,
}
\end{filecontents}
\documentclass{report}
\usepackage{natbib}
\usepackage{url}

\begin{document}
\cite{kinaSUR}

\bibliographystyle{otago} 
\bibliography{\jobname}
\end{document}

在此处输入图片描述

答案2

我建议使用filecontents环境没有 filecontents包,因为自 2019 更新以来,不再需要此包。这是更新后的 MWE:

\documentclass{article}
\usepackage[style=numeric]{biblatex}

\begin{filecontents}{references.bib}
@misc{kinaSUR,
    author = "{Ministry for Primary Industries}",
    title = {{Kina sea urchin regions in NZ}},
    howpublished = {\url{http://fs.fish.govt.nz/Page.aspx?pk=7&sc=SUR}},
    note = {Online; accessed 29 January 2014} ,
    year=2013,
}
\end{filecontents}
\addbibresource{references.bib}

\title{My article}
\author{John Doe}

\begin{document}
\maketitle
\section{Introduction}

Here's the reference: \cite{kinaSUR}

\printbibliography
\end{document}

相关内容