2011-04-19 40 views
0

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

问:我如何让RefTeX在emacs的菜单栏中创建Ref菜单?或者这可能在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) 

回答

1

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

(附加钩“胶乳模式挂机 (拉姆达() (导通 - reftex) (setq reftex插头 - 进入 - AUCTeX吨)))

这将'Ref'菜单放置在第e工具栏。

如需进一步RefTex自定义,我在我的.emacs把这些文件

HTH

埃里卡