Re: Tex-bar and Toolbar-X

Ralf Angeli <[email protected]>
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
* Shawn Way (2005-02-09) writes:

> 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.
[...]
> (setq TeX-auto-save t)
> (setq TeX-parse-self t)
> (setq-default TeX-master nil)

Looking good so far.

> (setq font-lock-maximum-decoration t)

Unnecessary because this is the default on current Emacsen anyway.

> (load "tex-mik")

Better use

(require 'tex-mik)

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

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

> ;; 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.