auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] preview-latex solution for WinXP


From: Stephen Harris
Subject: [AUCTeX] preview-latex solution for WinXP
Date: Mon, 19 Jun 2006 03:39:30 -0700
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)


Previews were not displaying for me earlier. I read a thread in March
of 2006 about a problem with Windows and Auctex displaying previews.
There was a resolution, but no explanation of how it was fixed.

I have WinXP Pro and I used the EmacsW32 bundle of Emacs plus
some EmacsW32 customization for more Windows-like behavior. I
saw it referenced in some Auctex documentation about where to
obtain a recent enough release of Emacs (22.x) for Previews to
work, and I noticed it was the same version as used in the Auctex
+ *Emacs* win32 version available from the Auctex website. In
addition, I used the new Auctex 11.83+preview-latex zip combo.

Here is my .emacs file (which is likely flawed) that works:

-------------------------------------------------

(add-hook 'LateX-mode-hook 'turn-on-reftex)

 '(cua-mode t)
 '(emacsw32-max-frames t)
 '(emacsw32-mode t)
 '(emacsw32-style-frame-title t)
 '(htmlize-view-print-visible t t)
 '(menuacc-active t)

 '(pr-gs-command "c:\\gs\\gs8.51\\bin\\gswin32c.exe")
 '(pr-gv-command "C:\\ghostgum\\gsview\\gsview32.exe")
 '(preview-gs-command "gswin32c.exe")

 '(recentf-mode t)
 '(swbuff-y-mode t)
 '(w32-meta-style (quote w32-lr))
 '(w32-print-menu-show-print nil)
 '(w32-print-menu-show-ps-print nil))

-----------------------------------------------------

And my site-start.el :

;; ****** Added by emacsw32-setup-base at Sun Jun 18 18:40:46 2006
;; Add EmacsW32/lisp to load-path if found.
(let ((lisp-dir (expand-file-name (concat exec-directory "../../EmacsW32/lisp/"))))
  (unless (file-accessible-directory-p lisp-dir)
    (message "Can't find %s" lisp-dir)
    (sit-for 10))
  (when (file-accessible-directory-p lisp-dir)
    (message "Adding %s to load-path" lisp-dir)
    (add-to-list 'load-path lisp-dir)))

(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)

(setq reftex-enable-partial-scans t)
(setq reftex-save-parse-info t)
(setq reftex-use-multiple-selection-buffers t)
(setq reftex-plug-into-AUCTeX t)
(autoload 'reftex-mode     "reftex" "RefTeX Minor Mode" t)
(autoload 'turn-on-reftex  "reftex" "RefTeX Minor Mode" nil)
(autoload 'reftex-citation "reftex-cite" "Make citation" nil)
(autoload 'reftex-index-phrase-mode "reftex-index" "Phrase mode" t)
(setq-default TeX-master nil)
(setq TeX-auto-save t)
(setq TeX-parse-self t)

------------------------------------------------------

SH: I'm not sure these entries are in the right order of if that
matters. *I did one other thing,* Alt-X (in my case Windows key-X)
customize-variable <RET> preview-gs-command <RET> and changed
"Preview Gs Command" from gs to gswin32c.exe, Save for Future, Finish
I used Emacs instead of Xemacs because of seeing hints to that effect.

Good progress in a year,
Stephen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]