GNU emacs のメニュー バーに Ref メニューを作成する方法についてアドバイスをいただければ幸いです。
Q: Emacs のメニュー バーに Ref メニューを作成するように RefTeX を取得するにはどうすればよいですか? または、これはWindowsで可能ですか?RefTeX のマニュアルには、「これをサポートするシステムについて」と書かれていますが、どのシステムかは示されていません。以前は、Aquamacs を使用して Mac OSX で作業しており、メニューバーにこの参照がありました。
どんなアドバイスでも大歓迎です。
余談: Windows 7、emacs バージョン 23.1、AUCTeX、LaTeX がインストールされています。
以下を .emacs ファイルに挿入しました (このコードは EmacsWiki から取得し、パスを変更しました)。
(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)