[Okular-devel] [Bug 274294] okular's synctex support doesn't work with lua(la)tex generated output

olli at sopos.org olli at sopos.org
Tue Aug 2 18:05:46 UTC 2011


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


olli at sopos.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |olli at 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 the assignee for the bug.


More information about the Okular-devel mailing list