Sublime Forum

Spell checking in Latex files with German Umlaute

#1

Hi there,
I edit a big latex file that is only a part of a project (i.e. it does not compile on its own). I managed to install a German dictionary in Sublime2 and LatexTools so that most of the spell checking now works well. However, spell checking now underlines every word that has a German Umlaut like ä,ö,ü in it.
I guess it has to do with the fact that the Latex file is not complete and no input encoding is set for that file. However, that is something, I cannot change here (as I would otherwise kill the build process of the overall project).

Is anybody aware of any option to fix that behavior?

Thanks
Nils

P.S. It also happens in minimal examples of a latex document. So it does not seem to have anything to do with the fact that my document cannot compile. I’m attaching a screenshot that shows the behavior.

0 Likes

#2

Compilation

You can only use \usepackage after \documentclass, so you should change your preamble to:


\documentclass{article}

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

Dictionary

How did you install your dictionary? I recommend the Dictionaries package. An “easy installation guide” is in the spell-checking section of LaTeXTools.

PS. I highly recommend to use ST3, because it is also very stable (even more stable than ST2) and has more features

0 Likes

#3

Thanks! I took the chance to migrate to ST3 and I am using the Dictionaries package now. Everything works like a charm now :slightly_smiling:

Nils

0 Likes