![Biblatex:无法从 Chicaco 切换到 APA 样式 - 未定义控制序列“mkbibdateapalongextra”](https://linux22.com/image/342317/Biblatex%EF%BC%9A%E6%97%A0%E6%B3%95%E4%BB%8E%20Chicaco%20%E5%88%87%E6%8D%A2%E5%88%B0%20APA%20%E6%A0%B7%E5%BC%8F%20-%20%E6%9C%AA%E5%AE%9A%E4%B9%89%E6%8E%A7%E5%88%B6%E5%BA%8F%E5%88%97%E2%80%9Cmkbibdateapalongextra%E2%80%9D.png)
应出版商的要求,我尝试将芝加哥风格的书目改为 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}