biblatex apa-citation 仅将作者年份以外的年份链接在一起。
APA 风格:
而引用一个典型的期刊论文看起来像这样:
那么如何使默认的 apa 样式引用看起来像上面的那样?
梅威瑟:
\documentclass[12pt, a4paper]{book}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{esint}
\usepackage[UKenglish]{babel}
\usepackage[ ]{libertine}
\usepackage[ T1 ]{fontenc}
\usepackage{hyperref}
\usepackage{color}
\definecolor{DarkBlue}{RGB}{0,51,153}
\hypersetup{
colorlinks,%
linktocpage =true,
citecolor=DarkBlue,%
filecolor=red,%
linkcolor=DarkBlue,%
urlcolor=green,
} % colorlinks setting
%----------------------------------------------------------
% Biblatex settings
%----------------------------------------------------------
\usepackage{filecontents}
\usepackage{csquotes}
\usepackage[
style=apa,
backend=biber,
refsection=chapter,
uniquename=true,
uniquelist=false,
maxcitenames=2,
natbib=true ] {biblatex}
\DeclareLanguageMapping{british}{british-apa}
\LetLtxMacro{\cite}{\citet} % year in ()
\usepackage{xpatch}
\xpatchnameformat{labelname}
{\ifciteseen}{\ifnumcomp{\value{listtotal}}{>}{\value{maxnames}}}{}{}
\setlength\bibitemsep{1 ex } % bibsep
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\chapter{Introduction}
\textcite{UL1}\\
\parencite{UL1}\\
\textcite{UL1} \\
\textcite{UL2}\\
\textcite{UL1,UL2}\
\printbibliography[heading=subbibintoc]
\end{document}
顺便问一下:如何插入 MWE 一次而不在每行添加空格?