help-emacs-windows
[Top][All Lists]
Advanced

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

[h-e-w] RefTeX in menu bar


From: Etn
Subject: [h-e-w] RefTeX in menu bar
Date: Sat, 16 Apr 2011 12:58:15 +0100

Hi all,

I would be very grateful if anyone can give advice on creating a Ref menu in the menu bar in emacs GNU.
Q: How do I get RefTeX to create a Ref menu in the menu bar in emacs?
(or is this possible on windows? The RefTeX manual says "on systems which support this", but it does not indicate which systems).
(previously I have been working on a Mac OSX, using Aquamacs and have this ref in the menubar)  

Any advice is greatly appreciated.


Etn


Aside:
emacs version 23.1
AUCTeX, LaTeX installed.


I have inserted the following into my .emacs file: 
( I got this code from EmacsWiki and changed the path)

(require 'tex-site)
(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 Emacs latex mode
;; (add-hook 'reftex-load-hook 'imenu-add-menubar-index)
(add-hook 'LaTeX-mode-hook '(lambda () (require 'latex-units)
      (turn-on-reftex)
      (turn-on-auto-fill)
      (LaTeX-math-mode)
      (load "preview-latex.el" nil t t)))

(setq LaTeX-eqnarray-label "eq"
      LaTeX-equation-label "eq"
      LaTeX-figure-label "fig"
      LaTeX-table-label "tab"
      TeX-auto-save t
      TeX-newline-function 'reindent-then-newline-and-indent
      TeX-parse-self t
      TeX-style-path
      '("style/" "auto/"
"C:/emacs/emacs-23.3/site-lisp/auctex/style/"
"C:/emacs/emacs-23.3/var/auctex/"
"C:/emacs/emacs-23.3/site-lisp/auctex/style/")
      LaTeX-section-hook
      '(LaTeX-section-heading
LaTeX-section-title
LaTeX-section-toc
LaTeX-section-section
LaTeX-section-label))

(setq reftex-cite-format 'natbib
      reftex-default-bibliography
      '("~/Desktop/References/MyLibrary.bib")
      reftex-extra-bindings t
      reftex-plug-into-AUCTeX t
      reftex-sort-bibtex-matches 'year
      reftex-toc-mode-hook nil)


reply via email to

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