任何想法如何將其轉換爲「Jump to PDF」的全局設置鍵?爲LaTeX創建一個鍵綁定跳轉到PDF - synctex
(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)
右鍵單擊上下文菜單有幾個有用的選項,我想我已經跟蹤它到這個文件:/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/auctex-config.el
。但是,我可能是錯的?
我認爲這將是更復雜的比簡單地生成PDF格式 - 即:
(global-set-key (kbd "<f7>") 'TeX-command-master)
我現在一步步接近我 - 這init.el配置工作最新在OSX Mountain Lion上運行的Emacs(通用二進制)版本 - 因此現在將其轉換爲鍵盤快捷方式應該更容易。這重新配置查看選項跳轉到PDF。這裏是鏈接到那裏我得到了它的線程(由裏卡多寫的):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")))