Skip to content
Snippets Groups Projects

Interface fixes for synctex in emacs

Merged Thorsten Wißmann requested to merge thorsten/katarakt:master into master
1 file
+ 10
2
Compare changes
  • Side-by-side
  • Inline
+ 10
2
@@ -10,7 +10,15 @@
;;
;; To use it in auctex, add the following to your init file:
;;
;; (define-key LaTeX-mode-map (kbd "C-c C-v") 'katarakt-view)
;; ;; you need to adjust the path
;; (load-file "/path/to/share/katarakt.el") ;; provide katarakt-view
;; (setq TeX-view-program-list '(("katarakt" katarakt-view))) ;; add another pdf viewer
;; (setq TeX-view-program-selection '((output-pdf "katarakt"))) ;; use that viewer per default
;;
;; If you use spacemacs, add the above snipped to the dotspacemacs/user-init
;; section of your ~/.spacemacs file.
;;
;; You also need to have `auctex` installed.
;;; Code:
@@ -78,7 +86,7 @@ Returns a list (FILE LINE COLUMN)"
(defun katarakt--call-view (pdf page x y)
"View the specified location PDF:X:Y in katarakt."
(dbus-call-method :session (katarakt--service-name) "/"
"katarakt.SourceCorrelate" "view" pdf :int32 (- page 1) :int32 x :int32 y))
"katarakt.SourceCorrelate" "view" pdf :int32 (- page 1) :double x :double y))
(defun katarakt--signal-handler (file page x y)
"Handle dbus signal from katarakt."
Loading