On 11/09/2025, Ikumi Keita wrote:
> Now the behavior with the suggested config is similar to the current
> standard preview-latex. That is, C-c C-p C-d turns the whole math
> expressions and section headers in the buffers into images, where the
> underlying LaTeX code appears only when the cursor enters the each
> image, Is this the intended behavior?

Not at all. Just to make sure, I forgot to mention that the value of 
`preview-point` should be
set before opening the tex file.

Here's my init:

--8<---------------cut here---------------start------------->8---
(let ((straight "~/.config/emacs/.elocal/straight/"))
  (when (equal user-login-name user-real-login-name)
    (add-to-list 'load-path
                 (concat straight "repos/auctex/"))
    (load (concat straight "build-29.1/auctex/auctex-autoloads.el") nil t t)
    (with-eval-after-load 'info
      (add-to-list 'Info-additional-directory-list
                   (concat straight "repos/auctex/doc/"))))

  (setq preview-point 'buframe)
  
  (add-hook
   'after-init-hook
   (lambda ()
     (find-file (concat straight "repos/auctex/preview.el"))
     (find-file (concat straight "repos/auctex/circ.tex")))))
--8<---------------cut here---------------end--------------->8---

when I press C-c C-p C-d inside circ.tex, nothing appears until the cursor 
enters a math expression or section title. 

Best regards,
-- Al

Reply via email to