I would suggest setting up a minimal working example to confirm that the problem is with the gvim setup rather than in the other files and file locations.
In the same directory, a test .tex file of:
\documentclass{article}
\bibliographystyle{amsplain}
\begin{document}
test
\bibliography{TeX}
\end{document}
and a TeX.bib of
@book{diller97,
author = "Antoni Diller",
title = "{\LaTeX} Line by Line",
year = "1997",
edition = "1st",
publisher = "Wiley",
address = "Chichester, England"
}
@book{goossens99,
author = "Michel Goossens and Sebastian Rahtz",
title = "The {\LaTeX} Web Companion",
year = "1999",
edition = "1st",
publisher = "Addison-Wesley",
address = "Boston, Massachusetts"
}
works for my set-up when adding the line \cite{}
after the line test
and then pressing F9.
A second check: is vim-latexsuite is working for other functions? For example, with gvim, there would usually be several 'TeX-...' entries on the main menu. vim-latexsuite on some systems must be both installed and then manually set up. For example, on Ubuntu 11.04, you have to set up latexsuite after installation via synaptic:
By default, vim-latexsuite is not enabled. Please read
/usr/share/doc/vim-latexsuite/README.Debian after installing the
package.
FWIW, my directory ~/.vim has subdirectories that include one, ftplugin
, that, in turn, contains another subdirectory, latex-suite, but also two files: bib_latexSuite.vim and tex_latexSuite.vim. Unless you're also running Ubuntu 11.04 I would not expect exactly the same files but I would expect some files relating to latexsuite and to bib in the .vim directory in your home directory (if you are using GNU/Linux).
The following works on my end: Create a file called latexmk.vimrc
in the current directory with the following content
set nocompatible
filetype plugin on
set grepprg=grep\ -nH\ $*
filetype indent on
let g:tex_flavor='latex'
let g:Tex_DefaultTargetFormat = 'pdf'
let g:Tex_CompileRule_pdf = 'latexmk -pdf -f $*'
set iskeyword+=:
Call vim -u latexmk.vimrc filename
where filename
is a tex file. Type \ll
in normal mode runs latexmk
. I need to press enter at the end but I don't know how to get rid of that.
Best Answer
If I understand you correctly, you have tried
make
and notmake install
.The Makefile is written such that
make
downloads the newest snapshot with SVN, andmake install
installs it. Trymake install
instead!I would have written suggestion as a comment, but I do not have enough reputation.