Discussion:
Tex-bar and Toolbar-X
Shawn Way
2005-02-09 00:47:28 UTC
Permalink
I've been racking my brain out trying to get these installed on a
windows system with the following set up:



XEmacs-21.4.13

Ess-5.2.5

Auctex-11.55



Any thoughts? I'm not a coder by any means, I'd just like to get a
fully functional auctex (with toolbars) going. I also do not really
read the news group (or have access to it) so if you could email me
directly, it would be appreciated.



Thanks in advance.



Shawn Way, PE

Engineering Manager







I'm pasting my init file below:



;;;;;;;;;;;;;;;;;;;;;;;;;;; -*- Mode: Emacs-Lisp -*-
;;;;;;;;;;;;;;;;;;;;;;;;;;

;; .emacs --- A simple startup file, enabling Auctex (and ispell.info)

;; Author : Claus Dethlefsen

;; Created On : Wed Aug 30 10:41:44 2000

;; Last Modified By: Claus Dethlefsen

;; Last Modified On: Thu Jan 10 12:44:02 2002

;; Update Count : 8

;; Status : Ok, but adjust the path to auctex

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;



;; Put this file in your HOME directory (e.g. c:\)

;; See http://www.math.auc.dk/~dethlef/Tips/

;; for more information on setting up LaTeX, Emacs, AucTeX etc.



;; -----------------------------------------------------------------

;; AUC TeX





(setq TeX-auto-save t)

(setq TeX-parse-self t)

(setq-default TeX-master nil)

(setq font-lock-maximum-decoration t)





(load "tex-mik")

;(load "tex-bar")



;; -----------------------------------------------------------------

;; Reftex activation (Reftex is included with Emacs 21.1)



(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)

(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode

(add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode



;; Load TeX-Toolbar

;(autoload 'tex-toolbar "c:/Program
Files/XEmacs/Xemacs-packages/tex-toolbar.el" "tex-toolbar" t)



;(autoload 'toolbar-x "c:/Program
Files/XEmacs/Xemacs-packages/toolbar-x.el" "toolbar-x" t)



;(require 'toolbar-x)

;(add-hook 'LaTeX-mode-hook 'LaTex-install-toolbar)





;; Ispell has it's own coding-system support which is broken under
W32

(setq ispell-dictionary-alist

'((nil "[A-Za-z]" "[^A-Za-z]" "[']" nil ("-B") nil
raw-text-dos)

("american" "[A-Za-z]" "[^A-Za-z]" "[']" nil ("-B")

nil raw-text-dos)

("british" "[A-Za-z]" "[^A-Za-z]" "[']" nil

("-B" "-d" "british") nil raw-text-dos)

("english" "[A-Za-z]" "[^A-Za-z]" "[']" nil ("-B")

nil raw-text-dos)))





;(set-face-font 'default "Times New Roman:Regular:12::Cyrillic")

;(set-face-font 'modeline "MS Sans Serif:Regular:10")



;;(if (fboundp 'w32-shell-dos-semantics) nil

;;

;;(defvar w32-system-shells '("cmd" "cmd.exe" "command" "command.com"

;; "4nt" "4nt.exe" "4dos"
"4dos.exe"

;; "ndos" "ndos.exe")

;; "List of strings recognized as Windows NT/9X system shells.")

;;

;;(defun w32-using-nt ()

;; "Return t if literally running on Windows NT (i.e., not Windows
9X)."

;; (and (eq system-type 'windows-nt) (getenv "SystemRoot")))

;;

;;(defun w32-shell-name ()

;; "Return the name of the shell being used."

;; (or (and (boundp 'explicit-shell-file-name)
explicit-shell-file-name)

;; (getenv "ESHELL")

;; (getenv "SHELL")

;; (and (w32-using-nt) "cmd.exe")

;; "command.com"))

;;

;;(defun w32-system-shell-p (shell-name)

;; (and shell-name

;; (member (downcase (file-name-nondirectory shell-name))

;; w32-system-shells)))

;;

;;(defun w32-shell-dos-semantics ()

;; "Return t if the interactive shell being used expects msdos shell
semantics."

;; (or (w32-system-shell-p (w32-shell-name))

;; (and (member (downcase (file-name-nondirectory
(w32-shell-name)))

;; '("cmdproxy" "cmdproxy.exe"))

;; (w32-system-shell-p (getenv "COMSPEC")))))

;;)

;;

(load "C:/ess/lisp/sweave-site.el")

(load "C:/ess/lisp/ess-site.el")

;;

(require 'paren)

;(load "vc-hooks")

;(setq vc-path "C:/program files/ComponentSoftware/cs-rcs/system")

;;

(setq ess-pre-run-hook

'((lambda () (setq ess-directory "h:/"))))

;;

(require 'ess-site)
Ralf Angeli
2005-02-09 12:13:45 UTC
Permalink
Post by Shawn Way
Any thoughts? I'm not a coder by any means, I'd just like to get a
fully functional auctex (with toolbars) going. I also do not really
read the news group (or have access to it) so if you could email me
directly, it would be appreciated.
[...]
Post by Shawn Way
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
Looking good so far.
Post by Shawn Way
(setq font-lock-maximum-decoration t)
Unnecessary because this is the default on current Emacsen anyway.
Post by Shawn Way
(load "tex-mik")
Better use

(require 'tex-mik)
Post by Shawn Way
(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)
Those are not necessary if RefTeX is installed correctly.
Post by Shawn Way
(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode
(add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode
Okay. You might want to plug RefTeX into AUCTeX as well.
Post by Shawn Way
;; Load TeX-Toolbar
;(autoload 'tex-toolbar "c:/Program
Files/XEmacs/Xemacs-packages/tex-toolbar.el" "tex-toolbar" t)
;(autoload 'toolbar-x "c:/Program
Files/XEmacs/Xemacs-packages/toolbar-x.el" "toolbar-x" t)
;(require 'toolbar-x)
;(add-hook 'LaTeX-mode-hook 'LaTex-install-toolbar)
The latter line should be all that is needed. But you have a typo in
there. It is called "LaTeX-install-toolbar".

Summarizing you could use something like this:

(require 'tex-mik)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)

(add-hook 'LaTeX-mode-hook 'LaTeX-install-toolbar)

(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(add-hook 'latex-mode-hook 'turn-on-reftex)
(setq reftex-plug-into-AUCTeX t)
--
Ralf
Reiner Steib
2005-02-09 17:17:03 UTC
Permalink
On Wed, Feb 09 2005, Shawn Way wrote:

| Content-Type: multipart/alternative;

Please don't send HTML junk to mailing lists. Send text/plain
instead.
Post by Shawn Way
I've been racking my brain out trying to get these installed on a
XEmacs-21.4.13
Ess-5.2.5
Auctex-11.55
Any thoughts? I'm not a coder by any means, I'd just like to get a
fully functional auctex (with toolbars) going. I also do not really
read the news group (or have access to it)
http://news.gmane.org/gmane.emacs.auc-tex/
http://thread.gmane.org/gmane.emacs.auc-tex/5694
Post by Shawn Way
so if you could email me directly, it would be appreciated.
Done.
Post by Shawn Way
;; See http://www.math.auc.dk/~dethlef/Tips/
Please be careful concerning this. It is outdated, IIRC. Appropriate
instructions can be found in the documentation that comes with AUCTeX
(INSTALL.windows, Manual, ...).

[...]
Post by Shawn Way
;; Load TeX-Toolbar
;(autoload 'tex-toolbar "c:/Program
Files/XEmacs/Xemacs-packages/tex-toolbar.el" "tex-toolbar" t)
;(autoload 'toolbar-x "c:/Program
Files/XEmacs/Xemacs-packages/toolbar-x.el" "toolbar-x" t)
;(require 'toolbar-x)
;(add-hook 'LaTeX-mode-hook 'LaTex-install-toolbar)
How about reading the manual?

,----[ (info "(auctex)Changes") ]
| * There is an experimental toolbar support now. It is not activated
| by default. If you want to use it, add
| (add-hook 'LaTeX-mode-hook 'LaTeX-install-toolbar)
| to your init file.
`----

Note that LaTex-install-toolbar is not the same as
LaTeX-install-toolbar.

Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
Loading...