Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
katarakt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Philipp Erhardt
katarakt
Merge requests
!2
Interface fixes for synctex in emacs
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Interface fixes for synctex in emacs
thorsten/katarakt:master
into
master
Overview
1
Commits
2
Pipelines
0
Changes
1
Merged
Thorsten Wißmann
requested to merge
thorsten/katarakt:master
into
master
8 years ago
Overview
1
Commits
2
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
97b642ab
2 commits,
8 years ago
1 file
+
10
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
share/katarakt.el
+
10
−
2
Options
@@ -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