Spell check in SublimeText

I am working on my Master Thesis using LaTeX and SublimeText.

Today, I found out that SublimeText allows you to check spelling. To enable spell-check: click F6 or go to View->’Spell Check’.

When spell-check is enabled, it displays red squiggles below the misspelled words. By right click on misspelled word you can correct the misspellings. You can also ignore it for all other occurrences of specific word (useful e.g. for Software Projects names).

SublimeText spell check correct

The spell check is performed based on chosen language/dictionary. You get two English dictionaries (en_US and en_GB) along with SublimeText installation. You can find more dictionaries on github repository: SublimeText / Dictionaries (check readme for installation instructions). To change dictionary: go to View->Dictionary.

SublimeText spell check dictionary

SublimeText is not only lightweight IDE. It can also serve as nice text editor.

I really like SublimeText and if you are not using it so far you should try it! There is nice series of posts Sublime is Sublime. Greg Young describe how to configure and take advantage of SublimeText as .NET developer (from color schemes to run unit tests, through git integration).

Sumatra PDF

I added new tool to my tools list: Sumatra PDF.

It is a PDF, ePub, MOBI, CHM, XPS, DjVu, CBZ, CBR reader for Windows. It detects changes in opened document automatically (e.g. when you regenerate it with LaTeX). It works nicely with SublimeText LaTeXTools plugin, which I blogged about yesterday. Sumatra PDF has very nice UI. Additionally you can view eBooks before you put them in you eBook reader (e.g.: .mobi or .epub).

Sumatra PDF is Open Source project and its code is available on Google Code.

LaTeX with SublimeText and Skim

SublimeText with LaTeX Tools plugin

Recently I started writing my Master Thesis. I decided I will do it in LaTeX.

I work most of the time on MacBook. The most popular LaTeX distribution for Mac is MacTeX (for Windows: MiKTeX or TeXlive). Once I had this installed I needed editor. First I was using TeXworks, but it is not very decent environment. Nice thing about it is the built-in PDF viewer. Every time I rebuild the document it refresh generated pdf. However, it’s hard to manage documents with more than one .tex file. My Master Thesis consists multiple files and I end up editing files in SublimeText and building pdf with TeXworks. Not cool!

Today, one friend of mine showed me application, which detects .pdf updates automatically: Skim. I have also found LaTeXTools plugin for SublimeText. It allows to build .tex document with CMD+B (Mac) or CTRL+B (Windows/Linux). Moreover, Skim can be integrated with SublimeText in such a way that it checks for updates every time, you perform build in SublimeText.

LaTeX + SublimeText + Skim setup

  1. Install LaTeX distribution (for Mac OS X: MacTeX, for Windows: MiKTeX or TeXlive).
  2. Install SublimeText
    • Optionally: Install SublimeText Package Control (if you didn’t do that already) – it will be easier to install LaTeXTools package.
  3. Install LaTeXTools plugin. With SublimeText Package Control installed: click CMD+SHIFT+P (on Mac) or CTRL+SHIFT+P (Win/Linux). More details can be found here.
    • Mac users: You may need to install ‘latexmk’: sudo tlmgr install latexmk (more info can be found in LaTeXTools README).
  4. Install Skim (for Windows users: check Sumatra PDF).
  5. In Skim: go to Preferences->Sync and set ‘preset’ to SublimeText.

Skim preferences

After that you just need to build LaTeX document in SublimeText with CMD+B (Mac) or CTRL+B (Win/Linux). Open the generated .pdf in Skim, then every time you rebuild it in SublimeText – it will be refreshed automatically.

If you have multiple documents add %!TEX root = <master file name> at the beginning of every file.

It is much more convenient than using SublimeText and TeXworks for rebuilding pdf. Additionally, TeXworks’ PDF viewer is not very decent.

For LaTeX editing, I have found also TeXstudio. It looks good, but I didn’t test it so far.