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
834 stars 74 forks source link

UpdatePDF function error #89

Closed r3v1 closed 4 years ago

r3v1 commented 4 years ago

In the main.tex file I have, I execute the live preview command while editing in neovim and it runs succesfully. However, when opening a tab in the same neovim session (which is inserted in main.tex with \input{chapter}) it raises an error.

Expected behavior

Either compile the input on the main.tex or do nothing with the 1-chapter.tex file .

Actual behavior

Raises (translated from spanish):

Error detected when processing function UpdatePDF.
E121: Undefined variable: b:Liveupdating
E15: Invalid expression: filewritable(bufname("%")) && b:Liveupdating == "yes"

Steps to reproduce

  1. Create the next files:

main.tex:

\documentclass[12pt]{article}

\begin{document}
\input{chapter}
\end{document}

chapter.tex:

\section{Section 1}
First Section
  1. Open neovim with main.tex and start live preview
  2. Open another tab with chapter.tex.
  3. Error

System configuration

# output of `nvim --version`

NVIM v0.4.3
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.4.3/src -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
Compilado por builduser
xuhdev commented 4 years ago

There is neither UpdatePDF function nor b:Liveupdating variable in this plugin. Are you sure this is the plugin at issue?

r3v1 commented 4 years ago

You are right, there is no function like that. I installed vim-live-latex-preview many months ago through Aurman (Arch Linux) and I thought it belongs to you, but now I realize it is not. Actually, it is abandoned since 2016.

Thanks