[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 274294] okular's synctex support doesn't work with lua(la)tex
From:       <olli () sopos ! org>
Date:       2011-08-02 18:05:46
Message-ID: E1QoJLe-0000PV-GA () bugs ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=274294


olli@sopos.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |olli@sopos.org




--- Comment #20 from  <olli sopos org>  2011-08-02 18:05:46 ---
jenshnielsen's solution for emacs doesn't work if you have organized your files
in subdirectories.  The following, which is based on code from Jochen, works
for me:

(add-hook 'LaTeX-mode-hook '(lambda ()
                  (add-to-list 'TeX-expand-list
                       '("%u" Okular-make-url))))
(defun Okular-make-url () (concat
               "file://"
               (expand-file-name (funcall file (TeX-output-extension) t)
                         (file-name-directory (TeX-master-file)))
               "#src:"
               (TeX-current-line)
               (expand-file-name (TeX-master-directory))
               "./"
               (TeX-current-file-name-master-relative)))

The okular command in Tex-View then has to be changed to 

okular --unique %u

HTH,
olli

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic