I have Windows 8.1 operation system and I installed Miktek 64 bits version for windows and TeXnicCenter 64 bits version.

These is basically the main file:


And I can't get the outputfile. There are 242 error(s) into the spanish.ldf file, such as:

latex> ! Missing number, treated as zero.

In line

    [unicode, charset=utf8, fontenc=EU1 EU2]

I had tried with the 32 bits version as well as 64 bits version (both Miktek and TeXniCenter). Also I had run the update manager in order to install a recent version of babel but it didn't work.

What I'm doing wrong? What can I do?


  • 1
    Welcome to TeX SX! You shouldn't use both \usepackage[latin1]{inputenc} and \usepackage[utf8]{inputenc}, to begin with. Just keep utf8, and try again. – Bernard Mar 8 '16 at 10:09
  • 1
    Make a small, complete example that demonstrates the problem and show it along with the log-file. Code snippets are useless. – Ulrike Fischer Mar 8 '16 at 10:18
  • Thank @Bernard, I only use \usepackage[utf8]{inputenc} but the problem is still there. – U100R Mar 8 '16 at 20:55
  • Thanks @UlrikeFischer. It's just I'm new user here and I don't understand how to comment code lines and how to insert the log-file – U100R Mar 8 '16 at 21:02
  • Commenting code lines consists in adding a % in front of the line. As for inserting the .log file, just copy it in the editing window, select what you copied and click on the pair of braces in the tool bar of the editing window (like I've just done with your code). – Bernard Mar 8 '16 at 21:24

There were two problems:

First, there seems to be an incompatibility between the quotes package and babel. I suggest removing it. For an intelligent management of quotes, use csquotes.

Second, the environment for bibliography is thebibliography, not bibliography, and it requires an argument to determine the length of the longest label. However, unless your bibliography is very short, I would suggest to write a .bib file and use a specialised package like biblatex and biber.

  • Thank you so much @Bernard! I use csquotes instead of Blockquote – U100R Mar 8 '16 at 23:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.