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 ...


5

To see errors you have to use C-c ` (backtick), not C-c '. C-h k C-c ' (C-h k is bound to describe-key ) explains you what's going on: C-c ' runs the command TeX-comment-or-uncomment-paragraph, which is an interactive compiled Lisp function in `tex.el'. It is bound to C-c %, C-c ', <menu-bar> <LaTeX> <Comment or Uncomment Paragraph>. ...


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 ...


2

The R chunks are in ESS mode, the LaTeX is in AucTeX. Whatever your settings are for each mode, they will apply in the appropriate part of the buffer. It seems to me that the mode hooks for each mode get run each time you switch contexts as well, so just setting the variables once won't do - you have to modify your hooks. Which means the answer to your ...


2

As you noted, it's due to CUA key bindings. Even though C-c yanks (copies) in CUA mode, if you like them you can still use those key bindings with AUCTeX. The solutions are described in a comment in cua-base.el: ;; If you really need to perform a command which starts with one of ;; the prefix keys even when the region is active, you have three options: ;; ...


1

(global-set-key (kbd "<C-f2>") 'spell) (defun spell (choice) "Switch between language dictionaries." (interactive "cChoose: (1) English | (2) EspaƱol") (cond ((eq choice ?1) (setq flyspell-default-dictionary "english") (setq ispell-dictionary "english") (setq ispell-personal-dictionary ...


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