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.
5 Answers
Here's my package setup:
I experimented with the now disabled package, but I found the combination of language-latex
and latextools
much better.
https://atom.io/packages/language-latex
https://atom.io/packages/latextools
The former package is for syntax highlighting, the latter for typesetting (it uses latexmk
).
-
3I personally prefer
latex
which, contrary tolatextools
, has been updated (multiple times) since the above post. Also;latex
works well withpdf-view
which is my preferred way of viewing the compiled document. Commented 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.– egregCommented 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 ?– BambOoCommented Mar 28, 2018 at 11:10
Here is another option worth of adding to the list.
Atom-LaTeX
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.
Features
- 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.
Examples
Autocomplete and syntax highlighting
See the gallery for more examples.
Installation
Install just like any other package: find it through the Install Packages interface or run in the command line apm install atom-latex
.
Usage
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.
-
1It is also nice the compilation toolchain settings. Is the only package I know with which you can use
arara
Commented 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:
latex: Has more users at this point. Once you install this package, set TeX path in settings to
/usr/bin
.atom-latex: Has less users, but worked pretty much out of the box.
build
command by pressing the default keybindctrl-alt-b
while in a .tex file -- this is at least what the documentation says.apm
, notamp
. As I said, never used Atom, but looks like you can install packages from Edit --> Preferences: flight-manual.atom.io/using-atom/sections/atom-packageslatexmk
is required to runpdflatex
or friends from inside Atom.