From: Preben R. <ra...@pv...> - 2003-09-24 10:48:02
When I type \ll latex compiles my document and then I am moved to to
place where a Warning was issued. Is there a way to prevent this? The
problem is that I get some warnings about som citations or references I
haven't put in yet and I keep having to go my way back in the document
every time. I guess I can turn on the ignore warnings, but it would be
nice to see them, just not automatically jump to them. Can this be done?
Thanks in advance
Preben Randhol
From: Preben R. <ran...@pv...> - 2003-09-25 08:57:33
mi...@wp... wrote on 25/09/2003 (10:08) :
> Simple and brute solution:
>
> Go to ftplugin/latex-suite/compiler.vim and comment line 586 (call GotoErrorLocation(mfnlog)).
>
> More advanced solution is to create in texrc new variable:
>
> " This forces LaTeX-Suite to go to each error/warning generated by LaTeX.
> let Tex_GotoError = 1
>
> Make it enable by default. And in compiler.vim:
> if exists("Tex_GotoError) && Tex_GotoError == 1
> call GotoErrorLocation(mfnlog)
> " because cursor stays in error list window
> wincmd k
> endif
>
> But there is one question. In linux terminal it can behave strange (vim 6.2.96, lS-1.5-rc1, multi-gnome-terminal):
>
> Comment line 586. Run \ll in file with fault. Everything is OK. Return to main window, :only, run \ll once more. Cursor vanishes. You
> have to press <Cr>. Currently this is not problem because <cr> is the first command in GotoErrorLocation().
>
> Can anybody confirm this?
>
> m.
I use latexSuite-1.5-rc1 and this method doesn't work.
--
Preben Randhol ------------- http://www.pvv.org/~randhol/vim --
"Vim : simply the best text editor out there."
From: Preben R. <ra...@pv...> - 2003-09-25 09:14:57
Preben Randhol <ra...@pv...> wrote on 24/09/2003 (12:51) :
I found the place where the GotoError was called. It was in fucntion:
function! Tex_SetupErrorWindow()
I change the end of the function from:
»··»··" resize the window to just fit in with the number of lines.
»··»··exec ( line('$') < 4 ? line('$') : 4 ).' wincmd _'
»··»··call GotoErrorLocation(mfnlog)
»··endif
to
»··»··" resize the window to just fit in with the number of lines.
»··»··exec ( line('$') < 4 ? line('$') : 4 ).' wincmd _'
if exists('g:Tex_GotoError') && g:Tex_GotoError == 1
»··»·· call GotoErrorLocation(mfnlog)
else
wincmd k
endif
»··endif
and the I set g:Tex_GotoError in texrc as mi...@wp... suggested.
Thanks for help by the way.
Could one do something like this for latex-suite as a default? I mean
one can have Tex_GotoError = 1 as default, but that one can turn it off
if one want to?
Thanks in advance.
Preben
On 25 Sep 2003 at 11:14, Preben Randhol wrote:
>
> Could one do something like this for latex-suite as a default? I mean
> one can have Tex_GotoError = 1 as default, but that one can turn it off
> if one want to?
Srinath, could you do it? I don't have access to CVS :(
Maybe with comment it can don't work perfectly in some terminals.
m.