我正在尝试使用 APA 格式的 biblatex 引用一个网站。
然而,引用是错误的,即文内引用如下所示,[1]
而不是(Author, Year)
参考书目也一样,不应有[1]
。它应该看起来像这样:
Inc. How to Conduct Competitive Research. May 2010. URL : https://www.inc.com/guides/2010/05/conducting-competitive-research. html.
而不是像这样:
[1] Inc. How to Conduct Competitive Research. May 2010. URL : https://www.inc.com/guides/2010/05/conducting-competitive-research. html.
这是我的 .tex 文件的设置方式:
\documentclass{article}
\usepackage{graphicx}
\usepackage{float}
\usepackage{times}
\usepackage{hyperref}
\usepackage{indentfirst}
\usepackage{csquotes}
\usepackage[backend = biber, hyperref,backref = true style=apa]
{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\addbibresource{mybib.bib}
\usepackage{wallpaper}
\AddToShipoutPictureBG{%
\AtPageUpperLeft{\raisebox{-\height}{\includegraphics[width=1.5in]
{LetterHead.png}}}%
}
\begin{document}
Some text that I am citing \autocite{Inc:2010:Online}
\printbibliography
\end{document}
这就是我的 .bib 文件的设置方式
@Online{Inc:2010:Online,
author = {Inc},
title = {How to Conduct Competitive Research},
month = {May},
year = {2010},
url = {https://www.inc.com/guides/2010/05/conducting-competitive-
research.html}
}
答案1
一些评论:
- 您的选项中缺少一个逗号
biblatex
。 - 您需要加载
babel
才能使用apa
biblatex 样式。 - 您应该
hyperref
按照包加载顺序最后加载;您不需要添加hyperref
为biblatex
选项。 Date
如果您使用biblatex
(即,5
而不是May
),则最好使用数字作为字段- 此
times
软件包已弃用。您应改用newtxtext
和newtxmath
软件包。
我从您的示例中删除了不相关的包和代码,并包含了您的示例.bib
项目,以filecontents
使文档自包含。
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Online{Inc:2010:Online,
author = {Inc},
title = {How to Conduct Competitive Research},
month = {5},
year = {2010},
url = {https://www.inc.com/guides/2010/05/conducting-competitive-research.html}
}
\end{filecontents*}
\usepackage{newtxtext,newtxmath}
\usepackage{csquotes}
\usepackage[american]{babel}
\usepackage[backend = biber, backref = true, style=apa]
{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\addbibresource{\jobname.bib}
\usepackage{hyperref}
\begin{document}
Some text that I am citing \autocite{Inc:2010:Online}
\printbibliography
\end{document}