Tag Info

Hot answers tagged

7

If all LaTeX files in this directory will use the same engine, then you can set TeX-engine for all of them using Emacs per-directory local variables. Create a file in this directory named .dir-locals.el with the following contents: ((latex-mode (TeX-engine . luatex))) If all LaTeX files in this directory share the same master, then per-directory local ...


4

Inside the font-latex-set-syntactic-keywords function, defined in font-latex.el, change (add-to-list 'font-latex-syntactic-keywords `(,(concat "^[ \t]*\\\\begin *{\\(?:" verb-envs "\\)}.*\\(\n\\)") to (add-to-list 'font-latex-syntactic-keywords `(,(concat "^[ \t]*\\\\begin *{\\(?:" verb-envs ...


4

The proper way to add support for a new style file is to create a style hook file, as explained in the AUCTeX manual. Note that you can autogenerate the style hook file for a *TeX source issuing M-x TeX-auto-generate RET, see Automatic Customization for a User. If you want to put your style hook inside your .emacs, you have to insert it inside an ...


3

There are many ways to achieve this kind of behavior. One is a dedicated elisp function, such as the following quick and ugly draft: (defun insert-mycustomcommand (beg end) (interactive "r") ;; take the region (save-excursion (goto-char beg) (insert "\\mycustomcommand{") (forward-word) (insert "}{") (delete-char 1) (goto-char (+ ...


1

Add the following code, taken from https://lists.gnu.org/archive/html/bug-auctex/2013-04/msg00004.html, to your .emacs (defun raise-client-frame () (let ((wmctrl (executable-find "wmctrl"))) (if wmctrl (start-process "wmctrl" nil wmctrl "-R" (frame-parameter nil 'name))))) ;; This raises the frame when using Evince. (add-hook ...



Only top voted, non community-wiki answers of a minimum length are eligible