我是 LateX 新手,目前在引用和参考文献方面遇到了问题。因此,我有包含参考书目所有元素的 References.bib 文件,还有包含文档实际内容的 Chapter_I.tex 文件。
当我需要引用某些内容时,我会在文中使用命令 \cite{KEY01},但是当我构建文件时,引用文档的名称和年份会出现两次,例如:
(作者,2017 年;作者,2017 年)
我文章中的每个引用都出现了这种情况(顺便说一句,我选择了 APA 格式引用)。有人知道我做错了什么吗?我该如何解决?谢谢
如果你需要的话,这里有一些代码
***这是我的 Reference.bib 文件的通用条目:
@online{WSJ01,
author = "Barnes, Julian, E. and Chin, Josh",
year = 2018,
month = "march",
day = "2",
title = "The New Arms Race in AI",
url = {\url{https://www.wsj.com/articles/the-new-arms-race-in-ai-1520009261}},
}
***这是我的 Chapter_I.tex 文件的一部分:
% !TEX encoding = UTF-8
\documentclass[
pdfa,
cucitura
corpo=11pt,
twoside,
stile=classica,
oldstyle,
autoretitolo,
tipotesi=magistrale,
english,
evenboxes,
]{toptesi}
\usepackage[
pdfpagemode={UseOutlines},
bookmarksopen,
pdfstartview=FitH,
colorlinks,
linkcolor=blue,
citecolor=red,
urlcolor=blue
]{hyperref}
\usepackage[Latin1]{inputenc}
\input{commands}
\usepackage{apacite}
\begin{document}
\chapter{Introduction}
The United States recognized the implication of researching about AI, especially in defense systems. In its budget for AI, the Pentagon spent almost \$7,4 billion, an increase of 32\% from the 5,6 B\$ spent in 2012. However, the public sector is struggling in establishing partnerships with the private sector because of concerns about how AI could be deployed to harm people \cite{WSJ01}.
\bibliography{References}
\bibliographystyle{apalike}
\end{document}