# Tag Info

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

This solution does not require AUCTeX to the best of my knowledge. Add the following to your .emacs: (add-hook 'TeX-mode-hook (lambda () (font-lock-add-keywords nil '( ("\\\\iffalse\$$\\(.\\|\n\$$*?\\)\\\\fi" 1 font-lock-comment-face)))))

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

3

(Just to take the question off the unanswered list.) I find this behaviour --- i.e., incorrect line-wrapping near comments via M-x fill-paragraph or M-q --- sometimes occurs when using Emacs in TeX-mode. With LaTeX-mode, I have not experienced this problem. With AUCTeX the situation is still improved, and this is one of the least important reasons to use ...

1

The latex header org uses for export is stored in org-format-latex-header, which you can modify as you like. According to the help: It is imperative that this header make sure that no page number appears on the page. The package defined in the variables org-latex-default-packages-alist' andorg-latex-packages-alist' will either replace the ...

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