auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] Re: Language support


From: Mathias Lindner
Subject: [AUCTeX] Re: Language support
Date: Thu, 7 Oct 2010 06:09:04 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Ralf Angeli <angeli <at> caeruleus.net> writes:

> The .rel file is produced and used only by RefTeX, not AUCTeX.

Ok, but how does AucTeX know which language to support if it doesn't use the
parsed information from the header file?


> Did you make the settings in your init file which are advertised on the
> first page of the AUCTeX manual?


You mean
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
?

Yes, I did.

If it helps in any way, here is my complete .emacs file (sorry, comments are
partially in German):

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(LaTeX-command "latex --shell-escape")
 '(TeX-close-quote "\"'")
 '(TeX-fold-preserve-comments t)
 '(TeX-open-quote "\"`")
 '(cua-mode t nil (cua-base))
 '(font-latex-match-reference-keywords (quote ("autoref" "gls" "glspl")))
 '(inhibit-startup-screen t)
 '(reftex-autoref-is-default t)
 '(reftex-ref-style-default-list (quote ("Hyperref")))
 '(reftex-sort-bibtex-matches (quote author)))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
)


;;Dateikodierung
(setq current-language-environment "German")
(setq file-coding-system-alist (append (list '("\\.tex" iso-8859-15))
file-coding-system-alist))

;;alle Farbbezeichnungen anzeigen mit M-x list-colors-display
(set-face-foreground 'font-lock-comment-face "YellowGreen" )
(set-variable font-lock-comment-face 'font-lock-comment-face)

(setq ispell-program-name "aspell")
(add-hook 'LaTeX-mode-hook 'flyspell-mode)
(setq flyspell-default-dictionary "deutsch8")
(setq ispell-local-dictionary "deutsch8")
(setq ispell-enable-tex-parser t)
(setq ispell-extra-args '("--mode=tex"))
(setq flyspell-doublon-as-error-flag nil)
(setq flyspell-consider-dash-as-word-delimiter-flag t)
 
(add-hook 'text-mode-hook 'turn-on-auto-fill)
(setq-default fill-column 70)
 
;;RefTeX
;;(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/reftex")
(setq reftex-plug-into-AUCTeX t)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(add-hook 'latex-mode-hook 'turn-on-reftex)
(setq reftex-ref-macro-prompt nil)
(setq reftex-cite-prompt-optional-args nil)
(setq reftex-cite-cleanup-optional-args nil)
(require 'tex-mik) 


(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)

;; ;; Gepaarte Klammern automatisch finden ;; ;;
;; zu jedem Klammer-Auf wird das passende Klammer-Zu
;; und umgekehrt hervorgehoben, wenn der Cursor
;; auf bzw. hinter einem der beiden steht.
;; http://tpoly2.physik.uni-freiburg.de/
;;      Einfuehrung/Emacs.19.html
;; (load "paren")
(show-paren-mode t)
;; (setq blink-matching-paren t)
;; (setq blink-matching-delay 1)


(add-hook 'TeX-mode-hook '(lambda () (TeX-fold-mode 1) ;;          Folding by
default
                                     (font-lock-fontify-buffer) ;; Fontify 
buffer
                                     (TeX-fold-buffer))) ;;        Fold 
everything

(add-hook 'LaTeX-mode-hook ;; C-TAB zum Auto-Vervollständigen von Makros
          '(lambda nil 
             (define-key LaTeX-mode-map (kbd "C-<tab>") 'TeX-complete-symbol)))


(load "preview-latex.el" nil t t)

;;write y instead of yes
(fset 'yes-or-no-p 'y-or-n-p)

(setq transient-mark-mode t)

(setq TeX-auto-save t)
(setq TeX-parse-self t) ;;während der Eingabe Code checken

(setq-default TeX-master nil)

(setq TeX-PDF-mode t)

(setq LaTeX-float "htb")
(setq TeX-default-macro "footnote")






reply via email to

[Prev in Thread] Current Thread [Next in Thread]