我对 LaTeX 还很陌生,我需要一个全面的解决方案来完成我的论文
我已经遇到这个问题两天了,并且在其他帖子中找不到任何解决方案。
我在 Mac 上使用 BibDesk,并且使用了 Packagesapacite
和natbib
@article{Ha89,
Author = {Peter M. Haas},
Date-Added = {2017-02-06 21:15:57 +0000},
Date-Modified = {2017-02-06 21:45:06 +0000},
Journal = {International Organization},
Lastchecked = {03/02/2010 12:54},
Number = {3},
Pages = {377-403},
Publisher = {Peter Haas},
Read = {0},
Title = {Do regimes matter? Epistemic communities and Mediterranean pollution control},
Urldate = { http://www.jstor.org/stable/2706652},
Volume = {43},
Year = {1989}}
这是我的文档的精简版:
\documentclass[11pt, oneside]{article}
\usepackage{lipsum}
\usepackage[margin=1in, left=1.5in, includefoot]{geometry}
\usepackage{ragged2e}
% REFERENCE PREAMBLE
%\usepackage{url}
\usepackage{apacite}
\usepackage{natbib}
%\usepackage{biblatex-apa}
% Bullet preamble
\renewcommand{\labelitemi}{$\bullet$}
\renewcommand{\labelitemii}{$\diamond$}
\renewcommand{\labelitemiii}{$\circ$}
% graphics preamble
\usepackage{graphicx} %Allows you to import images
\usepackage{float} %Allows for control of float positions
%HEADER AND FOOTER STUFF
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{graphicx}
\usepackage{amssymb}
%Zeilenabstand 1,5 wenn aktiviert
\usepackage{setspace}\makeatletter\newcommand{\MSonehalfspacing}{\setstretch{1.44}\ifcase \@ptsize \relax\setstretch {1.448}\or\setstretch {1.399}\or\setstretch {1.433}\fi}\newcommand{\MSdoublespacing}{\setstretch {1.92}\ifcase \@ptsize \relax\setstretch {1.936}\or\setstretch {1.866}\or\setstretch{1.902}\fi}\makeatother\MSonehalfspacing %Zeilenabstand Code fertig
\usepackage[hidelinks]{hyperref} %allows for clickable reference
% BEGIN OF DOCUMENT
\citeA{source}
% REFERENCES
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
\rhead{\fancyplain{}{Identifying the Regime}}
\lhead{\fancyplain{}{List of References}}
\cfoot{\fancyplain{}{\thepage}}
\setlength\bibitemsep{1.9\itemsep}
\bibliography{/User/Desktop/Thesis/references/mybib.bib}
\bibliographystyle{apa}
\addcontentsline{toc}{section {\numberline{}References} \end{document}
我希望参考书目条目包含来自
我尝试停用hyperref
- 就像另一篇文章中建议的那样 - 但没用。我也尝试过激活和natbib
停用apacite
。
我将非常感激任何帮助...
答案1
三条建议:
不要同时加载
apacite
和natbib
包;而是运行\usepackage{apacite}
或者
\usepackage[natbibapa]{apacite}
(如果您希望使用类似 natbib 的引用命令,请使用后者,例如
\citet
和\citep
)。请熟悉用户指南软件包。特别是,用户指南提供了有关软件包识别的
apacite
所有选项(包括)的更多信息。natbibapa
不要使用命名的参考书目样式
apa
——它可以追溯到 1992 年。真的!相反,运行\bibliographystyle{apacite}
针对实施 APA 指南 6.03 版的参考书目样式。
顺便说一句,您的示例 bib 条目(我假设您是从某个互联网存储库下载的)包含两个严重错误:命名的字段Urldate
应该命名Url
(毕竟,字段的内容是 URL 字符串,而不是日期...),当前命名的字段Lastchecked
应该命名Urldate
。故事的寓意:不要毫无根据地信任和信赖“来自 Internet”的材料。无论如何,核实。我在 bib 条目中做了两个进一步的调整:在字段中title
,我在单词“Epistemic”和“Mediterranean”两边加上了花括号,这样它们就不会被排版为“epistemic”和“mediterranean”,并且在字段中我将-
其改为,以指示 LaTeX 创建正确的短破折号。--
pages
\RequirePackage{filecontents}
\begin{filecontents}{mybib.bib}
@article{Ha89,
Author = {Peter M. Haas},
Date-Added = {2017-02-06 21:15:57 +0000},
Date-Modified = {2017-02-06 21:45:06 +0000},
Journal = {International Organization},
Urldate = {03/02/2010 12:54},
Number = {3},
Pages = {377--403},
Publisher = {Peter Haas},
Read = {0},
Title = {Do regimes matter? {Epistemic} communities and {Mediterranean} pollution control},
Url = {http://www.jstor.org/stable/2706652},
Volume = {43},
Year = {1989}
}
\end{filecontents}
\documentclass{article}
\bibliographystyle{apacite}
\usepackage[natbibapa]{apacite}
\usepackage[hyphens,spaces]{url}
\usepackage[colorlinks,allcolors=blue]{hyperref}
\begin{document}
\cite{Ha89}
\bibliography{mybib}
\end{document}
答案2
目前,真正的 APA 样式的最佳实现就是该biblatex-apa
样式。下面是使用该样式的示例文档。如果要使用“检索自”字段,则需要正确命名,biblatex
字段名称为urldate
,并且日期的格式也必须正确:YYYY-MM-DDTHH:MM:SS(如果您需要精确的时间,尽管它们不会打印在输出中)或 YYYY-MM-DD(如果您只需要日期)。(我还在标题中添加了一些括号,以便大写正确。)
这需要使用biber
(而不是bibtex
)进行编译。这应该可以在编辑器中配置。请参阅以下问题以了解自动执行此操作的方法:
\documentclass{article}
% this is a way of including a bib entry into a document for testing
\begin{filecontents}{\jobname.bib}
@article{Ha89,
Author = {Peter M. Haas},
Date-Added = {2017-02-06 21:15:57 +0000},
Date-Modified = {2017-02-06 21:45:06 +0000},
Journal = {International Organization},
urldate = {2010-02-03T12:54:00},
Number = {3},
Pages = {377-403},
Publisher = {Peter Haas},
Read = {0},
Title = {Do regimes matter? {Epistemic} communities and {Mediterranean} pollution control},
url = {http://www.jstor.org/stable/2706652},
Volume = {43},
Year = {1989}}
\end{filecontents}
\usepackage[american]{babel}
\usepackage[style=apa]{biblatex}
\defbibheading{bibliography}[\bibname]{\section{#1}}
\addbibresource{\jobname.bib} % replace this with your actual bibfile name
\usepackage{csquotes}
%\usepackage{hyperref} load this (last) if you want live links
\begin{document}
This is an in text citation: \textcite{Ha89}. This is a parenthetical one: \parencite{Ha89}.
\printbibliography
\end{document}