Skip to content

let-def/texpresso.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeXpresso.vim

Neovim mode for TeXpresso

Installation:

  1. Install TeXpresso. If installation is successful, you should have texpresso binary in your PATH.
  2. Clone TeXpresso.vim, and make sure it is in Neovim runtime path. For instance:
    $ cd ~/.config/nvim
    $ mkdir start
    $ cd start
    $ git clone https://github.com/let-def/texpresso.vim.git

Usage:

  1. Open a .tex file. Launch the viewer: :TeXpresso <path/to/main.tex> (e.g. :TeXpresso % if the current file is the root)
  2. The viewer should let you preview the .tex file. It should track your position in the buffer (when the cursor moves), and any change to the buffer should be reflected quickly in the preview window.

TODO:

  • report errors/warnings in vim quickfix buffer
  • allow customization: theme, cursor synchronizaiton, bindings, stay-on-top, ..
  • simplify initialization, respect Neovim conventions, make code more robust

Configuration

The mode can be customized by changing some lua variables.

texpresso_path

You can customize the path to texpresso binary:

:lua require('texpresso').texpresso_path = "/home/.../texpresso/build/texpresso"

Screenshots

Launching TeXpresso in vim:

txp-start.mp4

Live update during edition:

txp-edit.mp4

Using Quickfix window to fix errors and warnings interactively:

txp-quickfix.mp4

Synchronization from Document to Editor (SyncTeX backward):

synctex-backward.mp4

Synchronization from Editor to Document (SyncTeX forward):

synctex-forward.mp4

Theming, Light/Dark modes: 😎

txp-theme.mp4