0

I use this for language

\usepackage[T1]{fontenc}  
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

Sometimes, i need input some special letter, for example Ö. The language setting worked fine before, but today it report error always when I input some special letter.(I do not remember what i changed to the latex code, seems no changes about language setting).

Below are snapshots for two errors. What is the problem?

enter image description here

lockstep
  • 250,273
postit
  • 45

1 Answers1

0

Note: The OP used xelatex for compilation and everything was fine after changing to pdflatex. However, I leave my old answer here for archive purposes.

If it worked for that letter before, you probably saved the file with an editor that converted it from utf-8 to some other format.

If it is a new letter you are entering (not ö, which should work), you can try adding the letter manually with

\DeclareUnicodeCharacter{03B1}{\ensuremath{\alpha}} %% α
Scz
  • 1,633