
Tenho o problema de que mais ou menos do nada minha tese não compila mais, especificamente a bibliografia (sem ela ela funciona perfeitamente). Eu uso classicthesis
o modelo, que é um monstro. No entanto, o problema também é persistente se eu fizer um exemplo mínimo com a article
classe padrão.
\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}
onde o arquivo bib possui uma única entrada:
@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}
}
Não consigo entender o problema, estou tentando desde ontem... a mensagem de erro é um pouco ambígua:
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}
Responder1
A mensagem de erro completa que aparece no .log
arquivo ao tentar citar a entrada da pergunta é um pouco mais útil do que o resumo do seu editor
(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}
A linha acima da mensagem de erro dá uma dica de onde exatamente você precisa procurar o culpado. O texto citado "O crescimento populacional passado, atual e futuro projetado é delineado." é o início do abstract
campo em sua entrada.
Uma análise mais detalhada desse campo (quebras de linha adicionadas para legibilidade)
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.},
mostra que contém um %
sinal sem escape.
Este campo termina no .bbl
arquivo da seguinte forma (sem quebras de linha)
\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.}
Quando o LaTeX encontra esse %
sinal ao ler o conteúdo do abstract
campo do .bbl
arquivo, obtemos um erro porque o %
sinal transforma o resto da linha em um comentário, o que significa que a chave de fechamento }
no final do campo não é vista.
Isso faz com que
! File ended while scanning use of \field.
erro.
A solução é escapar do %
sinal no campo abstrato para \%
.
Dado que a maioria dos estilos de bibliografia ignoram o abstract
campo de qualquer forma, poderá ser uma ideia melhor remover .bib
completamente o campo do ficheiro. (Isso pode ser feito instantaneamente pelo Biber, vejaErro com sinal de porcentagem no campo de entrada do bib ao usar biblatex/biber, Mas isso émuitoé melhor excluir o campo do .bib
arquivo completa e diretamente.) Se você precisar do resumo, é teoricamente possível escapar do %
s instantaneamenteEvitar que o biber se engasgue com caracteres "%" em abstrato?.