Thread: [Vim-latex-devel] jump to error suggestion explained in detail
Brought to you by:
srinathava,
tmaas
From: Martin S. <fo...@un...> - 2007-08-29 12:59:47
|
Hey. I'm glad that somebody read my mail. On Wed, Aug 29, 2007 at 01:06:59AM -0400, Jushan Bai wrote: > I notice that you proposed a solution to the "jump to error" problem. > But I'm a novice about the latexsuite setups and environment variables > etc. I'm using vim78.0 + miktex 2.5 + windows xp. Note that I only tested my suggestion with Ubuntu Linux and tetex, so it might not work with miktex at all. Maybe you should consider reading the miktex documentation if their latex command supports the -file-line-error flag. If you get it to work in windows please let the vim-latex mailinglist know about it so that others can profit, too. > In which latexsuite script I should make the suggested changes? For testing purposes, you can just do a :let g:Tex_CompileRule_dvi='latex -interaction=nonstopmode -file-line-error $*' in vim. If it all works, you can add that statement without the : in your vimrc, or somewhere else, e.g. ~/.vim/after/ftplugin/tex.vim, thats where I have put it. (Your path might be different, I don't know about windows. The vim documentation about paths should be a good place to start reading about it, also :help compiler-rules is not a bad idea) > and where do I add or change or delete the following statement? I > have no idea what they mean at all: The statement that you meant: ----------- 8< ----------------- --- /usr/share/vim/addons/compiler/tex.vim 2007-01-29 13:39:58.000000000 +0100 +++ /home/lennox/.vim/compiler/tex.vim 2007-06-14 23:33:33.000000000 +0200 @@ -202,6 +202,7 @@ function! <SID>SetLatexEfm() setlocal efm+=%E!\ LaTeX\ %trror:\ %m setlocal efm+=%E!\ %m + setlocal efm+=%E%f:%l:\ %m setlocal efm+=%+WLaTeX\ %.%#Warning:\ %.%#line\ %l%.%# setlocal efm+=%+W%.%#\ at\ lines\ %l--%*\\d ------------ >8 ---------------- Is a patch made with the command diff -u /usr/share/vim/addons/compiler/tex.vim ~/.vim/compiler/tex.vim It shows the difference between the official /usr/share/vim/addons/compiler/tex.vim and the one that I changed and put in my home directory (~/.vim/compiler/tex.vim), with some context to improve readability. so lines with blanks in the first column mean unchanged lines (context), lines with "+" have to be added, lines with "-" have to be erased. See [1]. On any *nix you could use the "patch" [2] command to make these changes, but as its just one line you can just add it with your favourite text editor (I'd suggest vim, but as you use windows you may be a masochist and want to use notepad instead ;-)...). It basically just means that you have to add the line that begins with the "+" in the shown context (btw. the 202 is a line number, so :202 will get you there in vim). If you have installed the latex-suite like described here: http://vim-latex.sourceforge.net/index.php?subject=download&title=Download the file that you have to edit should be: vimfiles\compiler\tex.vim > Thanks for your help. You're welcome. I hope you can understand my lengthy description. If you want to know what it all means look for documentation on -file-line-error in miktex, and maybe do a :help efm in vim. Cheers Martin [1] http://en.wikipedia.org/wiki/Diff#Context_format [2] http://en.wikipedia.org/wiki/Patch_%28Unix%29 |
From: Guido M. <gui...@un...> - 2007-12-19 10:30:43
|
Dear all, I am experimenting a new Linux distribution (Ubunto 7.10), which I am very impressed by. I installed vim-latex using an automatic installation tool, called Synaptic, but to my amazement the files were not installed in the .vim directory (which does not exist), but on /usr/share/vim/addons/ftplugin/latex-suite Would you suggest to remove this installation and install the program manually (on my Mandriva I did so and it's all right), to use a symbolic link or can I use this unusual location of the files? Thank you, and congratulations on this excellent program. I am writing a manual on LaTeX for the humanities (in Italian) and the program will be mentioned as an excellent "companion" for scholars in our fields. Cheers, g ------- Guido Milanese http://docenti.unicatt.it/milanese_guido http://www.arsantiqua.org |
From: Vaidotas Z. <ze...@gm...> - 2007-12-19 10:54:52
|
Hi, Le mercredi 19 décembre 2007 à 11:30 +0100, Guido Milanese a écrit : > Dear all, > I am experimenting a new Linux distribution (Ubunto 7.10), which I am very > impressed by. I installed vim-latex using an automatic installation tool, > called Synaptic, but to my amazement the files were not installed in the .vim > directory (which does not exist), but on > /usr/share/vim/addons/ftplugin/latex-suite > > Would you suggest to remove this installation and install the program manually > (on my Mandriva I did so and it's all right), to use a symbolic link or can I > use this unusual location of the files? The location is not unusual, it is site-wide installation, i.e. everybody user on your system can use vim-latex, without the need of installing it. If you are the sole user of the computer I think it makes sense to install vim-latex locally (as you did in Mandriva), since this is the way the author suggests it, and all the tutorials are written with this configuration in mind. Of course you must remove the Ubuntu package before installing local version. Ubuntu package is ok, if you do not intend to change any vim-latex settings, and use the defaults. Vaidotas Zemlys |
From: Guido M. <gui...@un...> - 2007-12-19 17:29:25
|
Many thanks for the information kindly supplied by listmembers. i was not aware of vim-addon-manager (shame; I use vim everyday and I should have known). I decided to leave the main installation as it was because another user could use the same files. I noticed that the installation process of this vim-addon-manager was simply a set of symbolik links in my home (clever indeed). So I copied manually my personal settings (file texrc) in .vim/ftplugin/tex and it's all right. Best regards, guido, from genoa, italy ------- Guido Milanese http://docenti.unicatt.it/milanese_guido http://www.arsantiqua.org |
From: Sebastian M. <seb...@un...> - 2007-12-19 10:56:02
|
Am Wed, 19 Dec 2007 11:30:41 +0100 schrieb Guido Milanese <gui...@un...>: > Would you suggest to remove this installation and install the program > manually (on my Mandriva I did so and it's all right), to use a > symbolic link or can I use this unusual location of the files? Yes. Especicially since the version is outdated. Current version in Ubuntu (and probably Debian) is "20060325-3". Is there no active package maintainer for a debianized vim-latex-suite? Sebastian. |
From: Martin S. <fo...@un...> - 2007-12-19 11:07:07
|
On Wed, Dec 19, 2007 at 11:55:43AM +0100, Sebastian Menge wrote: > the version is outdated. Current version in > Ubuntu (and probably Debian) is "20060325-3". No it is not, see [1]: Latest version of Latex-Suite: * latexSuite20060325.tar.gz (212.3 Kb; March 25, 2006) > Is there no active package maintainer for a debianized vim-latex-suite? Actually debian even patched latex-suite, I don't know if these patches are going upstream though. The latest patch in the changelog that is not debian-specific is from jan 16th. Happy vimming Martin [1] http://vim-latex.sourceforge.net/index.php?subject=download&title=Download |
From: Valentin F. <flu...@gm...> - 2007-12-19 11:18:43
|
Hi All, I have some trouble with the F9 completition of my bibtex items under Ubuntu 7.10. When I write \cite{ and F9 an empty preview window comes up. (My bib file is setup correctly) For the \ref{ command it works. I also installed the latest version in my .vim folder (removing the ubuntu package before) but this didn't change anything. Can anyone reproduce this? regards, Valentin On Dec 19, 2007 12:07 PM, Martin Sander <fo...@un...> wrote: > On Wed, Dec 19, 2007 at 11:55:43AM +0100, Sebastian Menge wrote: > > the version is outdated. Current version in > > Ubuntu (and probably Debian) is "20060325-3". > > No it is not, see [1]: > Latest version of Latex-Suite: > * latexSuite20060325.tar.gz (212.3 Kb; March 25, 2006) > > > Is there no active package maintainer for a debianized vim-latex-suite? > > Actually debian even patched latex-suite, I don't know if these patches > are going upstream though. The latest patch in the changelog that is not > debian-specific is from jan 16th. > > Happy vimming > > Martin > > [1] > http://vim-latex.sourceforge.net/index.php?subject=download&title=Download > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > |
From: Vaidotas Z. <ze...@gm...> - 2007-12-19 12:26:20
|
Le mercredi 19 décembre 2007 à 12:18 +0100, Valentin Flunkert a écrit : > Hi All, > > I have some trouble with the F9 completition of my bibtex items under > Ubuntu 7.10. > When I write \cite{ and F9 an empty preview window comes up. (My bib > file is setup correctly) > For the \ref{ command it works. > > I also installed the latest version in my .vim folder (removing the > ubuntu package before) but this didn't change anything. > Can anyone reproduce this? If you open tex file with gvim from nautilus, at least on Ubuntu 7.04, gvim does not set the correct current directory. Then F9 completion does not work with \cite and bibtex. Try opening file from terminal from the directory where the file resides. Vaidotas Zemlys |
From: Sebastian M. <seb...@un...> - 2007-12-19 15:59:25
|
Am Wed, 19 Dec 2007 14:26:15 +0200 schrieb Vaidotas Zemlys <ze...@gm...>: > If you open tex file with gvim from nautilus, at least on Ubuntu 7.04, > gvim does not set the correct current directory. Then F9 completion > does not work with \cite and bibtex. Try opening file from terminal > from the directory where the file resides. Offtopic: I have that behavior often. Is there a workaround to get gvim play nicely with nautilus, i.e. set the cwd correctly? Seb. |