So I finally tracked down what was wrong. It's quite bizarre and
obscure, so hopefully this will help someone else in the future.
I always start my tex files with a couple of \input{template.tex}
commands where template.tex holds all my common definitions, etc.
When I was trying out the complete ref functionality of latex-suite,
i.e. pressing F9 after \ref{, I noticed that I received a flash of an
error message and the reference completion didn't work. I took a
screenshot and it turns out that the Python script that controls much
of what's going on in latex-suite looks for "template.tex.tex", i.e.
it adds on a .tex, even though what I have compiles perfectly fine in
pdflatex.
Changing these to \input{template} makes everything work smoothly.
Fixes the reference problems and the strange viewing problems, and I
imagine other things I haven't even tried yet.
An easy solution to a bewildering problem!
On Jun 25, 6:06 pm, at <[email protected]> wrote:
> I'm using the versions that are in the Ubuntu repositories...so 7.1 on
> Ubuntu 8.04 and 7.2 on Ubuntu 8.10. The one that works the way I want
> it to is version 7.1 on Ubuntu 8.04. So since you say you get the same
> behavior using 7.2 on Debian, perhaps its some quirk with Ubuntu....?
>
> On Jun 24, 9:45 pm, bill lam <[email protected]> wrote:
>
> > On Wed, 24 Jun 2009, at wrote:
>
> > > So this relates to my latex-suite question a while back, which I
> > > solved, but is mysterious.
>
> > > On my Ubuntu 8.10 desktop if I issue
> > > :!evince sample.pdf
> > > It will open up sample.pdf and leave me free to edit inside gvim. (My
> > > desired result.)
>
> > > I have an Ubuntu 9.04 laptop running the same exact configuration of
> > > gvim, yet there when I do
> > > :!evince sample.pdf
> > > Evince will open but I will be unable to edit inside gvim until I
> > > close evince.
>
> > This is what I got in debian lenny and vim7.2. I think this should be the
> > correct behavior.
>
> > > Now naturally one would think that the trick is to open evince in the
> > > background:
> > > :!evince sample.pdf &
>
> > This works for me. Which version of vim do you use? Or will build
> > from source help?
>
> > VIM - Vi IMproved 7.2 (2008 Aug 9, compiled May 31 2009 10:57:38)
> > Included patches: 1-191
>
> > --
> > regards,
> > ====================================================
> > GPG key 1024D/4434BAB3 2008-08-24
> > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---