![aquamacs auctex aquamacs auctex](https://image.slidesharecdn.com/aquamacsmanual-091022165247-phpapp01/85/aquamacs-manual-10-320.jpg)
More information on PDF syncing: “ TeX and PDF Synchronization – skim-app”.Enable SyncTeX with Aquamacs: “Preferences → Sync → PDF-TeX Sync support”.Tip: You can remove intra-paragraph line breaks via unfill-region (but this does not work if each line of the paragraph is indented with spaces).Īpart from being able to annote PDFs (which the Leopard Preview app does really well now, too), Skim is also the perfect LaTeX PDF viewer, because it updates its contents in the background whenever the PDF file changes and it supports SyncTeX. This used to be a big problem when you wanted to edit LaTeX source in both Emacs and other GUI editors. M-x longlines-mode: Avoids inserting hard line breaks (e.g.Command → Jump to PDF (or command-shift-click or C-c C-c "J)ump To PDF"): Uses SyncTeX to go to that part of the PDF that corresponds to the cursor position in the LaTeX source.Options → Option Key: Change if you need the option key for special characters (e.g.: backslash on German keyboards or French accents).Overview with screen shots: “ Editing LaTeX with Aquamacs”.
#AQUAMACS AUCTEX MAC OS X#
SyncTeX has been created as a replacement for the older PDFSync.Īquamacs Aquamacs is a Mac OS X version of Emacs that comes with all the great Emacs LaTeX editing packages such as AucTeX and RefTeX. Aquamacs and Skim support it out of the box. SyncTeX: Enables jumping between corresponding locations in PDF and LaTeX source.Installation: The best way is to use the MacTeX distribution ( TeX Live on Mac OS).In this post, I describe my favorite setup for LaTeXing on the Mac. That means that you’ll be able to use a “PDF-only” workflow (with the occasional bitmap graphics thrown in). LaTeX on Mac OS X is a very pleasant experience, because both LaTeX and the operating system have excellent support for PDF. '(("Skim" "/Applications/Skim.Update : Brought several smaller things up to date, added a conclusion. (setq TeX-view-program-selection '((output-pdf "Skim"))) (global-set-key (kbd "") 'TeX-clean) clean, but leave the *.pdf (global-set-key (kbd "") 'TeX-view) jump to *.pdf with synctex (or C-c C-v) (global-set-key (kbd "") 'TeX-command-master) need to set a default for this to work. The keyboard shortcuts I have created are F7 for build F8 for jump to pdf and F9 for clean up, but leave the *.pdf and *.tex.
#AQUAMACS AUCTEX CODE#
NOTE: The following code configures View to be Jump-To-PDF with synctex enabled, so anyone looking to just have a quick view without synctex will need a slightly different configuration. The current version of auctex-11.86 already has in place the keyboard shortcut for 'TeX-view (C-c C-v).
![aquamacs auctex aquamacs auctex](https://www.emacswiki.org/pics/static/PredictiveModePopupFrame.png)
The following is a modification of the init.el, which includes a keyboard shortcut of my own choosing. There is even a notation within tex.el stating that the developers need to coordinate their efforts to implement viewing *.pdf on an OSX system. Since the OSX community does not widely use Evince, the work-around is to either modify tex.el or modify the init.el. Skim.app is widely considered to be the most appropriate *.pdf viewer for OSX *.tex documents because of its ability to auto-update the display when it detects a change of the *.pdf file, and because of its ability to use inverse-search (i.e., command + shift + left-click) to jump back to the text editor at the precise point where the mouse was clicked. As to an OSX version of Emacs (Snow Leopard and Mountain Lion) with package auctex-11.86, the following lines of code within tex.el affect viewing *.pdf files: This solution does not depend upon using Aquamacs - i.e., a generic flavor of Emacs will suffice. '(("Skim" "/Applications/Skim.app/Contents/SharedSupport/displayline %q"))) (expand-file-name (funcall file (TeX-output-extension) t) (setq TeX-source-correlate-method 'synctex) (add-hook 'LaTeX-mode-hook 'TeX-source-correlate-mode) Here is the link to the thread where I got it (written by Ricardo): (setq TeX-view-program-selection '((output-pdf "Skim"))) This reconfigures the view option to jump to pdf.
![aquamacs auctex aquamacs auctex](https://image.slidesharecdn.com/aquamacsmanual-091022165247-phpapp01/85/aquamacs-manual-4-320.jpg)
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. I think this is going to be more complicated than simply generating the pdf - i.e.: (global-set-key (kbd "") 'TeX-command-master) 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. "%V" TeX-run-discard-or-function nil t :help "Run Viewer") 'append) "Support for Skim as LaTeX viewer if present."
#AQUAMACS AUCTEX HOW TO#
Any ideas how to convert this into a global set key for "Jump to PDF"? (defun aquamacs-latex-viewer-support ()