Spell check for latex file in Atom
Asked Answered
D

1

17

I am trying to add .tex file in the Setting->Grammar of atom/spell-check so that it will check spellings in my document because .tex file is going to be a PDF document, but its not working.

enter image description here

Declassify answered 7/12, 2017 at 22:3 Comment(0)
D
19

Found out that I was using wrong syntax. Correct scope is text.tex.latex. It was already mentioned in the README file on how to get it. Follow below procedure in Atom Editor.

To enable Spell Check for your current file type: put your cursor in the file, open the Command Palette (cmd-shift-p), and run the Editor: Log Cursor Scope command. This will trigger a notification which will contain a list of scopes. The first scope that's listed is the one you should add to the list of scopes in the settings for the Spell Check package. Here are some examples: source.coffee,text.plain, text.html.basic.

enter image description here

It should pop up as below enter image description here

Declassify answered 7/12, 2017 at 22:3 Comment(4)
Once you have spell-checking enabled in LaTeX files, soon, like me, you'll wish there was a built-in list of LaTeX commands that won't annoy the default spell checker.Pouliot
@DavidJ. Have you found a fix for this?Roughandready
@DavidJ. you are right! it is annoying and there is no solution as far as I know.Callboy
@DavidJ. According to acarril.github.io/posts/atom-latex, there is a solution for this: you can paste the following code directly in your config.cson file (Edit > Config...): "spell-check": excludedScopes: [ "support.function.tex" "meta.preamble.latex" "support.type.function.latex" "comment.line.percentage.tex" "storage.type.function.latex" "support.function.latex" "string.other.math.tex" "string.other.math.block.environment.latex" "variable.parameter.function.latex" "constant.other.reference.latex" ]Sidonnie

© 2022 - 2024 — McMap. All rights reserved.