我正在使用BibLaTeX
法语版的 (APA),但遇到了一个小问题:当我只有两位作者时,他们被引用时使用连词符号,&
而我想要的是符合语法的法语连词术语et
。以下是部分代码:
\RequirePackage[hyperref,backend=biber,style=apa]{biblatex}
\DeclareLanguageMapping{french}{french-apa}
\DefineBibliographyExtras{french}{\restorecommand\mkbibnamefamily}
% for avoiding small caps problem
答案1
在某些情况下,APA 需要“&”而不是“and”。如果您希望名称之间的所有“&”都变成“and”,请尝试以下代码
\documentclass[french]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber,style=apa]{biblatex}
\DefineBibliographyExtras{french}{%
\restorecommand\mkbibnamefamily}
\DeclareDelimFormat[parencite,fullcite,fullcitebib]{finalnamedelim}
{\ifnum\value{liststop}>2 \finalandcomma\fi\addspace\bibstring{and}\space}
\DeclareDelimFormat[bib,biblist]{finalnamedelim}{%
\ifthenelse{\value{listcount}>\maxprtauth}
{}
{\ifthenelse{\value{liststop}>2}
{\finalandcomma\addspace\bibstring{and}\space}
{\addspace\bibstring{and}\space}}}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \autocite{sigfridsson}
ipsum \textcite{sigfridsson}
dolor \parencite{sigfridsson}
sit \nptextcite{sigfridsson}
\printbibliography
\end{document}