Hi,

I use pdf as output and latex-suite only supports dvi on linux. I
changed the hardcoded ".dvi" into ".s:target:". and it works now with
pdf files. Also added --unique option.
What do you think?

I attached the patch.

Peter
From 360d6ccb7c026f8f3867c38c219f8d5cc38e647f Mon Sep 17 00:00:00 2001
From: ptrv <m...@petervasil.net>
Date: Fri, 27 Jan 2012 03:27:21 +0100
Subject: [PATCH] Fix okular pdf forward search and add --unique.

---
 ftplugin/latex-suite/compiler.vim |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ftplugin/latex-suite/compiler.vim b/ftplugin/latex-suite/compiler.vim
index 0541c4a..35ea57d 100644
--- a/ftplugin/latex-suite/compiler.vim
+++ b/ftplugin/latex-suite/compiler.vim
@@ -392,7 +392,7 @@ function! Tex_ForwardSearchLaTeX()
 
 			elseif viewer =~ '^ *okular'
 
-				let execString = 'silent! !'.viewer.' '.mainfnameRoot.'.dvi\#src:'.line('.').expand("%")
+				let execString = 'silent! !'.viewer.' --unique '.mainfnameRoot.'.'.s:target.'\#src:'.line('.').expand("%")
 
 
 			endif
-- 
1.7.8.3

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to