[Vim-latex-devel] Problem with name starting with a number
Brought to you by:
srinathava,
tmaas
From: Fabio S. <f.s...@un...> - 2005-02-08 16:37:47
|
Hi all, I already wrote a message similar to this one but as unsubscribed user and I never got any kind of reply: maybe I made some error. So please forgive me if you just didn't reply because the question was not worth... The point is that if I have a file starting with a number, when I start xdvi with \ls I get an error saying "No references to source file ".tex" in DVI file." Please remark that everything is well configured in order that reverse and forward search work properly. Moreover, renaming the very same with a name made only of letters everything works fine. This is a problem coming, I guess, from xdvi and the way it is called within vim-latex. Reading from man xdvi: The space before filename is only needed if the filename starts with a digit. When the space is used, the argument needs to be enclosed in quotes to prevent the shell from misinterpreting the space as argument separator. I solved, for the moment, defining noremap <F3> :exe '!xdvi -nofork -sourceposition "' . line (".") . ' ' . expand("%") . '" ' . expand("%:p:r"). " &" \| redraw!<cr> in my .vimrc, but I don't know how to fix it in vim-latex. Moreover, with the same kind of file, sometime I experience a problem with the .log file: typesetting it over and over again with \ll, sometime I get and error from gvim saying that the log file is already open. But I have not been able to produce such error in a systematic way. Finally, I would like to ask a question to which I have not been able to find an answer in the documentation: quite often I happen to edit plain tex files. How can I toggle the command \ll to use "tex" instead of "latex"? I defined noremap \latex :let g:Tex_CompileRule_dvi = 'latex -src-specials -interaction=nonstopmode $*'<CR> noremap \tex :let g:Tex_CompileRule_dvi = 'tex -src-specials -interaction=nonstopmode $*'<CR> in my .vimrc, so that I just type "\tex" once after starting and then \ll works as I want, but I feel this is not the "best" way to achieve this. TIA and best greetings Fabio Stumbo |