这是一个非常具体的问题,但它让我抓狂。我希望我的输出看起来像这样:
作者,AA,作者,BB(出版日期)。文章标题。期刊名称、卷号、页码范围。检索自http://www.someaddress.com/full/url/
URL 的字体与参考文献的字体相同,并且参考文献末尾没有句号。
我的问题是我得到的 URL 使用了不同的字体,或者在引用的末尾出现了一个句点。
我的bib
文件看起来像这样:
@article{ rospa,
year = {n.d.},
title = {Seat Belts: A short history},
journal = {The Royal Society for the Prevention of Accidents},
howpublished = {Retrieved March 7, 2014, from
http://www.rospa.com/roadsafety/adviceandinformation/vehiclesafety/
in-carsafetycrash-worthiness/seat-belt-history.aspx}
}
@article{ ehow,
author = {Sefcik, Lisa},
title = {Seat belt law history},
journal = {eHow},
url = {http://www.ehow.com/facts\_5008257\_seat-belt-law-history.html},
urldate = {March 7, 2014},
year = {n.d,}
}
我的tex
文件看起来像这样:
\documentclass[man, apacite]{apa6}
\AtBeginDocument{\urlstyle{APACsame}}
\author{weirdesky}
\title{test}
\shorttitle{test}
\begin{document}
\maketitle
\cite{rospa}
\cite{ehow}
\bibliography{test}
\end{document}
我得到的 rospa 引文末尾有一个句号,而 ehow 引文的 url 则采用了奇怪的字体。
我环顾四周,发现\urlstyle{same} 与 apacite,并尝试使用该解决方案(尽管我不知道它到底有什么用),但没有奏效。有没有办法解决这个问题,还是我必须使用文字部分?
我尝试使用 \bibnodot{.},但收到未定义的控制序列错误。
答案1
\documentclass[man,apacite]{apa6}
\usepackage{url}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{ rospa,
year = {n.d.},
title = {Seat Belts: A short history},
journal = {The Royal Society for the Prevention of Accidents},
url = {http://www.rospa.com/roadsafety/adviceandinformation/vehiclesafety/
in-carsafetycrash-worthiness/seat-belt-history.aspx}
}
@article{ ehow,
author = {Sefcik, Lisa},
title = {Seat belt law history},
journal = {eHow},
url = {http://www.ehow.com/facts\_5008257\_seat-belt-law-history.html},
urldate = {March 7, 2014},
year = {n.d,}
}
\end{filecontents}
\author{weirdesky}
\title{test}
\shorttitle{test}
\begin{document}
\maketitle
\cite{rospa}
\cite{ehow}
\urlstyle{rm}% modify as appropriate
\bibliography{\jobname}
\end{document}
答案2
为了使用,\bibnodot{.}
你需要\usepackage{apacdoc}
在序言中加入。例如,对于以标点符号结尾的标题,它做需要做的事。但请注意,以问号结尾的标题似乎无需这种特殊处理就可以很好地处理。
在 LaTeX 中:
\usepackage{apacite} % APA style citations
\usepackage{apacdoc}
在 BibTeX 中:
@book{gabriel2002writer,
Author = {Gabriel, Richard P},
Publisher = {Addison-Wesley Longman Publishing Co., Inc.},
Title = {{W}riter's {W}orkshops and the {W}ork of {M}aking {T}hings: {P}atterns, {P}oetry$\ldots$\bibnodot{.}},
Year = {2002}}