Файл закончился при сканировании использования \field

Файл закончился при сканировании использования \field

У меня проблема, что более или менее из ничего моя диссертация больше не компилируется, особенно библиография (без нее она проходит гладко). Я использую classicthesisшаблон, который является настоящим монстром. Однако проблема сохраняется, если я делаю минимальный пример со стандартным articleклассом.

\documentclass[]{article}
\usepackage{csquotes}
\PassOptionsToPackage{%
    backend=biber, % Instead of bibtex
    %backend=bibtex,
    %bibencoding=ascii,%
    language=auto,%,
    style=numeric-comp,%
    %style=authoryear-comp, % Author 1999, 201
    %bibstyle=ieeetr,dashed=false, % dashed: substitute rep. author with ---
    %sorting=nyt, % name, year, title
    maxbibnames=10, % default: 3, et al.
    backref=true,%
    natbib=true % natbib compatibility mode (\citep and \citet still work)
}{biblatex}

\usepackage[sorting=none]{biblatex}
%opening
\title{}
\author{}
\addbibresource{lib.bib}
\begin{document}

\maketitle

\begin{abstract}

\end{abstract}
\cite{Cleland2013}
\section{}

\end{document}

где в файле bib есть одна запись:

@article{Cleland2013,
abstract = {Past, current and projected future population growth is outlined. Barring a calamitous pandemic, a further increase in the world's population from 7 to between 8.8 and 10 billion by mid-century is unavoidable. This increase is driven by high fertility in sub-Saharan Africa whose population is forecast to more than double in the next 40 years and by a modest rise of 23 % in Asia's huge population. Beyond mid-century, the range of plausible demographic destinations widens; much depends on fertility rates in the next few decades because they will determine the number of potential reproducers in the second half of the century. Vigorous promotion of family planning, particularly in Africa, is crucial to achievement of population stabilisation. Unchanged fertility implies a global population of 25 billion by the end of the century. In the next few decades the contribution of human population growth to global environmental change is moderate, because nearly all growth will occur in poor countries where consumption and emission of greenhouse gases is low. The implications for food production, and thereby water consumption, are greater. Much of the future need for food will be driven by increased numbers rather than changing diets. Loss of bio-diversity and natural habitats, degradation of fragile eco-systems due to over-exploitation and aquifer deletion are likely consequences. {\textcopyright} 2013 Springer Science+Business Media Dordrecht.},
author = {Cleland, John},
doi = {10.1007/s10640-013-9675-6},
issn = {0924-6460},
journal = {Environ. Resour. Econ.},
keywords = {Age structure,Contraception,Demographic transition,Fertility,Population growth,Population projections},
mendeley-groups = {thesis},
month = {aug},
number = {4},
pages = {543--554},
publisher = {Kluwer Academic Publishers},
title = {{World Population Growth; Past, Present and Future}},
url = {http://link.springer.com/10.1007/s10640-013-9675-6},
volume = {55},
year = {2013}
}

Не могу понять, в чем проблема, пытаюсь со вчерашнего дня... сообщение об ошибке немного двусмысленное:

Zeile 23: File ended while scanning use of \field. \begin{document}
Zeile 27: Undefined control sequence. \begin{abstract}
Zeile 30: Missing number, treated as zero. \cite{Cleland2013}
Zeile 30: Missing number, treated as zero. \cite{Cleland2013}
Zeile 30: Missing number, treated as zero. \cite{Cleland2013}

решение1

Полное сообщение об ошибке, которое вы получаете в .logфайле при попытке сослаться на запись из вопроса, немного полезнее, чем дайджест от вашего редактора.

(abstract-prob.bbl)
Runaway argument?
{Past, current and projected future population growth is outlined. Ba\ETC.
! File ended while scanning use of \field.
<inserted text> 
                \par 
l.33 \begin{document}

Строка над сообщением об ошибке дает вам подсказку, где именно вам нужно искать виновника. Цитируемый текст "Прошлый, текущий и прогнозируемый будущий рост населения обозначен." является началом поля abstractв вашей записи.

Более пристальный взгляд на это поле (разрывы строк добавлены для удобства чтения)

abstract = {Past, current and projected future population growth is outlined.
            Barring a calamitous pandemic, a further increase in the world's population
            from 7 to between 8.8 and 10 billion by mid-century is unavoidable.
            This increase is driven by high fertility in sub-Saharan Africa
            whose population is forecast to more than double in the next 40 years
            and by a modest rise of 23 % in Asia's huge population.
            Beyond mid-century, the range of plausible demographic destinations widens;
            much depends on fertility rates in the next few decades because
            they will determine the number of potential reproducers in
            the second half of the century.
            Vigorous promotion of family planning, particularly in Africa,
            is crucial to achievement of population stabilisation.
            Unchanged fertility implies a global population of 25 billion
            by the end of the century.
            In the next few decades the contribution of human population
            growth to global environmental change is moderate,
            because nearly all growth will occur in poor countries
            where consumption and emission of greenhouse gases is low.
            The implications for food production,
            and thereby water consumption, are greater.
            Much of the future need for food will be driven by increased
            numbers rather than changing diets.
            Loss of bio-diversity and natural habitats,
            degradation of fragile eco-systems due to over-exploitation
            and aquifer deletion are likely consequences.
            {\textcopyright} 2013 Springer Science+Business Media Dordrecht.},

показывает, что он содержит неэкранированный %знак.

Это поле заканчивается в .bblфайле следующим образом (без переносов строк)

  \field{abstract}{Past, current and projected future population growth is outlined. Barring a calamitous pandemic, a further increase in the world's population from 7 to between 8.8 and 10 billion by mid-century is unavoidable. This increase is driven by high fertility in sub-Saharan Africa whose population is forecast to more than double in the next 40 years and by a modest rise of 23 % in Asia's huge population. Beyond mid-century, the range of plausible demographic destinations widens; much depends on fertility rates in the next few decades because they will determine the number of potential reproducers in the second half of the century. Vigorous promotion of family planning, particularly in Africa, is crucial to achievement of population stabilisation. Unchanged fertility implies a global population of 25 billion by the end of the century. In the next few decades the contribution of human population growth to global environmental change is moderate, because nearly all growth will occur in poor countries where consumption and emission of greenhouse gases is low. The implications for food production, and thereby water consumption, are greater. Much of the future need for food will be driven by increased numbers rather than changing diets. Loss of bio-diversity and natural habitats, degradation of fragile eco-systems due to over-exploitation and aquifer deletion are likely consequences. © 2013 Springer Science+Business Media Dordrecht.}

Когда LaTeX встречает этот %знак при чтении содержимого поля abstractиз .bblфайла, мы получаем ошибку, поскольку этот %знак превращает оставшуюся часть строки в комментарий, а это означает, что закрывающая фигурная скобка }в конце поля не видна.

Это вызывает

! File ended while scanning use of \field.

ошибка.

Решение состоит в том, чтобы экранировать %знак в абстрактном поле на \%.

Поскольку большинство стилей библиографии abstractв любом случае игнорируют это поле, возможно, лучшей идеей будет просто .bibполностью удалить поле из файла.. (Это можно сделать на лету с помощью Biber, см.Ошибка со знаком процента в поле ввода нагрудного номера при использовании biblatex/biber, но этомногоЛучше удалить поле из .bibфайла полностью и напрямую.) Если вам нужна аннотация, то теоретически возможно экранировать %s на лету.Не дать Биберу подавиться символами «%» в аннотации?.

Связанный контент