LaTeX on Linux
I use a combination of Neovim, Vimtex, TeX & Zathura to edit latex documents on the fly.
To get started, let's install the compiler (TeX) and the pdf reader (Zathura):
On Debian:
sudo apt-get install texlive-full zathura
On Arch:
sudo pacman -S texlive-most texlive-lang zathura
Assuming you have neovim up and running, install the vimtex neovim plugin via your init.vim file:
call plug#begin('~/.config/nvim/bundle')
...other plugins here
Plug 'lervag/vimtex'
...other plugins here
call plug#end()
:PlugInstall
At the base of your init.vim file add:
let g:vimtex_compiler_progname = 'nvr'
let g:vimtex_view_general_viewer = 'zathura'
If you also use deoplete you can integrate it from within init.vim with:
call deoplete#custom#var('omni', 'input_patterns', {
\ 'tex': g:vimtex#re#deoplete
\})
Now you can create a .tex file and run:
:VimtexCompile
Your output pdf should appear and every time you save that file the output should update.
Here is my setup: