From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Pseudo" Newsgroups: gmane.emacs.help Subject: Re: Emacs 'destroys' latex files Date: 16 Jan 2007 10:38:58 -0800 Organization: http://groups.google.com Message-ID: <1168972738.843874.79670@l53g2000cwa.googlegroups.com> References: <1168965020.972207.75690@51g2000cwl.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1168972875 22838 80.91.229.12 (16 Jan 2007 18:41:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Jan 2007 18:41:15 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 16 19:41:13 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H6tF2-0004wD-Bs for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jan 2007 19:41:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6tF2-0006gv-HV for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jan 2007 13:41:04 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!l53g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 86 Original-NNTP-Posting-Host: 129.13.115.40 Original-X-Trace: posting.google.com 1168972754 10681 127.0.0.1 (16 Jan 2007 18:39:14 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 16 Jan 2007 18:39:14 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060830 Firefox/1.5.0.7 (Debian-1.5.dfsg+1.5.0.7-2),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: l53g2000cwa.googlegroups.com; posting-host=129.13.115.40; posting-account=nLqp3A0AAADfVH9fdUSz5oJG8LwHt8Wi Original-Xref: shelby.stanford.edu gnu.emacs.help:144766 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40370 Archived-At: Dear Maarten, Thank you for your reply. In fact, my emacs does not seem to know latex-preview. I used the testfile you suggest > \documentclass{amsart} > \renewcommand{\AA}{\mathbb A} > \begin{document} > \[ > \AA > \] > \end{document} it produces the following behaviour: the \AA inside the document environment is visible as \AA, the first one in the header is displayed in this strange form A with an o on its head. Is there a 'logging' system in emacs that tells me what modules, parts, whatsoever are run when opening a document? That would be a hint where to search for my problem ... Here is my .emacs file. Its mainly a collection of things I found somewhere. And: on a much older version of debian / emacs it worked quite well. Hope posting all these lines helps in understanding what I messed up. At least I don't see any strange parts in it. (custom-set-variables '(case-fold-search t) '(current-language-environment "German") '(global-font-lock-mode t nil (font-lock)) '(load-home-init-file t t) '(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify)) t) '(transient-mark-mode t)) (custom-set-faces) ;; -------------------- font lock mode (cond ((fboundp 'global-font-lock-mode) ;; Turn on font-lock in all modes that support it (global-font-lock-mode t) ;; Maximum colors (setq font-lock-maximum-decoration t))) ;; --------------------- ;; --------------------- AUC-TEX (setq TeX-auto-save t) (setq TeX-parse-self t) (setq-default TeX-master nil) ;; --------------------- ;; --------------------- REF-TEX (add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode (add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode (add-hook 'LaTeX-mode-hook 'LaTeX-math-mode) (add-hook 'LaTeX-mode-hook 'flyspell-mode) (setq reftex-plug-into-AUCTeX t reftex-enable-partial-scans t) (setq reftex-use-external-file-finders t) (setq reftex-external-file-finders '(("tex" . "kpsewhich -format=.tex %f") ("bib" . "kpsewhich -format=.bib %f"))) ;; --------------------- ;; --------------------- PHP (setq load-path (append '("~/elisp") load-path )) (add-to-list 'auto-mode-alist '("\\.php3?\\'" . c-mode)) ;; ---------------------- Start flyspell automatically (setq ispell-dictionary "british") (setq ispell-local-dictionary "british") (setq flyspell-default-dictionary "british") (defun turn-on-flyspell-mode() (flyspell-mode t) ) (add-hook 'latex-mode-hook 'turn-on-flyspell-mode) (add-hook 'tex-mode-hook 'turn-on-flyspell-mode) (add-hook 'html-mode-hook 'turn-on-flyspell-mode) (setq minibuffer-max-depth nil)