[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Emacs 23.3 + Synctex + Skim: some question/overview
From: |
Marius Hofert |
Subject: |
Emacs 23.3 + Synctex + Skim: some question/overview |
Date: |
Tue, 25 Oct 2011 11:29:55 +0200 |
Hi,
I'm a bit lost concerning setting up GNU Emacs 23.3 + Synctex with Skim on Mac
OS X 10.7.2. I found different approaches online but they don't seem to work
nicely.
So here is the part of my .emacs:
(setq TeX-PDF-mode t); use pdflatex by default
'(LaTeX-command "latex -synctex=1"); use synctex [sometimes it's given with two
hypens instead of one (?)]
(server-start); start emacs in server mode so that skim can talk to it
Problems/Questions:
1) Now skim more or less works, but CMD + Shift + click in the .pdf does not
bring me close to the corresponding point in .tex (I end up roughly one page
away...)
2) I also tried the following two alternatives which I found online, but they
did not change anything.
;; alternative 1:
'(TeX-output-view-style '(("^pdf$" "." "skim %s.pdf")))
;; alternative 2:
http://sourceforge.net/apps/mediawiki/skim-app/index.php?title=TeX_and_PDF_Synchronization
(add-hook 'TeX-mode-hook
(lambda ()
(add-to-list 'TeX-output-view-style
'("^pdf$" "."
"/Applications/Skim.app/Contents/SharedSupport/displayline %n %o
%b")))
)
3) For forward search, how can I click in Emacs so that the pdf jumps to the
corresponding point? CMD + Shift + click (of course) did not work. I couldn't
find any solution to this problem, except that this is not needed since skim
can display a yellow line and one will then see where the cursor is. But what
if skim shows a different page of the .pdf? I don't see the yellow bar on page
20 when I'm on page 10, for example...
4) Yellow line: How do I get the yellow line showing the point in the .pdf?
5) correlate-method: I also found:
(setq TeX-source-correlate-method 'synctex)
(add-hook 'LaTeX-mode-hook 'TeX-source-correlate-mode)
Is this required for synctex to work properly?
I know that all the features (jumping back/forth to the *correct* position,
yellow line) worked in Aquamacs, but I just can't get it to work for GNU Emacs.
Sorry for all the questions in one thread, but I guess it might be useful as an
overview [hopefully many contribute] for future reference.
Cheers,
Marius
- Emacs 23.3 + Synctex + Skim: some question/overview,
Marius Hofert <=