xuhdev / vim-latex-live-preview

A Vim Plugin for Lively Previewing LaTeX PDF Output
https://www.topbug.net/blog/2013/06/13/live-preview-of-latex-in-vim/
GNU General Public License v3.0
832 stars 73 forks source link

E492: Not an editor command: LLPStartPreview #3 #116

Open ErrWare opened 3 years ago

ErrWare commented 3 years ago

Expected behavior

:LLPStartPreview should compile and preview the tex document in the current buffer.

Actual behavior

E492: Not an editor command: LLPStartPreview

Steps to reproduce

Tell us how it occurs

  1. Plug 'xuhdev/vim-latex-live-preview' using vim-plug
  2. :PlugInstall
  3. Open up tex document
  4. :LLPStartPreview

System configuration

NVIM v0.5.0-dev+1323-gd67dcaba0
Build type: Debug
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=1 -I/home/sherrware/Downloads/neovim/build/config -I/home/sherrware/Downloads/neovim/src -I/home/sherrware/Downloads/neovim/.deps/usr/include -I/usr/include -I/home/sherrware/Downloads/neovim/build/src/nvim/auto -I/home/sherrware/Downloads/neovim/build/include
Compiled by root@archlinux

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/share/nvim"

Run :checkhealth for more info

Arch. Please let me know what commands I should run to fill out this section...


I've already checked #83 and #105 and #12. Like in #12 I see vim-latex-live-preview loaded in :scripts, unlike in the issue I don't see a +python feature, although in vim :checkhealth I do see it is compiled with python3 support, and running :python3 import ... like is done in the .vim script everything works. I don't know what else to try.

ghost commented 3 years ago

I'm facing the same issue

Rafmaninoff commented 3 years ago

I just had to deal with this very issue, the solution was to actually ensure texlive was properly installed in the system.

FrenzyExists commented 3 years ago

I'm also having the same issue. I installed texlive-most and for some reason it won't work. I can however use pandoc (which requires latex to be installed for the conversion) without any issue

Btw I'm using neovim nightly version if that helps

jakec-dev commented 3 years ago

Same issue here.

texlive is installed correctly and :script shows that the plugin is loading correctly in vim. I'm not having issues with any other vim plugins either.

I'm on Arch Linux, have texlive-most installed through the Arch repo, have ensured all my packages are up to date, am using vim version 8.2, and have tried installing the plugin both through vim-plug and manually (exact same issue occurs with both methods). I'm not sure what else to try.

stainlesspot commented 3 years ago

For neovim, if :echo has('python3') || has('python') outputs 0, you have to install the python-pynvim package. As noted on the Arch wiki.

skippa commented 3 years ago

Did anyone happen to solve this? I'm using arch linux, vimplug, vim 8.2, same issue

AbdeltwabMF commented 3 years ago

@stainlesspot Thank you so much. I'v had the same issue but now it just works.

xuhdev commented 3 years ago

Since this is resolved, I'm closing this now.

xuhdev commented 3 years ago

OK don't see the OP hasn't resolved this yet. You must have +python or +python3 feature to use this plugin. https://github.com/xuhdev/vim-latex-live-preview/issues/116#issuecomment-872657823 might be useful. Let me if it works. Thanks.

nzetsu commented 3 years ago

so i had the same issue as OP. I'm using vim 8.1 on debian 10 buster and i had to reinstall it and chose a +python3 ready to use version of vim. vim-gtk3 did it. And then i had the failed to compile issue. After a round 2 of other issues reading, i noticed, that my hello world doc did not have \documentclass, so to say the problem was not on the pluging side, although i had -python and +python3. See the pictures... So there are two issues, the second is not from the plugin.

doc_working

vimrc

version

script_cmd