- vim
- pdfviewer
- Evince (Works on Mac)
- Mupdf
- Okular
- pdflatex (or another latex engine).
For async support (Compiling in background)
- vim version >= 8.00
- asyncrun.vim
Just like any other vim plugin
To start the preview mode:
:StartLatexPreview
This will compile your latex document and open it in one of the above pdf viewers.
After every save the previewer will be refreshed.
Stick the following in your vimrc, replacing with the name of your preferred pdf viewer.
let g:latex_pdf_viewer="<previewer>"
By default pdflatex will be used. Replace with your engine of choice e.g xelatex.
let g:latex_engine="<engine>"
By default we don't remove LaTeX generated files: .log, .out and .aux file. To remove them automatically, set to 1
let g:latex_preview_clean = 1