I would like to try Atom. On Ubuntu 16.04, I have TeX Live fully installed. I also have Atom. But I have no idea how to compile files I created. So far Atom seems not to recognise TeX syntax at all. The atom documentation seems also not to have the necessary information.

  • Invoke the build command by pressing the default keybind ctrl-alt-b while in a .tex file -- this is at least what the documentation says. Jun 30, 2016 at 9:03
  • 1
    Have you installed any Atom packages that add LaTeX support? I've never used Atom, but I think you need that, and Google points me to at least two such packages: atom.io/packages/latex and atom.io/packages/latextools Jun 30, 2016 at 9:38
  • 2
    apm, not amp. As I said, never used Atom, but looks like you can install packages from Edit --> Preferences: flight-manual.atom.io/using-atom/sections/atom-packages Jun 30, 2016 at 10:32
  • you need the required packages for Atom as described on their home page. Also latexmk is required to run pdflatex or friends from inside Atom.
    – naphaneal
    Jun 30, 2016 at 12:36
  • 1
    You'd also likely need language-latex to get syntax highlighting and pdf-view, if you want to view your PDFs in Atom.
    – ig0774
    Jun 30, 2016 at 21:07

5 Answers 5


Here's my package setup:

enter image description here

I experimented with the now disabled package, but I found the combination of language-latex and latextools much better.



The former package is for syntax highlighting, the latter for typesetting (it uses latexmk).

  • 3
    I personally prefer latex which, contrary to latextools, has been updated (multiple times) since the above post. Also; latex works well with pdf-view which is my preferred way of viewing the compiled document. Mar 21, 2017 at 12:13
  • 3
    @MarcinKonowalczyk Such choices mostly depend on habits with other text editors. Maybe I'll give a try to latex again.
    – egreg
    Mar 21, 2017 at 12:19
  • I have been experiencing a lot of lags with the language-latex grammar. Does anyone have the same issue ?
    – BambOo
    Mar 28, 2018 at 11:10

Here is another option worth of adding to the list.


Atom-LaTeX is an all-in-one package. You just really need one package to have all the main functionalities.

The GitHub repo is https://github.com/James-Yu/Atom-LaTeX.


  • Compile LaTeX with BibTeX
  • Preview PDF with build-in viewer
  • Parse LaTeX compiling log
  • Autocomplete
  • Syntax highlighting
  • Direct and reverse SyncTeX

The PDF preview works as a separate window or as a separate tab. Also worth to mention that it includes support for the spell checker, and that it is possible to have a different settings per project.


Autocomplete and syntax highlighting

enter image description here

See the gallery for more examples.


Install just like any other package: find it through the Install Packages interface or run in the command line apm install atom-latex.


It works out of the box. See here some of the keyboard shortcuts and other definitions like setting up tool chains.

Note: not to be confused with the package in the repo https://github.com/thomasjo/atom-latex, which corresponds to the LaTeX package mentioned in another answer.

  • 1
    It is also nice the compilation toolchain settings. Is the only package I know with which you can use arara Nov 23, 2020 at 23:04

Just need some awesome packages:

  • latex (compile workflow)
  • language-latex (syntax highlight)
  • linter-chktex (linter)
  • latexer (autocompletion)
  • latextools (more tools)
  • pdf-view (preview tool)

The latex, latex-plus, or latextools packages do compilation, log parsing and opening of the resulting PDF/PS/DVI file.


Here is what I did to get Latex to work in atom in Ubuntu 18.4:

Using the command line, install the following packages:

$ sudo apt install texliv texlive-latex-extra latexmk

Next, install one of the Latex packages for atom. Currently, there are two options:

  1. latex: Has more users at this point. Once you install this package, set TeX path in settings to /usr/bin.

  2. atom-latex: Has less users, but worked pretty much out of the box.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .