Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I use TeXworks there is no automatic spell checking. If I go Edit -> Spelling, the only option I have is none

How can I enable spell checking?

Thanks for your help

share|improve this question

3 Answers 3

up vote 2 down vote accepted

There is a section of the TeXWorks manual in which there is the reference to a guide on how to use dictionaries.

The link it refers to is this, so you should place your personal dictionaries in the folder /usr/share/myspell/dicts.

One easy way to add them is to install them. I suppose that if you use LibreOffice then they are installed by default. If not, you can simply install the packages named myspell-XX, where XX stands for your language.

You can easily find them with apt-get and auto-completion or via Synaptic.

share|improve this answer
    
Thanks, I had actually seen that but I already had a bunch of dictionaries in that directory. However apt-get'ing the same dictionary I normally use fixed the problem magically! –  Anake Mar 2 '12 at 15:20
    
You're welcome! :D –  dadexix86 Mar 2 '12 at 20:33

In case you already have LibreOffice installed, the en_US.aff and en_US.dic files are already on your system in the /usr/share/hunspell folder. In this case, just symlink these two files into /usr/share/myspell/dicts and you are done:

sudo ln -s /usr/share/hunspell/en_US.dic /usr/share/myspell/dicts/
sudo ln -s /usr/share/hunspell/en_US.aff /usr/share/myspell/dicts/

You can do so for all dictionaries you find in /usr/share/hunspell.

Restart Texworks afterwards.

You can see Texworks > Edit > Spelling > Unites-States now. Click it.

Also change Texworks > Edit > Preferences > Editor > spell-check-language > English-United-States.

You are done after restarting.

share|improve this answer

You might have hunspell dictionaries in the language you need already installed. Look for them in the folder /usr/share/hunspell and maybe you don't have to install a thing.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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