>>> "AH" == Al Haji-Ali <abdo.haji....@gmail.com> writes:


> On 27/08/2025, Uwe Brauer wrote:
>> I see, but if I add a new formula, I have to run preview-at-point again, 
>> right?
> Not if you have the hook in 'after-change-functions to call 
> 'preview-point-buf-change
> which is what this piece of configuration is doing (requires re-opening the 
> tex file)

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

I have this configuration.


> 'preview-point-buf-change automatically calls `preview-at-point` if
> there's a preview already at point, or if (by default) the point is
> inside a math environment.

Well everything works fine, till the moment I add the new environment
\begin{equation*}
  \int f dx=0
\end{equation*}

This will then *not* displayed via preview, I have to run  C-c C-p C-p
again.

BTW, may be the after-save-hook would be a better choice?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to