Hello Uwe,

On 28/08/2025, Uwe Brauer wrote:
> That is also my setting, but I have to insist
> I insert an equation via LaTeX-environment and preview presents just the
> equation number, when I start to add content to this equation it does
> not get previewed.

I was describing what the code is supposed to do, and what it currently does on 
my system.
I am not quite sure of the reason why it doesn't work on your system. Is the 
config the following?

(add-hook 'LaTeX-mode-hook
          (lambda () (add-hook 'after-change-functions
                               #'preview-point-buf-change nil t)))

Note the hook name `LaTeX-mode-hook`, not `LaTeX-mode` as I mistakenly had in 
the very first version of the package (in case you copied it from then).

If so, I might be able to pin down the reason if you check the following:
- What is the value of `major-mode` in your document? 
- Are there any messages in "Messages" after editing the code.
- Is the outdated preview greyed out?
- After editing the equation, if you call preview-at-point, is the preview 
updated?
- After editing the equation, if you press: M-x 
(preview-point--preview-at-point (point) (current-buffer))
is the preview updated?

Thanks,
-- Al

Reply via email to