bug-auctex
[Top][All Lists]
Advanced

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

[Bug-AUCTeX] [Ardi] preview-latex not working under Miktex on WinXP with


From: David Kastrup
Subject: [Bug-AUCTeX] [Ardi] preview-latex not working under Miktex on WinXP with Auctex
Date: Sun, 09 Oct 2005 21:45:26 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Forwarding this message to the AUCTeX bug list, as that seems to be
the most appropriate location.

--- Begin Message --- Subject: preview-latex not working under Miktex on WinXP with Auctex Date: Sun, 9 Oct 2005 12:35:15 -0700 (PDT)
Hello,
I have been figthing quite long with getting preview-latex working in my Auctex. So far without success.So I'm turning to you with help.
On Windows XP Miktex2.4 (last version from  July 2005 iso) is installed under c:\texmf2_4 and c:\localtexmf.
Ghostscript 8.50,Ghostview 4.70 installed - path set.
I have fetched auctex11.81.zip
and emacs-22.0.50.1-20050626-w32.zip (I have tried the process with emacs-21.3 but realized that I would have problems with installing dvipng or other extra tool so I gave up).
1.
and emacs-22.0.50.1-20050626-w32.zip was unzipped to c:\emacs-22
2.
auctex11.81 was unzipped to c:\temp
3.
under msys 1.0.11 I did: cd /c/temp/auctex11.81
./configure --prefix=/c/emacs22 --with-texmf-dir=/c/texmf2_4
When I load circ.tex to emacs Auctex is activated but preview-latex not.
Below is my c:\_emacs file content which I have "stolen" as an example from a webpage.
Where is the problem then?
May I ask you to have a look at that?
Thanks and regards,
ardi
 _emacs:
;; ====================================================================
;; Change directories appropriately in all of these
;; Also, note the warning below for the MiKTeX commands.
;; ====================================================================
(setq load-path (cons "c:/emacs-22/site-lisp/" load-path))
(load-file "c:/emacs-22/site-lisp/tex-site.el")
(setq bib-bibtex-env-variable "TEXBIB")
(setq bib-bibtex-env-variable "c:/tex/localtexmf/bibtex/")
(custom-set-variables
 '(reftex-default-bibliography (quote ("c:\\tex\\localtexmf\\bibtex\\allrefs.bib")))
 '(search-whitespace-regexp "[  
]+")
 '(reftex-cite-format (quote harvard))
 '(reftex-bibpath-environment-variables (quote ("BIBINPUT"))))
(defvar TeX-macro-global
  '("c:/tex/texmf/tex/latex/")
  "*Directories containing the sites TeX macro files and style files.")
(defvar TeX-lisp-directory "c:/emacs-22/site-lisp/auctex/"
  "*The directory where the AUC TeX lisp files are located.")
;; =====================================================================
;; DISPLAY -- Set the font to Courier-12 -- Set Colors appropriately
;;  MODIFY TO SET WIDTH, HEIGHT and POSITION APPROPRIATELY
;; =====================================================================
(setq default-frame-alist
       '((top . 20) (left . 200)
         (width . 90) (height . 40)
         (foreground-color . "midnight blue")
         (background-color . "old lace")
         (font . "-*-Courier New-normal-r-*-*-12-*-*-*-*-c-*-*-ansi-")))
(set-face-foreground 'modeline "firebrick")
(set-cursor-color "firebrick")
;; show column number in status bar
(setq column-number-mode t)
;; ====================================================================
;; Standard Auctex commands
;; ====================================================================
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)   ; AUCTeX LaTeX mode
(add-hook 'latex-mode-hook 'turn-on-reftex)   ; Emacs latex mode
;; ====================================================================
;; The MikTeX commands.
;;  -- You may need to remove single quotes from LaTeX command below
;; ====================================================================
;; The MikTeX commands.
(setq TeX-command-list
  (list (list "TeX" "tex \\nonstopmode\\input %t" 'TeX-run-TeX nil t)
 (list "LaTeX" "%l %t" 'TeX-run-LaTeX nil t)
        (list "View" "yap -1 -s \"%n %t\" %d"
        'TeX-run-discard nil nil)
 (list "Yap" "%v" 'TeX-run-discard nil nil)
 (list "Print" "gsview32 %f" 'TeX-run-command t nil)
 (list "File" "dvips %d -o %f " 'TeX-run-command t nil)
 (list "BibTeX" "bibtex %s" 'TeX-run-BibTeX nil nil)
 (list "Index" "makeindex %s" 'TeX-run-command nil t)
       (list "PDFLaTeX" "pdflatex %t"
        'TeX-run-LaTeX nil t)
       (list "Acrobat" "c:/Program Files/Adobe/Acrobat 7.0/Acrobat/AcroRd32.exe %s"
       'TeX-run-discard nil nil)
 (list "Check" "lacheck %s" 'TeX-run-compile nil t)
 (list "Other" "" 'TeX-run-command t t)))
(setq load-path (append load-path (list TeX-lisp-directory)))
;
; this turns on the feature where you hit "`" and then a letter to get
; latex math symbol
;
(setq LaTeX-math-mode t)
;; ====================================================================
;; Text Highlighting Commands
;; ====================================================================
; Show matching parentheses
(show-paren-mode 1)
; Turn on auto-fill mode
(setq auto-fill-mode t)
; for syntax highlighting
(setq font-lock-maximum-decoration t)
(global-font-lock-mode 1 t)
;; ====================================================================
;; My commands
;; ====================================================================
(setq auto-save-interval 1000)
(setq dired-listing-switches "-alt")
(add-hook 'latex-mode-hook
   (function (lambda ()
         (setq paragraph-start "^[ \t\n]")
         (setq paragraph-separate "\\(\n\n+\\)\\|\\(\n+[ \t]+\\)")
        )))
(global-set-key "\C-xb" 'buffer-menu)
(define-key global-map "\C-c1" 'ispell-word         ) 
(define-key global-map "\C-c2" 'ispell-region       ) 
(define-key global-map "\C-c3" 'ispell-buffer       ) 
;; ======================================================================
;; THIS TURNS ON FLYSPELL MODE -- (Warning == This slows things down a lot!!)
;;
;;======================================================================
;; Installs flyspell hook for TeX and text modes
(defun flyspell-generic-texmode-verify ()
  "Used for `flyspell-generic-check-word-p' in TeX mode."
  (let ((f (get-text-property (point) 'face)))
    (memq f '(font-lock-comment-face bold-face italic-face
       bold-italic-face underline-face
       font-lock-string-face nil))))
(defun flyspell-tex-mode ()
  "Turns on `flyspell-mode' for comments and strings."
  (interactive)
  (setq flyspell-generic-check-word-p 'flyspell-generic-texmode-verify)
  (flyspell-mode 1))
(defun flyspell-generic-textmode-verify ()
  "Used for `flyspell-generic-check-word-p' in text mode."
  (let ((f (get-text-property (point) 'face)))
    (memq f '(font-lock-string-face bold-face underline-face
        italic-face bold-italic-face
        (italic-face underline-face)
        (bold-face underline-face)
        default nil))))
(defun flyspell-text-mode ()
  "Turns on `flyspell-mode' for words."
  (interactive)
  (setq flyspell-generic-check-word-p 'flyspell-generic-textmode-verify)
  (flyspell-mode 1))
;; it now needs to be added to the various mode hooks
(add-hook 'text-mode-hook 'flyspell-text-mode)
(add-hook 'latex-mode-hook  'flyspell-tex-mode)
;; =====================================================================
;; MODE LINE
;; =====================================================================
;; I like to know what time it is. These lines show the clock in the
;; status bar. Comment out first line if you prefer to show time in 12
;; hour format
(setq display-time-24hr-format t)
(setq display-time-day-and-date t)
(display-time)
;; =====================================================================
;; for matlab mode (version 2.2.3)
;; =====================================================================
(autoload 'matlab-mode "matlab" "Enter Matlab mode." t)
(setq auto-mode-alist (cons '("\\.m\\'" . matlab-mode) auto-mode-alist))
(autoload 'matlab-shell "matlab" "Interactive Matlab mode." t)
;; User Level customizations (You need not use them all):
(setq matlab-indent-function t) ; if you want function bodies indented
;;   (setq matlab-verify-on-save-flag nil) ; turn off auto-verify on save
(defun my-matlab-mode-hook ()
  (setq fill-column 86))  ; where auto-fill should wrap
;;   (add-hook 'matlab-mode-hook 'my-matlab-mode-hook)
;;   (defun my-matlab-shell-mode-hook ()
;; '())
;;   (add-hook 'matlab-shell-mode-hook 'my-matlab-shell-mode-hook)
 
 


Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
--- End Message ---

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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