conornewton / vim-latex-preview

Latex Preview Plugin for Vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Latex Preview Plugin for Vim

License:GNU General Public License v3.0


Languages

Language:Vim Script 100.0%