[Tex/LaTex] Aquamacs + AUCTeX inline preview

aquamacsauctexemacsinline()

I tried to search for the solution, but I couldn't even find references to this problem. I'm trying to use Aquamacs+AUCTeX as my LaTeX editor. One of the major features available in this setting is the inline preview. For me it doesn't work. I'll try to provide the relevant information.

I'm using:

GNU Emacs 23.2.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
of 2010-08-18 on braeburn.aquamacs.org – Aquamacs Distribution 2.1

with

Mac OS 10.6.6

And this is my .emacs file:

Assigns org-mode to .org files
(require 'org-install)
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)

;; Make use of refTeX in org-mode
(defun org-mode-reftex-setup ()
(load-library "reftex")
(and (buffer-file-name)
(file-exists-p (buffer-file-name))
(reftex-parse-all))
(define-key org-mode-map (kbd "C-c )") 'reftex-citation)
)
(add-hook 'org-mode-hook 'org-mode-reftex-setup)

;; Set LaTeXmk the default LaTeX compiler
;;(setq org-latex-to-pdf-process (list "latexmk -f -pdf %s"))

;;(add-hook 'TeX-mode-hook '(lambda () (setq TeX-command-default "LaTeXmk")))

;; Enable LaTeX-math-mode by default
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)

I tried to use it with a simple example like:

\documentclass{article}
\begin{document}
Well what do you say? Here's the first formula $x^2=1$.
It seems not to be working...

\end{document}

Then C-c C-p C-d produced nothing but a no-entrance sign beside the formula. In this zip file I included all the related files I gathered.

Did any of you encountered this issue? Hints tips and fixing methods are welcomed!

Best Answer

Perhaps try exiting from pdf mode (C-C C-t C-p) and then generating previews (C-c C-p C-d). I believe that this results in the previews (which are png images by default) being generated from dvi rather from pdf.

(It still seems to me like the underlying issue with generating previews in pdf-mode is something related to ghostscript. However, your original zip file did not appear to contain any errors to help track the issue down.)