[OS X TeX] customizing latex-suite
    Jonathan Kew 
    jonathan at jfkew.plus.com
       
    Sun Sep  7 15:32:40 EDT 2008
    
    
  
On 7 Sep 2008, at 8:09 PM, Doris Wagner wrote:
>> I configured my .vimrc like this (I want to use preview, because I  
>> don't want to use x11, but only the >>normal<< terminal):
>
> let g:Tex_DefaultTargetFormat = 'pdf'
> let g:Tex_ViewRule_pdf ="/Applications/Preview.app"
>
> what happens now is that a pdf is produced, but Preview does not  
> start from within vim and open the file.
> I also tried with the alternative line
>
> let g:Tex_ViewRule_pdf = 'Preview'
>
> but also there nothing happended.
>
> so what do I have to do???
Just guessing here, but maybe vim needs the path to the actual binary,  
rather than the application package; that would be
   let g:Tex_ViewRule_pdf = '/Applications/Preview.app/Contents/MacOS/ 
Preview'
Alternatively, rather than calling Preview directly, you could try the  
"open" command, which is the usual way to open arbitrary files and  
apps from the command line:
   let g:Tex_ViewRule_pdf = 'open -a Preview'
HTH,
JK
    
    
More information about the MacOSX-TeX
mailing list