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

Doesn't use TEXINPUTS environment variable #106

Closed mjsossong closed 4 years ago

mjsossong commented 4 years ago

Expected behavior

Previewer should use TEXINPUTS environment variable when searching for input files (e.g. \input{some_file.tex}), successfully compile and display the preview

Actual behavior

The preview fails with "Failed to compile" because the compiler can't find the input file

Steps to reproduce

Bash environment variable TEXINPUTS is set to a directory where some common input tex files are stored. e.g. in .bashrc: export TEXINPUTS=$HOME/.latex/renewcommands// with that directory containing some_command_definition.tex and in some_article.tex file: `...

\input{some_command_definition.tex}

...`

in vim editing some_article.tex
:LLPStartPreview

Returns error: Failed to compile

System configuration