Uwe Brauer <[email protected]> writes:
> 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.
Can you come up with a recipe how to reproduce this starting with
"emacs -Q"? I have no problems when starting Emacs with "-Q" and eval the
following before opening a .tex file:
--8<---------------cut here---------------start------------->8---
(progn
;; Adjust the paths acc. to your system, assuming that you're loading
;; AUCTeX from a local repo:
(load "~/path/to/auctex/auctex-autoloads.el" nil t t)
(add-to-list 'load-path (directory-file-name "~/path/to/preview-point/"))
(require 'preview-point)
;; I don't have dvisvgm installed:
(setq preview-image-type 'point-dvipng)
;; Configuration of preview for optimal behavior -- Optional
(setq
preview-leave-open-previews-visible t
preview-auto-cache-preamble nil ;; no caching
preview-locating-previews-message nil)
;; Always use DVI to generate cleaner previews. Requires special handling of
`hyperref`
(setq preview-LaTeX-command-replacements '(preview-LaTeX-disable-pdfoutput))
;; Customize behavior of point-preview
(setq preview-point-show-in 'buframe ;; or 'after-string for an inline
preview intead.
preview-point-progress-indicators 'faces)
;; Enable automatic preview update on change.
(add-hook 'LaTeX-mode-hook
(lambda () (add-hook 'after-change-functions
#'preview-point-buf-change nil t))) )
--8<---------------cut here---------------end--------------->8---
I can insert a new math environment with 'C-c C-e equation* RET', insert
some content and the preview is visible almost instantly and gets
updated.
Best, Arash