I am new to the community and I have a question about the grammar check in TeXstudio. As we know, some words are not recognized by the grammar checker, e.g., binarization. I am not very comfortable when the red underlines keep popping up. Also, in this case, we might actually have misspelling problems.

My question is that if there is a way to ignore some specific words such that these underlines could disappear. Some people say I should find .ign file and add the words into the file. However, I could not find this file in the dictionaries.

  • Right click on the word, and "Add to dictionary"? As for the .ign file, it is in %appdata%/TeXstudio/dictionaries – Troy Apr 22 '18 at 6:46
  • (see step 2a in How to set up thesaurus in TexStudio? for a picture of where the dictionary files are. – Troy Apr 22 '18 at 6:52
  • @Troy The .ign should be there but it is not. I do not know why it is not there. – ZHUANG Apr 23 '18 at 2:26
  • Ok, what about my first suggestion? Did you try that? – Troy Apr 23 '18 at 7:03
  • The path is found. The .ign file is not there or it is somehow covered. I try showing the hidden files. It is still not there. – ZHUANG Apr 23 '18 at 9:04

There are two ways to achieve this:

  1. The most straightforward way is to right-click the wrong-grammar word, e.g. binarization, and select Add to dictionary in the context menu.

enter image description here

  1. The other thing you can do is to manually add the wrong-grammar word, e.g. binarization to the list of ignored words stored in the .ign file (should be in the folder %AppData%/Roaming/TeXstudio/dictionaries -- see step 2a in How to set up thesaurus in TexStudio? for more details).

    In your case, since you don't have an .ign file, you can just create one yourself. Start up a new text file (in Notepad, TeXstudio etc.), type in binarization, and then save as <language>.ign. For example, en_GB.ign. If you have more than 1 word to ignore, place each new word on a new line. Restart TXS and now the dictionary should ignore the words inside the .ign file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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