I'm experiencing a strange behavior with the glossaries package, I have these lines in the header of my document:


Then, in the text I have items such as


And if I write in the glossary the "stivare" item this way:

  description={Mettere in  stiva. ... è sempre stato uno dei fattori più ...}

I.e., using "è" and "ù" letters, I get a compile error:

) (./FameInAltoMare.gls [26]
! Missing $ inserted.
<inserted text> 
l.10 ...entrycounter[]{page}\glsnumberformat{11}}}

While if I write the same item using the "`e" and "`u" the compilation ends successfully.

Any clues?

Thank you

closed as off-topic by egreg, user13907, cfr, AboAmmar, Mike Renfro Aug 29 '15 at 13:18

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Welcome! Hard to say without a complete minimal example we can compile to reproduce the error. But do you have \usepackage[utf8]{inputenc} and \usepackage[T1]{fontenc}? If you are using LaTeX or pdfLaTeX (rather than one of the newer engines), you should. – cfr Aug 28 '15 at 16:26
  • yes, sorry, I forgot a snippet, I have \usepackage[latin1]{inputenc} (instead of utf8) but not the fontenc, could it be those lines? I'll have a go and let you know, thank you and I compile with pdflatex+bibtex+makeglossaries – atrent Aug 29 '15 at 9:17
  • 4
    I'm voting to close this question as off-topic because the issue was due to inconsistent file encodings. – egreg Aug 29 '15 at 10:12

It was my fault, I have various files, they were formatted differently: part UTF-8 (the glossary) and part ISO-8859.. (checked with the 'file' command)

Now I 'recode'(d) all to UTF-8, edited the \inputenc command to UTF-8 and now it works everything (except for the .bib file)

  • Glad you sorted it! – cfr Aug 29 '15 at 12:29

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