[Top][All Lists]

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

Re: [AUCTeX] TeX-fold-mode and preview-LATeX

From: Rainer Thiel
Subject: Re: [AUCTeX] TeX-fold-mode and preview-LATeX
Date: Wed, 29 Jun 2005 23:36:06 +0200

At 21:32 29.06.2005, Ralf Angeli wrote:
Looks okay, except that `preview-mode-setup' is missing.  How do you
load preview-latex in your init file?

I have:

      (load "auctex.el" nil t t)
      (load "preview-latex.el" nil t t)
      (require 'tex-mik)

in my .emacs.el.

> among my custom set variables.  This served to activate fold mode whenever
> latex mode is active.  But if this entry is in my .emacs.el, the Preview
> menu won't show up in a latex buffer, while the AUCTeX Command menu will.

Do you get any error messages if you start Emacs from the command line
with `emacs --debug-init'?

No, no error messages.

If not, could you insert the statement
(setq debug-on-error t)
as the first line into your init file, start a new Emacs instance,
and open a LaTeX file?  In case you get an error with one of those
messages, please send the backtrace to the list.

Yes, there's an error message in that case, though I don't understand much of it:

Debugger entered--Lisp error: (void-variable >)
  (TeX-fold-mode > 1)
  (lambda nil (TeX-fold-mode > 1))()
  run-hooks(text-mode-hook TeX-mode-hook LaTeX-mode-hook)
  apply(run-hooks (text-mode-hook TeX-mode-hook LaTeX-mode-hook))
  TeX-run-mode-hooks(text-mode-hook TeX-mode-hook LaTeX-mode-hook)
  set-auto-mode-0(tex-mode nil)
  after-find-file(nil t)
find-file-noselect-1(#<buffer Habil-Hauptdokument.tex> "~/Habilitationsschrift/Habil-Hauptdokument.tex" nil nil "~/Habilitationsschrift/Habil-Hauptdokument.tex" (-27489 (8349 . 45428))) find-file-noselect("~/Habilitationsschrift/Habil-Hauptdokument.tex" nil nil nil)

Besides, did you configure the development version of AUCTeX you
installed to install preview-latex as well (which is the default)?

I am not sure I understand this. I didn't install preview latex separately, but it is now combined with auctex in the developper version. That's why I happened to install it in the first place, 'cause I don't really need preview latex (though I do like it).

And did you remove a previous installation of preview-latex which
could interfere with the new installation?

See above:  There hadn't been any previous preview-latex installation.

Thank you very much for your help!


Rainer Thiel

Prof. Dr. Rainer Thiel
Friedrich-Schiller-Univ., Inst. f. Altertumswiss.
07737 Jena, Germany (EU)
address@hidden - <>

reply via email to

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