Re: [Vim-latex-devel] Forward search with okular
Brought to you by:
srinathava,
tmaas
From: Filip K. <ka...@fz...> - 2012-05-17 11:00:16
|
Peter, thanks for your reply. Having sourced the lines below into vim, there is some progress. Now, when I type \ls , three new okular instances will open; one contains the compiled file while the other two are empty. Each provides an error box, like this: Could not open /home/kadlecf/Documents/path/file.tex and Could not open /home/kadlecf/Documents/path/40 where 40 corresponds to the current line in the .tex source. Concerning the option "-synctex=1", sorry for my ignorance, but I don't know where to set it. What exactly does it influence? Also, I would be ready to install the latest version using the git-repository, but I do not know how to proceed... Filip On Thu, 17 May 2012, Peter Vasil wrote: > Hi, > > I use vim-latex with okular and forward search works like a charm. > > I have this in my .vimrc > > set grepprg=grep\ -nH\ $* > let g:tex_flavor='latex' > let g:Tex_DefaultTargetFormat = 'pdf' > let g:Tex_ViewRule_pdf = 'okular' > let g:Tex_CompileRule_pdf = "/usr/local/bin/latexmk -e > '$pdflatex=q/pdflatex -interaction=nonstopmode -file-line-error > -halt-on-error -synctex=1/' -pdf -bibtex $*" > > I use latexmk for compilation and you have to set "-synctex=1" > somewhere in the compile rules. > > Also, did you try to use the latest vim-latex from the git repository? > I dont know which version is in the OpenSUSE repositories but okular > forward search is working with the latest vim-latex version from the > git repository. > > Peter > > > On Thu, May 17, 2012 at 11:40 AM, Filip Kadlec <ka...@fz...> wrote: >> Hello, >> I would appreciate if someone could help me to resolve this problem. >> >> I have installed vim-latex from the OpenSuSE distribution. Most of its >> features work correctly. \ll will start latex translation, and \lv >> launches the viewer. However, \ls , instead of launching the forward >> search, does nothing. I have tried to make it work by entering, in vim: >> >> :let g:Tex_CompileRule_dvi = 'let'atex -src-specials >> -interaction=nonstopmode $*' ' >> >> and >> >> TCTarget dvi >> >> as found in the FAQ. However, this does not help. I understand from the >> mailing list there were some quite recent patches to this behavior, also >> in order to get a single instance of okular, but I am not sure how it is >> best to proceed. >> >> Thanks in advance for your assistance. >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Vim-latex-devel mailing list >> Vim...@li... >> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel |