EDIT 1: Here is the full code, including .tex and .bib files. Any help?

I'm trying to write an article, but all day I've been compiling and always everything goes wrong. I wrote a little code for the example:


The references are stored in the References.bib

  author   = {Paerl, H. W. and Huisman, J.},
  title    = {Climate change: a catalyst for global expansion of harmful cyanobacterial blooms},
  journal  = {Environmental Microbiology Reports},
  year     = {2009},

  author   = {Pantelic, D. and Svircev, Z. and Simeunovic, J. and Vidovic, M. and Trajkovic, I.},
  title    = {Cyanotoxins: characteristics, production and degradation routes in drinking water treatment with reference to the situation in {Serbia}},
  journal  = {Chemosphere},
  year     = {2013},

Always when I compile, I get

File ended while scanning use of \field. \begin{document}

Any hint whats going on?

  • 3
    Does exactly that code give you that error? What is the full text of the error message? Paste the code into a clean .tex file. Does it still give you the same error?
    – cfr
    Jul 5, 2017 at 1:09
  • 3
    Off-topic: it makes no sense to use author-year and then specify ynt sort order. Unless the purpose is to deliberately confound your readers.
    – cfr
    Jul 5, 2017 at 1:37
  • 2
    Please always include the code directly in your question. Do not upload your files to another website and link them here. Some users are wary of random files off the web and won't download them. Simply uploading your files also does not encourage you to make your example minimal. Please try to trim down the code to only what is needed to reproduce the error.
    – moewe
    Jul 5, 2017 at 6:06
  • 8
    You have a lot of reserved chars in your .bib file, for example the key Kurniawati2014 has ...separation efficiency of >93% microalgae cells was found at 20 mg/L of saponin. Removal efficiency of >54.4% and >73.0%... all these % should become \%. If you look carefully at the log, you'll find them.
    – CarLaTeX
    Jul 5, 2017 at 6:07
  • 5
    Your file has some other problems, but your biggest problem right now are the % in the abstract field. See Prevent biber from choking on “%” characters in abstract?, Error with percent sign in bib entry field when using biblatex/biber
    – moewe
    Jul 5, 2017 at 6:13


Browse other questions tagged or ask your own question.