Skip to content

conornewton/vim-latex-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vim Latex Previewer

alt text

Dependencies

  • vim
  • pdfviewer
    • Evince (Works on Mac)
    • Mupdf
    • Okular
  • pdflatex (or another latex engine).

For async support (Compiling in background)

Installation

Just like any other vim plugin

Usage

Starting the preview

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.

Choosing a previewer

Stick the following in your vimrc, replacing with the name of your preferred pdf viewer.

let g:latex_pdf_viewer="<previewer>"

Choosing a latex engine

By default pdflatex will be used. Replace with your engine of choice e.g xelatex.

let g:latex_engine="<engine>"

Cleaning generated files

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