Thread: [Vim-latex-devel] how to configure the View rule?
Brought to you by:
srinathava,
tmaas
From: Chen L. <che...@ps...> - 2006-04-29 19:15:44
|
I am new to vim-latex. When I open .tex file using Vim. It says that No View rule defined for target pdf Please specify a rule in $VIMRUNTIME/ftplugin/tex/texrc :help Tex_ViewRule_format What should I do? by the way, I am using Mac OS 10.4. Thanks, Long |
From: Srinath A. <sri...@gm...> - 2006-05-01 04:36:35
|
Hi Long, On 4/29/06, Chen Long <che...@ps...> wrote: > I am new to vim-latex. When I open .tex file using Vim. It says that > > No View rule defined for target pdf > Please specify a rule in $VIMRUNTIME/ftplugin/tex/texrc > :help Tex_ViewRule_format > > What should I do? by the way, I am using Mac OS 10.4. Turns out this is a bug in latex-suite specific to the Mac. I fixed this (hopefully) in SVN, but I cannot be sure since I do not have access to a Mac. In the meanwhile, a simple way to get around this is to put something like: let Tex_ViewRule_pdf =3D '/path/to/acrobat/reader $*.pdf' in your ~/vimfiles/ftplugin/tex.vim or .vimrc (I do not know how these files are named, but you hopefully get the idea). BTW, even with this warning, viewing should still have worked. Thanks, Srinath |
From: Yuan Qi <gma...@sp...> - 2006-09-20 23:30:09
|
> Turns out this is a bug in latex-suite specific to the Mac. I fixed this > (hopefully) in SVN, but I cannot be sure since I do not have access to > a Mac. In the meanwhile, a simple way to get around this is to put > something like: > > let Tex_ViewRule_pdf = '/path/to/acrobat/reader $*.pdf' > > in your ~/vimfiles/ftplugin/tex.vim or .vimrc (I do not know how these > files are named, but you hopefully get the idea). > > BTW, even with this warning, viewing should still have worked. I have a related problem with the View function on OS X 10.4.7 With the default value of Tex_ViewRule_format (empty string), \lv won't work at all! Changing it to 'open' doesn't help either. I have to change the string to 'open -a Preview' or "open $.pdf" to make it work. Even then, \lv will only work every other time (that is I have to type \lv twice to get it to work). |
From: Christian E. <bla...@gm...> - 2006-09-21 06:48:29
|
* Yuan Qi on Wednesday, September 20, 2006 at 23:15:48 +0000: >> Turns out this is a bug in latex-suite specific to the Mac. I fixed this >> (hopefully) in SVN, but I cannot be sure since I do not have access to >> a Mac. In the meanwhile, a simple way to get around this is to put >> something like: >> >> let Tex_ViewRule_pdf = '/path/to/acrobat/reader $*.pdf' >> >> in your ~/vimfiles/ftplugin/tex.vim or .vimrc (I do not know how these >> files are named, but you hopefully get the idea). >> >> BTW, even with this warning, viewing should still have worked. > > I have a related problem with the View function on OS X 10.4.7 > > With the default value of Tex_ViewRule_format (empty string), > \lv won't work at all! Changing it to 'open' doesn't help either. > I have to change the string to 'open -a Preview' or "open $.pdf" ^^^^^^^^^^ I think this should be 'open $*.pdf' or 'open $1.pdf'. > to make it work. > > Even then, \lv will only work every other time (that is I have to > type \lv twice to get it to work). I can't reproduce this on MacOS 10.3.9. Just 'open' works, even though I use the little "launch" utility that you might get via fink most of the time. Perhaps it helps if you do "Finder->File->Show Info" on a .pdf, and then specify Preview under "Open with" and "Use this application to open all documents like this" explicitly? c -- _B A U S T E L L E N_ lesen! --->> <http://www.blacktrash.org/baustellen.html> |
From: Yuan Qi <gma...@sp...> - 2006-09-21 23:16:33
|
Christian Ebert <blacktrash <at> gmx.net> writes: > > * Yuan Qi on Wednesday, September 20, 2006 at 23:15:48 +0000: > >> Turns out this is a bug in latex-suite specific to the Mac. I fixed this > >> (hopefully) in SVN, but I cannot be sure since I do not have access to > >> a Mac. In the meanwhile, a simple way to get around this is to put > >> something like: > >> > >> let Tex_ViewRule_pdf = '/path/to/acrobat/reader $*.pdf' > >> > >> in your ~/vimfiles/ftplugin/tex.vim or .vimrc (I do not know how these > >> files are named, but you hopefully get the idea). > >> > >> BTW, even with this warning, viewing should still have worked. > > > > I have a related problem with the View function on OS X 10.4.7 > > > > With the default value of Tex_ViewRule_format (empty string), > > \lv won't work at all! Changing it to 'open' doesn't help either. > > I have to change the string to 'open -a Preview' or "open $.pdf" > ^^^^^^^^^^ > I think this should be 'open $*.pdf' or 'open $1.pdf'. I meant 'open $*.pdf'. However, this option stopped working after I did rebuilt the LaunchServices database (I am guessing this is what cause it to stop working): /System/Library/Frameworks/ApplicationServices.framework/\ Frameworks/LaunchServices.framework/Support/lsregister \ -kill -r -domain local -domain system -domain user > > > to make it work. > > > > Even then, \lv will only work every other time (that is I have to > > type \lv twice to get it to work). This bug is always present regardless of what I tried. > > I can't reproduce this on MacOS 10.3.9. Just 'open' works, even > though I use the little "launch" utility that you might get via > fink most of the time. There are large differences between Tiger and Panther when it comes to LaunchServices. > > Perhaps it helps if you do "Finder->File->Show Info" on a .pdf, > and then specify Preview under "Open with" and "Use this > application to open all documents like this" explicitly? I tried changing 'Open with' to some other application and then back, but that doesn't work. > > c |
From: Yuan Qi <gma...@sp...> - 2006-09-25 14:54:39
|
I added this to ~/.vimrc and both problems are gone: let g:Tex_ViewRuleComplete_pdf = 'open $*.pdf' The problem seems to lie in the compiler.vim file. In particular, the following lines: if strlen(s:viewer) let s:viewer = '-a '.s:viewer endif let execString = 'open '.s:viewer.' $*.'.s:target Should be changed to: let execString = 'open $*.'.s:target |