我正在使用 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
文件作為您的文件。
我刪除了您加載兩次的軟體包,並重新組織了一些序言。