0

如果有人能就在 GNU emacs 的菜单栏中创建 Ref 菜单提供建议,我将不胜感激。

问:如何让 RefTeX 在 emacs 的菜单栏中创建一个 Ref 菜单?或者这可能在Windows上?RefTeX 手册说“在支持这个的系统上”,但它没有指出哪些系统。以前我一直在 Mac OSX 上工作,使用 Aquamacs 并在菜单栏中有这个参考。

任何意见是极大的赞赏。

旁白:安装了 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)
4

1 回答 1

1

我有一个类似的问题....但我通过将下面的行插入到我的 site-start.el 来解决它

(add-hook 'LaTeX-mode-hook (lambda () (turn-on-reftex) (setq reftex-plug-into-AUCTeX t)))

这在工具栏中放置了一个“参考”菜单。

对于进一步的 RefTex 自定义,我已将它们放在我的 .emacs 文件中

高温高压

埃里卡

于 2011-05-11T13:30:33.610 回答