Any ideas how to convert this into a global set key for "Jump to PDF"?
(defun aquamacs-latex-viewer-support ()
"Support for Skim as LaTeX viewer if present."
(add-to-list 'TeX-command-list
'("Jump to PDF"
"%V" TeX-run-discard-or-function nil t :help "Run Viewer") 'append)
The right-click contextual menu has several useful options, and I think I've tracked it down to this file: /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/auctex-config.el
. However, I could be wrong?
I think this is going to be more complicated than simply generating the pdf -- i.e.:
(global-set-key (kbd "<f7>") 'TeX-command-master)
I'm now one step closer -- this init.el configuration works on the latest version of Emacs (universal binary) running on OSX Mountain Lion -- so it should be much easier to now convert it into a keyboard shortcut. This reconfigures the view option to jump to pdf. Here is the link to the thread where I got it (written by Ricardo): https://tex.stackexchange.com/questions/11613/launching-an-external-pdf-viewer-from-emacs-auctex-on-a-mac-osx-fails
(setq TeX-view-program-selection '((output-pdf "Skim")))
(add-hook 'LaTeX-mode-hook 'TeX-source-correlate-mode)
(setq TeX-source-correlate-method 'synctex)
(add-hook 'LaTeX-mode-hook
(lambda()
(add-to-list 'TeX-expand-list
'("%q" skim-make-url))))
(defun skim-make-url () (concat
(TeX-current-line)
" "
(expand-file-name (funcall file (TeX-output-extension) t)
(file-name-directory (TeX-master-file)))
" "
(buffer-file-name)
))
(setq TeX-view-program-list
'(("Skim" "/Applications/Skim.app/Contents/SharedSupport/displayline %q")))