\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 ファイルには 1 つのエントリがあります。

@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 入力フィールドのパーセント記号でエラーが発生する、しかしそれは多くのファイルからフィールドを.bib完全に直接削除する方がよいでしょう。) 抽象が必要な場合は、理論的には%sをその場でエスケープすることが可能です。要約内の「%」文字で biber が詰まるのを防ぎますか?

関連情報