How can I add a word to the dictionary of TexMaker? I cannot see any options for this in the software.
3 Answers
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.
- 8thanks, 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– fpghost2012-11-27 15:26:23 +00:00Commented Nov 27, 2012 at 15:26
- Just FYI, the fork
TeXStudiohas a tool calledThesaurusthat you can use to add words to the dictionary. I haven't been using it as often as before though.hpesoj626– hpesoj6262012-11-27 16:55:07 +00:00Commented Nov 27, 2012 at 16:55 - 3Just 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– Aleksandar Savkov2013-06-13 11:04:45 +00:00Commented Jun 13, 2013 at 11:04
- 7@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.NoDataDumpNoContribution– NoDataDumpNoContribution2014-06-16 08:34:55 +00:00Commented Jun 16, 2014 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– Andrea2020-08-19 02:42:27 +00:00Commented Aug 19, 2020 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)
- 1Welcome to TeX.sx!Peter Jansson– Peter Jansson2013-04-25 19:31:25 +00:00Commented Apr 25, 2013 at 19:31
- Great key, since the feature seems not to be accessible from the menufstevens– fstevens2014-03-12 08:53:22 +00:00Commented Mar 12, 2014 at 8:53
- 1Great, 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– magnattic2014-06-19 18:31:33 +00:00Commented Jun 19, 2014 at 18:31
- 3Just 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"Niko Fohr– Niko Fohr2016-08-13 13:50:51 +00:00Commented Aug 13, 2016 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– pietro2018-03-30 09:10:04 +00:00Commented Mar 30, 2018 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".
- 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– Carl2017-06-17 21:20:44 +00:00Commented Jun 17, 2017 at 21:20
- This should be now the accepted answer. Thanks!AstoundingJB– AstoundingJB2019-09-07 15:46:31 +00:00Commented Sep 7, 2019 at 15:46
- 2This 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– Andrea2020-05-23 12:03:09 +00:00Commented May 23, 2020 at 12:03
- @Andrea's point is good. Also, sometimes I have mistakenly pressed on "always ignore" and now I have no idea how to delete the "wrong" word from the list of words that should actually be ignored.Delio– Delio2022-10-09 12:03:45 +00:00Commented Oct 9, 2022 at 12:03