未定义控制序列。\end Biblatex

未定义控制序列。\end Biblatex

我正在使用 Biblatex,但当我编译文档时,我收到了错误

未定义的控制序列。\end 我更新了 MikTeX 中的所有包,但没有任何变化。我将设置从 Biber 更改为 Bibtex,但它会生成不同的错误并要求使用 biber。我正在使用 mendley 生成的 bibtex 文件进行引用。

下面给出了一个最小的工作示例:

\documentclass[USenglish,12pt,a4paper]{article}
\usepackage{microtype}
\usepackage{graphicx}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{float}
\usepackage{url}\usepackage{microtype}
\usepackage{graphicx}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{float}
\usepackage{url}
\usepackage[backend=biber,style=apa,citestyle=authoryear,
 bibstyle=apa,natbib=true]
{biblatex}
\addbibresource{library.bib}

\begin{document}
\section{Introduction}
The section is introduced by \cite{BCBS2016}. This section provides the necessary details of introduction \citep{}.

\printbibliography
\end{document}

bib 文件中给出的两个条目放在这里:

@techreport{BCBS2016,
 address = {Basel},
author = {BCBS},
booktitle = {Basel III Document},
institution = {Basel Committee on Banking Supervision},
isbn = {9291313734},
 number = {July},
publisher = {Bank for International Settlements},
title = {{Revision to the secuitisation framework}},
url = {http://www.bis.org/bcbs/publ/d374.pdf},
year = {2016}
}

@article{Chiesa2008,
author = {Chiesa, Gabriella},
doi = {10.1016/j.jfi.2008.07.003},
file = {:C$\backslash$:/Users/Ahmed Arif/AppData/Local/Mendeley Ltd./Mendeley Desktop/Downloaded/Chiesa - 2008 - Optimal credit risk transfer, monitored finance, and banks.pdf:pdf},
isbn = {1042-9573},
issn = {10429573},
journal = {Journal of Financial Intermediation},
keywords = {Credit risk transfer,Monitoring incentives,Prudential regulation},
number = {4},
pages = {464--477},
title = {{Optimal credit risk transfer, monitored finance, and banks}},
volume = {17},
year = {2008}
}

答案1

您忘记加载了babel。语言应该叫做american

\begin{filecontents*}{\jobname.bib}
@techreport{BCBS2016,
  address = {Basel},
  author = {BCBS},
  booktitle = {Basel III Document},
  institution = {Basel Committee on Banking Supervision},
  isbn = {9291313734},
  number = {July},
  publisher = {Bank for International Settlements},
  title = {{Revision to the secuitisation framework}},
  url = {http://www.bis.org/bcbs/publ/d374.pdf},
  year = {2016}
}

@article{Chiesa2008,
  author = {Chiesa, Gabriella},
  doi = {10.1016/j.jfi.2008.07.003},
  file = {:C$\backslash$:/Users/Ahmed Arif/AppData/Local/Mendeley Ltd./Mendeley Desktop/Downloaded/Chiesa - 2008 - Optimal credit risk transfer, monitored finance, and banks.pdf:pdf},
  isbn = {1042-9573},
  issn = {10429573},
  journal = {Journal of Financial Intermediation},
  keywords = {Credit risk transfer,Monitoring incentives,Prudential regulation},
  number = {4},
  pages = {464--477},
  title = {{Optimal credit risk transfer, monitored finance, and banks}},
  volume = {17},
  year = {2008}
}
\end{filecontents*}

\documentclass[american,12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{amsmath}
\usepackage{microtype}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{url}
\usepackage[
  backend=biber,
  style=apa,
  citestyle=authoryear,
  bibstyle=apa,
  natbib=true
]{biblatex}
\addbibresource{\jobname.bib}
\DeclareLanguageMapping{american}{american-apa}

\begin{document}
\section{Introduction}
The section is introduced by \cite{BCBS2016}. This section provides the 
necessary details of introduction \citep{Chiesa2008}.

\printbibliography
\end{document}

在此处输入图片描述

笔记

我以前filecontents*只是不破坏我的文件并制作一个独立的例子。使用您自己的library.bib文件作为您的文档。

我删除了你两次加载的软件包并重新组织了序言。

相关内容