You are not logged in.

#1 2014-04-27 19:30:44

tapia
Member
Registered: 2013-03-13
Posts: 56

Can't set target format for Latex-suite at gvim's startup

I have been using vim + latex-suite for almost two years and it has always worked perfectly. Two days ago it started giving me an error message every time I tried to compile using <leader>ll. The error is the following:

Error detected while processing function Tex_RunLaTeX:
line    7:
E121: Undefined variable: s:target
E15: Invalid expression: s:target
line   10:
E121: Undefined variable: s:target
E116: Invalid arguments for function Tex_Debug
line   12:
E121: Undefined variable: s:target
E116: Invalid arguments for function Tex_GetVarValue('Tex_FormatDependency_'.s:target) != ''
E15: Invalid expression: Tex_GetVarValue('Tex_FormatDependency_'.s:target) != ''
line   21:
E121: Undefined variable: dependency
E116: Invalid arguments for function Tex_Debug
line   25:
E121: Undefined variable: dependency
E116: Invalid arguments for function Tex_Strntok(dependency, ',', i) != ''
E15: Invalid expression: Tex_Strntok(dependency, ',', i) != ''
line   51:
E121: Undefined variable: initTarget
E15: Invalid expression: initTarget

I have installed latex-suite with vundle:

Bundle 'git://git.code.sf.net/p/vim-latex/vim-latex'

In my .vimrc file I have set the Tex_DefaultTargetFormat and Tex_CompileRule_pdf options like this:

let g:Tex_CompileRule_pdf = 'pdflatex --interaction=nonstopmode $*'
let g:Tex_DefaultTargetFormat = 'pdf'

When I set manually this in the menu of gvim: "TeX Suite >> Target Format" to "pdf" it works correctly, but the next time I start gvim I have to do this again. I had never have to do this before.

I have uninstalled vim and latex-suite completely and installed it again, but the problem persists. I use vundle to manage all my vim plugins. Two days ago I installed two new plugins: Vimroom and vim-colors-solarized using this:

" Vimroom
Bundle 'mikewest/vimroom'
" Solirized Theme
Bundle 'altercation/vim-colors-solarized'

Of course I tried disabling them to see if that was the problem, but nothing happened.
Has anyone an idea of what this could be?

Offline

#2 2016-01-02 19:43:01

cyker
Member
Registered: 2009-05-30
Posts: 86

Re: Can't set target format for Latex-suite at gvim's startup

Same problem here.

:TCTarget pdf

will make it compile. But it's annoying to set it every time even with autocmd. I remembered it worked well several years ago. Time flies and things break.


.

Offline

Board footer

Powered by FluxBB