dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 3a885863c400ea873d750a045720557234aa9f71
parent 7451464ae83e8fc94eea6d46d06f05e47bbbd163
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Fri, 11 Sep 2015 15:50:55 +0200

define PDF viewers and enable sync

Diffstat:
M.spacemacs | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/.spacemacs b/.spacemacs @@ -192,6 +192,23 @@ layers configuration." (add-hook 'org-mode-hook 'turn-on-reftex) ; with Org mode (setq reftex-cite-format 'natbib) + ;; set pdf viewer on OSX and Linux + (cond + ((string-equal system-type "darwin") + (progn (setq TeX-view-program-selection '((output-pdf "Skim"))))) + ((string-equal system-type "gnu/linux") + (progn (setq TeX-view-program-selection '((output-pdf "Okular")))))) + + ;; enable PDF-LaTeX synchronization + ;; press SPC m v to highlight line in PDF + ;; press shift cmd and click in PDF to show line in sourcecode + (setq TeX-source-correlate-mode t) + (setq TeX-source-correlate-start-server t) + (setq TeX-source-correlate-method 'synctex) + (setq TeX-view-program-list + '(("Okular" "okular --unique %o#src:%n%b") + ("Skim" "displayline -b -g %n %o %b"))) + ;; control which languages are enabled for execution in org-mode with C-c C-c ;; see http://orgmode.org/org.html#Languages (require 'ob-C)