
reftex와 함께 사용하도록 spacemacs 설치를 구성하려고 합니다. 사실, 방정식 등의 자동 레이블을 변경하여 레이블에 파일 이름이 포함되도록 하고 싶습니다. 내 .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)