On Fr, 2008-04-04 at 07:43 +0200, Ralf Angeli wrote:
> * Bernhard Kleine (2008-04-04) writes:
> 
> > I have four (auctex-) icons in the toolbar. Working with pstricks I
> > would like to add the dvips icon. Could you please point me to the
> > toolbar configuration?
> 
> ,----[ (info "(auctex)Running TeX and friends") ]
> |    AUCTeX comes with a special tool bar for TeX and LaTeX which
> | provides buttons for the most important commands.  You can enable or
> | disable it by customizing the options `plain-TeX-enable-toolbar' and
> | `LaTeX-enable-toolbar' in the `TeX-tool-bar' customization group.
> `----
> 
> In a CVS Emacs this results in an error.  In case you get the same with
> Emacs 22, customize `TeX-bar-LaTeX-button-alist' and
> `TeX-bar-LaTeX-buttons' directly.
> 

I noticed that in the Tex-tool-bar-group the option is there is no
plain-TeX-enable-Toolbar, but only Latex-enable-Toolbar. 

I have as can be seen in the .emacs file
 '(TeX-bar-LaTeX-buttons (quote (open-file save-buffer cut copy \ paste
undo [separator nil] latex next-error view bibtex dvips viewps)))

dvips enabled, but the icon is not shown.

the TeX-bar-LaTeX-button-alist has a file entry where the command is:
:command (TeX-command "File" 'TeX-master-file -1)

I copied the following to .emacs

(add-hook 'LaTeX-mode-hook 
          (function
           (lambda () 
             (define-key LaTeX-mode-map [f5]  'TeX-toolbar-run-LaTeX)
             (define-key LaTeX-mode-map [f6]  'TeX-toolbar-dvips)
             (define-key LaTeX-mode-map [f7]  'TeX-toolbar-latex+dvips)
             (define-key LaTeX-mode-map [f8]  'TeX-toolbar-latex+bibtex
+dvips)
             (define-key LaTeX-mode-map [f5]  'TeX-toolbar-dvips)
             (define-key LaTeX-mode-map [f2]  'TeX-toolbar-run-BibTeX) 
             (define-key LaTeX-mode-map [f6]  'TeX-toolbar-viewps)
             ;;(define-key LaTeX-mode-map [f7]  'TeX-toolbar-viewdvi) 
             ;;(define-key LaTeX-mode-map [f8]  'TeX-toolbar-latex2) 
              )))

and tried the f5 button. I got the error message:
Symbols function definition is void: TeX-toolbar-dvips

Hopefully you can make sence of this.

Bernhard

-- 
Bernhard Kleine <[EMAIL PROTECTED]>



_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex

Reply via email to