Biblatex - 读取 bibtex 文件时未定义的控制序列

Biblatex - 读取 bibtex 文件时未定义的控制序列

当我尝试编制参考书目时,我遇到了数百个这样的错误:

./Megumi oppgave.aux:57: Undefined control sequence.
l.57 ... Morgen}}{{Aftenposten Morgen}}{{\APACyear
                                                   {1987}}}}
./Megumi oppgave.aux:59: Undefined control sequence.
l.59 \APACbibcite
                 {AftenpostenMorgen1989}{\citeauthoryear {{Aftenposten Morge...

./Megumi oppgave.aux:59: Undefined control sequence.
l.59 ...ite{AftenpostenMorgen1989}{\citeauthoryear
                                                   {{Aftenposten Morgen}}{{A...

这基本上是我的文档设置:

\documentclass[12pt, oneside, titlepage]{article}       
\usepackage{geometry}                       
\geometry{a4paper}                          
\usepackage[utf8]{inputenc}
\usepackage[norsk]{babel}
\usepackage{csquotes}
\usepackage{parskip}
\usepackage[tc]{titlepic}

\usepackage[style=apa,sortcites=true,sorting=nyt,backend=biber]{biblatex}

\addbibresource{path/library.bib} 



\title{xx
}



\begin{document}

\maketitle
\tableofcontents


\section{Some title}
This text is cited \cite{Moene2009f}.


\printbibliography

\end{document}  

我在尝试将包含附件的 Endnote 库导出到 bibtex 时遇到了很大麻烦。因此,我使用了 Mandeley 发布的 bibtex 库,这似乎是一个很好的解决方案。以下是 bibtex 文件的摘录。运行时,文件似乎是按字母顺序读取的。

@article{Atack2002,
author = {Atack, Iain},
journal = {Security Dialogue},
number = {3},
pages = {279--292},
title = {{Ethical Objectives to Humanitarian Intervention}},
volume = {33},
year = {2002}
}
@article{Kabashima2000,
author = {Kabashima, Ikuo and Marshall, Jonathan and Uekami, Takayoshi and Hyun, Dae-``Song},
journal = {Political Psychology},
keywords = {survey, data collected from national public survey},
number = {4},
pages = {779--804},
title = {{Casual cynics or disillusioned democrats? Political alienation in Japan}},
volume = {21 },
year = {2000}
}
@book{Aakvaag2008,
address = {Oslo},
author = {Aakvaag, Gunnar C},
publisher = {Abstrakt},
title = {{Moderne sosiologisk teori}},
year = {2008}
}
@incollection{Hall1997,
address = {London},
author = {Hall, Stuart},
booktitle = {Cultural representations and signifying practices},
editor = {Hall, Stuart},
publisher = {Sage},
title = {{Representation, meaning and language}},
year = {1997}

我将不胜感激任何帮助!

编辑:感谢前两个答案。我已在 TexShop 的首选项中将 biber 设置为驱动程序,并定义了正确的语言。现在它似乎可以正确读取 bib 文件。但是,我收到另一个错误:

LaTeX Warning: Citation 'Hurd1999' on page 1 undefined on input line 49.


LaTeX Warning: Empty bibliography on input line 56.

[1] (./Megumi oppgave.aux)

LaTeX Warning: There were undefined references.


Package biblatex Warning: Please (re)run Biber on the file:
(biblatex)                "Megumi oppgave"
(biblatex)                and rerun LaTeX afterwards.

答案1

biblatex-apa样式使用了许多自定义设置,其中大多数是特定于语言的。要加载特定语言,您必须使用

\DeclareLanguageMapping{norsk}{norsk-apa}

参见手册第 3.2 节(texdoc biblatex-apa从命令行)

相关内容