
我正在嘗試在 TeXstudio 中建立參考書目。這是代碼:
\documentclass[12pt,a4paper]{article}
\usepackage{cmap}
\usepackage{mathtext}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}
\usepackage{indentfirst}
\frenchspacing
\usepackage{authblk}
\usepackage{titling}
\usepackage[backend=biber,bibencoding=utf8,maxcitenames=2,style=authoryear]{biblatex}
\addbibresource{biblio.bib}
\begin{document}
\author{Иванов}
\title{Название \thanks{ссылка на грант}}
\date{}
\maketitle
\renewcommand{\abstractname}{}
\begin{abstract}
\label{firstpage}
\noindent \textbf{Аннотация:} Text of the abstract in Russian.\par
\vspace{10pt}
\noindent \textbf{Ключевые слова:} list of keywords in Russian.
\end{abstract}
\section{Первый раздел}
\noindent Гостиная Анны Павловны начала понемногу наполняться. Приехала высшая знать Петербурга, люди самые разнородные по возрастам и характерам, но одинаковые по обществу, в каком все жили; приехала дочь князя Василия, красавица Элен, заехавшая за отцом, чтобы с ним вместе ехать на праздник посланника. Она была в шифре и бальном платье. Приехала и известная, как la femme la plus séduisante de Pétersbourg 1, молодая, маленькая княгиня Болконская, прошлую зиму вышедшая замуж и теперь не выезжавшая в большой свет по причине своей беременности, но ездившая еще на небольшие вечера. Приехал князь Ипполит, сын князя Василия\cite{quiroga2012concept}, с Мортемаром, которого он представил; приехал и аббат Морио и многие другие.\par
\printbibliography
\end{document}
首先,只需新增\usepackage{biblatex}
條目(沒有其他與參考書目相關的條目,即\addbibresource
和\printbibliography
)就會發生錯誤Extra \endgroup. \begin{document}
。編譯上述程式碼時,TeXstudio 拒絕列印參考書目。日誌中還有許多其他錯誤和警告,我甚至不知道其中哪些對我在這個問題中提及很重要,所以我將列出所有這些:
line 21: Use of \sortlist doesn't match its definition. \sortlist{
line 21: Extra }, or forgotten \endgroup. \sortlist{nyt}
line 22:Undefined control sequence. \entry{yuste2015neuron}{article}{}
line 44: Undefined control sequence. \endentry
line 44: Undefined control sequence. \endentry
line 45: Undefined control sequence. \endsortlist
line 15: Extra \endgroup. \begin{document}
: 'babel/polyglossia' detected but 'csquotes' missing.
line 33: Citation 'quiroga2012concept' on page 2 undefined
line 36: Empty bibliography
: There were undefined references.
: Please (re)run Biber on the file:(biblatex) testdocument(biblatex) and rerun LaTeX afterwards.
我在文件中註意到另一個奇怪的條目.bbl
:
{Missing 'biblatex' package}
{The bibliography requires the 'biblatex' package.}
另外,當我在檔案上執行 Biber.exe 時,.bib
會出現警告:
WARN - Warning: Found biblatex control file version 3.0, expected version 2.9
新增 .bib 檔案:
@article{quiroga2012concept,
title={Concept cells: the building blocks of declarative memory functions},
author={Quiroga, Rodrigo Quian},
journal={Nature Reviews Neuroscience},
volume={13},
number={8},
pages={587--597},
year={2012},
publisher={Nature Publishing Group}
}
@article{reverberi2012deduction,
title={Deduction without awareness},
author={Reverberi, Carlo and Pischedda, Doris and Burigo, Michele and Cherubini, Paolo},
journal={Acta psychologica},
volume={139},
number={1},
pages={244--253},
year={2012},
publisher={Elsevier}
}
@article{yuste2015neuron,
title={From the neuron doctrine to neural networks},
author={Yuste, Rafael},
journal={Nature Reviews Neuroscience},
volume={16},
number={8},
pages={487--497},
year={2015},
publisher={Nature Publishing Group}
}
答案1
我透過下載並安裝 Biber 2.4 解決了該問題。感謝伯納德的幫助!