all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs 23.3 + Synctex + Skim: some question/overview
@ 2011-10-25  9:29 Marius Hofert
  2011-10-27  7:00 ` Marius Hofert
  0 siblings, 1 reply; 2+ messages in thread
From: Marius Hofert @ 2011-10-25  9:29 UTC (permalink / raw)
  To: Emacs help

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-27  7:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-25  9:29 Emacs 23.3 + Synctex + Skim: some question/overview Marius Hofert
2011-10-27  7:00 ` Marius Hofert

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.