[Vim-latex-devel] YAP forward search problem
Brought to you by:
srinathava,
tmaas
From: Marino <mar...@ya...> - 2004-11-30 14:28:00
|
Hi all, I am having a problem with running a forward search with the dvi viewer Yap (win32). I am fairly new to latex-suite, so I may have overlooked some simple settings. System: ------- Win2K gvim 6.3 grep (GNU grep) 2.5.1 latexSuite-1.5 (from latexSuite-1.5.tar.gz) latest MiKTeX (30-Nov-2004, MiKTeX update wizard) Problem: -------- I have a latex project consisting out of one main file ('main.tex') which includes (\include{}) several other files, e.g. 'chap1.tex'. Whenever I edit such an included file and I want to use a forward search (latex-suite '\ls') with Yap I get an 'yap.exe - Application Error' message from windows and Yap does not start at all. However, a normal preview of the dvi document (latex-suite '\lv') does work. I do have the following line in my 'texrc' file: let g:Tex_CompileRule_dvi = 'latex -interaction=nonstopmode --src-specials $*' The latex-suite command '\ls' invokes the following vim command when called from within the buffer that contains the 'chap1.tex' file: !start yap -1 -s 101chap1.tex c:/somedir/main I believe this should be: !start yap -1 -s 101chap1.tex c:/somedir/main.dvi i.e. with the extension '.dvi'. Therefore, I have made the following modification in the 'VIM$/vimfiles/ftplugin/latex-suite/compiler.vim' file. The original part: if has('win32') exec '!start '.viewer.' -s '.line('.').expand('%:p:t').' '.mainfname is changed into: if has('win32') exec '!start '.viewer.' -s '.line('.').expand('%:p:t').' '.mainfname.'.dvi' i.e. I appended the extension '.dvi'. This works in my case. I do not known whether this can be categorized as a bug, but it works now for me. ___________________________________________________________ ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com |