auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] how to add a dvips icon to the toolbar?


From: Ralf Angeli
Subject: Re: [AUCTeX] how to add a dvips icon to the toolbar?
Date: Fri, 04 Apr 2008 22:22:09 +0200

* Bernhard Kleine (2008-04-04) writes:

> 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 don't understand this sentence.

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

Did you define a `dvips' entry in `TeX-bar-LaTeX-button-alist'?  If not,
then your setting will not have any effect or at least not a desired
one.

If the `File' command from the `Command' menu does anything like you
want, then you can activate the `file' button for that.

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

Yes, as mentioned above.

> I copied the following to .emacs
>
> (add-hook 'LaTeX-mode-hook 
>           (function

Why do you quote the `lambda' with `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

Unless you or some package defined those functions they will obviously
not work.  The functions mentioned above are not defined by AUCTeX.

-- 
Ralf




reply via email to

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