There is also a toolbar at the top of each Emacs frame, with clickable icons for basic editing and file commands.
Even on the File, Edit, Options, and Windows menus there are many items that you will never need, so do not worry if they seem mostly incomprehensible to you for now. You are unlikely to need anything in Tools, and the Help menu lists far too many different sorts of help to be useful for a beginner. A frame may have more than one tab, each containing a different buffer, in the same way that a web browser can several web pages open at once in different tabs.You may also be unfamiliar with the Aquamacs terms "directory" (folder) and "search" (find).Īpart from the ATF menu, the File, Edit, Options, and Windows menus will be most useful to you. A "buffer" is essentially a view of a document, which is displayed in one or more "frames" (windows).
Much is where you would expect it, though Emacs terminology can seem rather strange to Mac users.
When you first install Aquamacs, it is worth looking through the menus to locate the basic commands. Two different ways of typing transliteration characters are described on other pages. To ensure you have all the necessary transliteration and normalisation characters, we recommend that you install the DejaVu font and set it as the default. In that window, you can choose a font, size, colour, as you would normally, and save different combinations as favourites. In Aquamacs, you can open up (and close) a Fonts window with the command ⌘⇧T. This page aims to make working with Emacs as intuitive and Mac-like as possible. And it doesn't help that Aquamacs has its own little quirks. Here we give a short description of some features that we have found useful for editing and lemmatising ATF in Aquamacs (Emacs for Mac), apart from those provided by ATF Mode.Įmacs is a very powerful piece of software, but its documentation is dense, difficult to navigate, and usually assumes that you are working in Unix without a mouse. Shamelessly stolen from the Emacs Wiki.Oracc » Help » Using Emacs » Aquamacs Starting to use Aquamacs This binds the key sequence C-c C-a to TeX-texify, which goes through all of the compilation steps necessary to produce the current document. emacs and have everything done automatically in succession, much like Quick Build in TeXMaker. (add-hook 'LaTeX-mode-hook '(lambda () (local-set-key (kbd "C-c C-a") 'TeX-texify)))Īlternatively, you can place the following in your. (set-process-sentinel proc 'TeX-texify-sentinel))))))
(setq TeX-texify-sentinel (process-sentinel proc)) (setq proc (get-buffer-process (current-buffer))) (and (null (equal nextCmd TeX-command-Show)) (setq TeX-texify-count-same-command (1+ TeX-texify-count-same-command)) Don't want to do it anymore." TeX-texify-last-command TeX-texify-count-same-command) (message "TeX-texify: Did %S already %d times. (if (>= TeX-texify-count-same-command TeX-texify-max-runs-same-command) (mapc 'make-local-variable '(TeX-texify-sentinel TeX-texify-count-same-command TeX-texify-last-command)) (null (equal nextCmd TeX-texify-last-command))) (null (boundp 'TeX-texify-count-same-command)) (message "TeX-texify: Nothing to be done.")) (let ((nextCmd (TeX-command-default (TeX-master-file))) (unless (plist-get TeX-error-report-switches (intern (TeX-master-file))) (when (string-match "\\(finished\\|exited\\)" sentinel) (funcall TeX-texify-sentinel proc sentinel) If there is still something left do do start the next latex-command." "Non-interactive! Call the standard-sentinel of the current LaTeX-process. (defun TeX-texify-sentinel (&optional proc sentinel) (defcustom TeX-texify-max-runs-same-command 5 "Maximal run number of the same command" :type 'integer :group 'TeX-command) (defcustom TeX-texify-Show t "Start view-command at end of TeX-texify?" :type 'boolean :group 'TeX-command) We should check for bst files here as well. ((and (memq major-mode '(doctex-mode latex-mode)) (TeX-check-files (concat name "." (TeX-output-extension)) (cond ((if (string-equal name TeX-region)
Most of the code is stolen from `TeX-command-query'." This snippet of code was copied from under the TEX-texify section. The only thing I would add is that if you solely use Aquamacs it is better to edit the file Preference.el located in ~/Library/Preferences/Aquamacs\ Emacs/ Once you add the code below in the file the command sequence C-c C-a will run the default compiler and then send the output to preview. The post from Sean Allred helped me find the answer I was looking for. I am using Aquamacs and had the same question.