我需要如下的文本。
当时正在下雨 (De Silva & Lee, 2018)。有一只猫 (Kahouli & Maktouf, 2015, p. 12)。Baier、Yotov 和 Zylkin (2019) 说这只猫正在奔跑。
首先,\citep 等版本不起作用。其次,我将参考书目中的文章标题全部改为小写。此外,我想将文内引文改为蓝色字体并添加超链接。网上有很多关于这个主题的指导,但这些指导很混乱,或者只起到部分作用。
请提供任何帮助!
\documentclass[12pt]{article}
\usepackage{comment}
\usepackage[margin=1in]{geometry}
\usepackage[none]{hyphenat}
\usepackage {apacite}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[affil-it]{authblk}
\usepackage[flushleft]{threeparttable}
\usepackage{rotating}
\usepackage[title]{appendix}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}
\fancyfoot{}
\fancyfoot[C]{\thepage}
\setlength{\parskip}{1em}
\renewcommand{\baselinestretch}{1.15}
\title {\textbf {This is an interesting title of the article}}
\author[1]{Firstname Lastname}
\affil[1]{ABC University, City, Country}
\begin{document}
\maketitle
\bibliographystyle{apacite}
\pagebreak
\section{Introduction}
It was raining \cite{de2018does}. There was a cat \cite{kahouli2015trade}. \cite{baier2019widely} said that the cat was running.
\bibliography{References}
\end{document}
我把单独的 Reference.bib 文件中的参考文献放在这里。
@article{baier2019widely,
title={On the widely differing effects of free trade agreements: Lessons from twenty years of trade integration},
author={Baier, Scott L and Yotov, Yoto V and Zylkin, Thomas},
journal={Journal of International Economics},
volume={116},
pages={206--226},
year={2019},
publisher={Elsevier}
}
@article{de2018does,
title={Does the role of observer countries in the regional trade agreement matter for intra-regional trade?},
author={De Silva, Dakshina G and Lee, Soon-Cheul},
journal={Applied Economics},
volume={50},
number={20},
pages={2219--2228},
year={2018},
publisher={Taylor \& Francis}
}
@article{kahouli2015trade,
title={Trade creation and diversion effects in the Mediterranean area: Econometric analysis by gravity model},
author={Kahouli, Bassem and Maktouf, Samir},
journal={The Journal of International Trade \& Economic Development},
volume={24},
number={1},
pages={76--104},
year={2015},
publisher={Taylor \& Francis}
}
答案1
我将分享我处理 APA 样式参考资料的设置。我不知道它是否能解答您的所有疑问。
为了保留标题中的大写字母,必须将其括在(双)括号 {} 中。请参阅 Referencesx.bib
我发现
biblatex
和的biber
组合更加方便并且更容易使用。使用 \citep。
强烈建议将其作为最后一个包加载
hyperref
。它具有高度可配置性。我不知道我的设置是否符合您的要求,但它会让您走上正确的道路。
\documentclass[12pt]{article}
\usepackage{comment}
\usepackage[margin=1in]{geometry}
\usepackage[none]{hyphenat}
%\usepackage {apacite} %not used
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[affil-it]{authblk}
\usepackage[flushleft]{threeparttable}
\usepackage{rotating}
\usepackage[title]{appendix}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}
\fancyfoot{}
\fancyfoot[C]{\thepage}
\setlength{\parskip}{1em}
\renewcommand{\baselinestretch}{1.15}
\title {\textbf {This is an interesting title of the article}}
\author[1]{Firstname Lastname}
\affil[1]{ABC University, City, Country}
%%***************** ADDED
\usepackage[style=apa,
backend=biber,
natbib=true,
language=american]
{biblatex}
\usepackage{xcolor}
\usepackage{hyperref}
% format hyperlinks
\colorlet{linkcolour}{blue} %blue
\colorlet{urlcolour}{blue}
\hypersetup{
bookmarksnumbered=true,
bookmarksopen=true,
bookmarksopenlevel=3,
colorlinks,
breaklinks,
linkcolor=linkcolour,
citecolor=linkcolour,
urlcolor=urlcolour,
filecolor=black,
linktocpage=true,
} % Set up hyperlinks including colors for references, urls and citations
\addbibresource{Referencesx.bib}
%% **********************************************************************
\begin{document}
\maketitle
%\bibliographystyle{apacite}
\pagebreak
\section{Introduction}
It was raining \citep{de2018does}. There was a cat \citep{kahouli2015trade}. \citep{baier2019widely} said that the cat was running.
%\bibliography{References}
\newpage
\printbibliography
\end{document}
标题用双括号括起来。
更新 为了避免与其他样式的不兼容,建议{ }
仅使用单词或字母,而不是完整的标题,例如
title = {{NASA} 派遣 {MarsProve} 前往 {K}uiper 带寻找 {L}a、{A}c、{T}h、{P}a 和 {U} 锕系元素,
文件: Referencesx.bib
@article{baier2019widely,
title={{On the widely differing effects of free trade agreements: Lessons from twenty years of trade integration}},
author={Baier, Scott L and Yotov, Yoto V and Zylkin, Thomas},
journal={Journal of International Economics},
volume={116},
pages={206--226},
year={2019},
publisher={Elsevier}
}
@article{de2018does,
title={Does the role of observer countries in the regional trade agreement matter for intra-regional trade?},
author={De Silva, Dakshina G and Lee, Soon-Cheul},
journal={Applied Economics},
volume={50},
number={20},
pages={2219--2228},
year={2018},
publisher={Taylor \& Francis}
}
@article{kahouli2015trade,
title={{Trade creation and diversion effects in the Mediterranean area: Econometric analysis by gravity model}},
author={Kahouli, Bassem and Maktouf, Samir},
journal={The Journal of International Trade \& Economic Development},
volume={24},
number={1},
pages={76--104},
year={2015},
publisher={Taylor \& Francis}
}