Using the vimtex plugin, forward searching (from the .tex file to the .pdf) works with Skim but not with zathura.

In nvim, the error Vimtex: Viewer cannot find Zathura window ID! appears. This seems to be caused by a problem with xdotool, which does not assign a window id to the zathura window.

But in Terminal, the following command doesn't do anything either:

zathura --synctex-forward 100:10:mwe.tex mwe.pdf 

Has anyone been successful in getting forward search to zathura to work on macOS?

  • did you find anything that works?
    – Nitin
    Dec 17, 2020 at 17:13
  • 1
    No, currently using Skim which works perfectly. There is talk over at the Vimtex Github of a patch. Dec 17, 2020 at 17:21
  • Can you please link a guide which details setting up skim? Also, what are the differences you have observed between skim and zathura?
    – Nitin
    Dec 17, 2020 at 20:32
  • See the vimtex documentation github.com/lervag/vimtex/blob/master/doc/vimtex.txt. The following in your .vimrc should do the trick: let g:tex_flavor='latex' let g:vimtex_compiler_progname = 'nvr' let g:vimtex_view_method = 'skim' Additionally, I'm using the following settings in Skim > Preferences > Sync: Preset: Custom; Command: nvim; Arguments: -remote-silent %line "%file" Note that I am using nvim. If using nvim you should have neovim-remote (a plugin) installed. Zathura is more lightweight and can be customised to use the same colorscheme as your vim. Dec 18, 2020 at 11:47


You must log in to answer this question.

Browse other questions tagged .