누구든지 GNU 이맥스의 메뉴 모음에있는 Ref 메뉴를 만드는 것에 대한 조언을 주시면 매우 감사하겠습니다.RefTex in emacs 메뉴 모음
Q : RefTeX에서 emacs의 메뉴 막대에 Ref 메뉴를 만들려면 어떻게해야합니까? 아니면 Windows에서 가능합니까? RefTeX 매뉴얼은 "이것을 지원하는 시스템"이라고 말하지만, 어떤 시스템을 나타내지는 않습니다. 이전에는 Aquamacs를 사용하여 Mac OSX에서 작업 중이었고이 메뉴가 menubar에 있습니다.
모든 조언을 크게 듣습니다.
옆으로 : Windows 7, emacs 버전 23.1, AUCTeX, LaTeX가 설치되었습니다.
나는 내 이맥스 파일에 다음을 삽입 한 (나는 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)