hi everybody,
i have problems using forward search, when i use the xdvi viewer with further options.
i'm using Latex-Suite: version 1.8.23 together with vim version 7.1.314
the latex part of my vim.rc is:
let g:tex_flavor='latex'
let g:Tex_ViewRule_dvi = 'xdvi -fullscreen -hush -hushstdout -s 6'
let g:Tex_MultipleCompileFormats = 'dvi'
let g:Tex_CompileRule_dvi = 'latex --src-specials -interaction=nonstopmode $*'
the problem appears if xdvi is used as viewer with any option.
when i edit a latex file and typ \ls nothing happens, one the other hand \lv works as desired.
i figured out that in the file
.vim/ftplugin/latex-suite/compile.vim
in the function Tex_ForwardSearchLatex()
there is defined the variable viewer:
let viewer = Tex_GetVarValue('Tex_ViewRule_'.s:target)
later on the variable viewer is compared to "xdvi", cleary if viewer has the value "xdvi -option" it is not recognised as "xdvi".
i would suggest to cut the first word out of the variable viewer and use this for the comparisons with "xdvi"
regards,
ruediger
--
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
Jetzt informieren: http://www.gmx.net/de/go/freephone
|