LaTeX forum ⇒ OthersHow to spellcheck multi-language LaTeX files?

Information and discussion about other tools not listed above.
user49915
Posts: 52
Joined: Wed Apr 17, 2019 12:51 pm

How to spellcheck multi-language LaTeX files?

Postby user49915 » Wed Jul 24, 2019 4:32 pm

Let's take as an example the following file in UTF-8:

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. Außenwirkung
  2. Nutzungsfälle
  3. \foreignlanguage{USenglish}{behavior}
  4. \foreignlanguage{UKenglish}{behaviour}
  5. %%% Local Variables:
  6. %%% mode: latex
  7. %%% ispell-local-dictionary: "german-new8"
  8. %%% coding: utf-8
  9. %%% End:


It is \input from another main file, which contains \usepackage[USenglish,british,french,norsk,dutch,latin,german,ngerman]{babel}
I typically use emacs 26.1 for editing with aspell 0.60.7-20110707 for spellchecking (but I'm ready to change my habits if there's a better solution for spellchecking). The German words are checked without problems (of course, you might wish to add them to your local dictionary if they are not in the global one). The English words are problematic: each time I run M-x ispell-buffer, they show up as wrong. Is there any way to automatically check also the \foreignlanguage parts using the proper dictionary? As of now, flyspell-babel is unfortunately dead or at least seems dead to me (cf. http://texwelt.de/wissen/fragen/25319/w ... zum-laufen).

Crossposts: http://tex.stackexchange.com/questions/501267/how-to-spellcheck-multi-language-latex-files, http://golatex.de/viewtopic,p,107348.html

Return to “Others”

Who is online

Users browsing this forum: No registered users and 2 guests