How can I add a word to the dictionary of TexMaker? I cannot see any options for this in the software.


If adding is what you just need then this answer might work for you. If you want to install a new dictionary, follow the link in the comment. With your terminal, cd to the directory of your TeXMaker dictionary. If you don't know where, in TeXMaker click

Options > Configure TeXMaker > Editor

You can see the directory of the dictionary in the option Spelling dictionary. In Ubuntu, once you are in the directory, type

sudo gedit en_GB.dic

and put the word you want to add in there.

In Windows, just go to the directory and double click on the file or open with Notepad. Then write the word you want to add.

You might also want to save the customized file in another folder and have your Spelling dictionary option point to the custom file.

| improve this answer | |
  • 6
    thanks, that is a very long way round to add words to a dictionary. I can't believe they haven't got this functionality in built. Thanks anyway, that will have to do for now I guess. – fpghost Nov 27 '12 at 15:26
  • Just FYI, the fork TeXStudio has a tool called Thesaurus that you can use to add words to the dictionary. I haven't been using it as often as before though. – hpesoj626 Nov 27 '12 at 16:55
  • 3
    Just to add a useful bit of info for Windows users: the dictionary files are in the base folder of the TexMaker installation and need to be opened with Administrator privileges. – Aleksandar Savkov Jun 13 '13 at 11:04
  • 5
    @fgphost Not only it is a long way around. Almost two years later this is still the state of the art. Per project dictionaries would be really comfortable. – Trilarion Jun 16 '14 at 8:34
  • It's now been more than 8 years... Also, you can add words to the dictionary this way but you have to repsect the alphabetical ordering, otherwise it doesn't work. – Andrea Aug 19 at 2:42

In the newer versions they have also added a "Spell check" feature (Control + Shift + F7 ; or from the menu: Edit > Check Spelling) which allows you to add new words by clicking "always ignore".

The custom words are stored in $HOME/.config/xm1/texmaker.ini (unix) or in C:\Users\[username]\AppData\Roaming\xm1 (windows)

| improve this answer | |
  • 1
    Welcome to TeX.sx! – Peter Jansson Apr 25 '13 at 19:31
  • Great key, since the feature seems not to be accessible from the menu – fstevens Mar 12 '14 at 8:53
  • 1
    Great, now they only have to add that option to the context menu as well, and I can die happy. Still a better workaround than manually editing the dict, thanks! – magnattic Jun 19 '14 at 18:31
  • 3
    Just to add, the custom words are added to the texmaker.ini after you close the program. On windows, the path is C:\Users\[Username]\AppData\Roaming\xm1. It seems that you can also add a list of words separated by comma on the line Spell\Words="ignorethisword,ignoremealso" – np8 Aug 13 '16 at 13:50
  • Now you can also do it from the menu: Edit > Check Spelling. Note that it starts from the cursor, not from the beginning of the document. @magnattic you can die happy. – pietro Mar 30 '18 at 9:10

In version 4.1.1, you can right click a word underlined in red and then click "Check Spelling Selection". That will open a dialog box where you need to click "Always Ignore".

| improve this answer | |
  • In version 4.5 one can also place the cursor in a position without red underlining, select "Tools" then "Check Spelling", for the entire document including use of the "Always Ignore" option when desired. – Carl Jun 17 '17 at 21:20
  • This should be now the accepted answer. Thanks! – AstoundingJB Sep 7 '19 at 15:46
  • 1
    This is what I've been doing. Unfortunately though "Always ignore" is not the same adding a word in the dictionnary: if i misspel a word that TexMaker has learned to ignore, it will not offer to correct it. – Andrea May 23 at 12:03

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.