unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Pseudo" <cradate@yahoo.de>
Subject: Re: Emacs 'destroys' latex files
Date: 16 Jan 2007 10:38:58 -0800	[thread overview]
Message-ID: <1168972738.843874.79670@l53g2000cwa.googlegroups.com> (raw)
In-Reply-To: slrneqq134.v49.bergv@bolmikolke.math.uiuc.edu

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)

  reply	other threads:[~2007-01-16 18:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-16 16:30 Emacs 'destroys' latex files Pseudo
2007-01-16 16:59 ` Maarten Bergvelt
2007-01-16 18:38   ` Pseudo [this message]
2007-01-16 18:55     ` Maarten Bergvelt
2007-01-17  2:35       ` Nikos Apostolakis
     [not found]       ` <mailman.3177.1169001640.2155.help-gnu-emacs@gnu.org>
2007-01-17  9:53         ` Pseudo
2007-01-17 12:21           ` Nikos Apostolakis
     [not found]           ` <mailman.3196.1169036509.2155.help-gnu-emacs@gnu.org>
2007-01-17 13:52             ` Pseudo
2007-01-16 22:49   ` David Kastrup
2007-01-16 18:36 ` Peter Dyballa
2007-01-18  3:12 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1168972738.843874.79670@l53g2000cwa.googlegroups.com \
    --to=cradate@yahoo.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).