
私は、spacemacs インストールを reftex で使用するように設定しようとしています。実際には、方程式などの自動ラベルを変更して、ラベルにファイル名が含まれるようにしたいのです。私の .spacemacs の末尾は次のようになります。
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
[snip]
'(reftex-extra-bindings t)
'(reftex-use-external-file-finders t)
'(reftex-label-alist
(quote
(("multline" 109 "eq_%f:" "~\\ref{%s}" t ("Equation"))
("equation" 122 "eq_%f:" "~\\eqref{%s}" t ("Equation")))))
'(reftex-plug-into-AUCTeX t)
'(ring-bell-function (quote ignore)))
まったく同じコードが emacs ではうまく動作します。spacemacs では、自動番号付けができず、ファイル名のプレフィックスも取得できません。
何か案が ?
答え1
Arahが述べたように、158行目./.emacs.d/layers/+lang/latex/packages.el
を
(setq reftex-plug-into-AUCTeX '(nil nil t t t))
に
(setq reftex-plug-into-AUCTeX t)