[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: Thu, 30 Jun 2005 10:34:29 +0200

Many thanks to anyone who tried to help!

At 09:59 30.06.2005, Ralf Angeli wrote:
Somewhere in your init file you call (TeX-fold-mode > 1) while it
should be (TeX-fold-mode 1).

In fact strangely there was (TeX-fold-mode > 1) among the custom set variables in my latest init file (can't reconstruct the exact line). In the original init file of yesterday there had been '(LaTeX-mode-hook (quote (turn-on-reftex (lambda nil (TeX-fold-mode 1)))) t) which also caused trouble with Preview.

It's probably a good idea to use `add-hook' instead of customizing
`LaTeX-mode-hook' as David suggested.  I just tried to customize it
and all the customizations where overwritten by preview-latex's
addition to the hook.  Dunno why.

For activating `TeX-fold-mode' you'd insert

(add-hook 'LaTeX-mode-hook (lambda ()
                             (TeX-fold-mode 1)))

into your init file.  You can add your other stuff for the hook to
this `lambda' function or define your own named function and add this
to the hook.

I have now put (add-hook
'LaTeX-mode-hook (lambda () (turn-on-reftex) (TeX-fold-mode 1))) in my init file instead, and now apparently everything works fine.

Thank you very much again,

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]