应出版商的要求,我尝试将芝加哥风格的书目改为 APA 风格。我这样做很好:
\usepackage[backend=biber,authordate]{biblatex-chicago}
我尝试过这个:
\usepackage[backend=biber,authordate,style=apa]{biblatex}
它失败了
! Package xkeyval Error: `authordate' undefined in families `blx@opt@pre'.
我删除authordate
:
\usepackage[backend=biber,style=apa]{biblatex}
它首先编译,但在我运行 Biber 之后,它失败了
! Undefined control sequence.
<argument> \mkbibdateapalongextra
{year}{month}{day}\iffieldundef {endyear}{...
例子:
\documentclass[11pt,a4paper]{article}
\usepackage{color}
\usepackage{graphicx}
\usepackage[hidelinks]{hyperref}
\usepackage[UKenglish]{babel}
\usepackage[lf]{venturis}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
% \usepackage[backend=biber,authordate]{biblatex-chicago} % works
\usepackage[backend=biber,style=apa]{biblatex} % doesn't work
\begin{filecontents*}{foo.bib}
@article{denning2010computation,
AUTHOR = {Denning, Peter J.},
TITLE = {What is Computation?},
JOURNAL = {Ubiquity},
YEAR = {2010},
DOI = {10.1145/1880066.1880067}
}
\end{filecontents*}
\addbibresource{foo.bib}
\usepackage{csquotes}
\usepackage{tabularx}
\usepackage{epigraph}
\usepackage[shrink=10, babel=true]{microtype}
\begin{document}
foo \autocite{denning2010computation}
\printbibliography
\end{document}
答案1
这是重复的。要修复此问题,必须添加此行:
\DeclareLanguageMapping{british}{british-apa}