[AUCTeX] MikTex and Auctex 11.85; tex-auto-global and style-path

From:

Sivaram Neelakantan

Subject:

[AUCTeX] MikTex and Auctex 11.85; tex-auto-global and style-path

Date:

Sun, 30 Mar 2008 09:10:33 +0530

User-agent:

Gnus/5.110007 (No Gnus v0.7) Emacs/22.2 (windows-nt)

This is going to be a bit convoluted as I might be doing something
harebrained.
Since tetex is no longer supported on cygwin, I decided to switch to
miktex. so I have tetex under cygwin and miktex in c:\miktex2.7, currently.
I compiled and installed auctex as
[sivaram@/cygdrive/c/gnu/elisp/auctex-11.85]
$ echo $PATH
/cygdrive/c/MiKTeX2.7/miktex/bin:c:/MiKTeX2.7/miktex/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/MiKTeX2.7/miktex/bin:/cygdrive/c/Program
Files/ThinkPad/Utilities:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:
$./configure --with-emacs=c:/gnu/emacs-22.1/bin/emacs --disable-preview
--with-texmf-dir=c:/MiKTeX-2.7/miktex/tex/ --prefix=c:/gnu/
--with-auto-dir=c:/gnu/emacs-22.1/site-lisp/
--with-lispdir=c:/gnu/emacs-22.1/site-lisp/
This works and I'm able to generate pdfs without any issues though the
log, C-c C-l has those unsightly ^Ms.
While trying to insert a graphic, the C-c RET macro was not bringing
includegraphics option.
1. I had the graphicx package defined and so did a C-c C-n. That didn't work
2. Checking google and checking the following vars
TeX-auto-global value is "c:/usr/local/var/auctex"
TeX-auto-private value is nil
TeX-style-global is "c:/gnu/elisp/auctex/style"
TeX-style-path is ("style" "auto" "c:/gnu/elisp/auctex/style"
"c:/usr/local/var/auctex")
Try as I might, I'm not able to make configure, generate a Makefile
which will make the style path point to the site-lisp under
Emacs-22.1. What am I doing wrong?
And interestingly, changing all this path and stuff, I'm not able to
generate a bug report M-x tex-submit-bug as I get
byte-code: Opening output file: no such file or directory,
c:/var/tmp/#!mail!#532Ftw#
My .Emacs settings
(setq exec-path (cons "C:/gnu/bin/" exec-path))
(setq exec-path (cons "c:/cygwin/usr/bin" (cons "C:/cygwin/bin" exec-path)))
(setq exec-path (cons "C:/MiKTeX2.7/miktex/bin" exec-path))
(setenv "PATH" (concat
"C:\\MiKTeX2.7\\miktex\\bin;C:\\cygwin\\bin;C:\\cygwin\\usr\\bin;C:\\gnu\\bin\\;"
(getenv "PATH")))
;; NT-emacs assumes a Windows command shell, which you change
;; here.
;;
(setq process-coding-system-alist '(("bash" . undecided-unix)))
(setq w32-quote-process-args ?\")
(setq shell-file-name "bash")
(setenv "SHELL" shell-file-name)
(setq explicit-shell-file-name shell-file-name)
(add-hook 'comint-output-filter-functions
'comint-strip-ctrl-m)
(load "auctex.el" nil t t)
;;(require 'tex-site)
(require 'tex-mik)
;; ;;; some basic customizations
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
sivaram
--