如果我通过
我想将
此外,我有类似的东西。
当我使用
是否可能让 AUCTeX 添加
为了澄清,如果我添加了没有标签的
C-c C-e
(例如equation
或figure
)在AUCTeX中插入一些环境,那么AUCTeX会要求使用自动插入的文本eq:
或fig:
添加标签。我想将
theorem
环境添加到AUCTeX中的LaTeX环境中。我通过以下方式完成:(add-hook 'LaTeX-mode-hook
(lambda ()
(LaTeX-add-environments
'("theorem" LaTeX-env-label)
)))
此外,我有类似的东西。
(setq reftex-label-alist
'(
("theorem" ?t "thm:" "~\\ref{%s}" t ("theorem" "th."))
))
当我使用
C-c C-e
来添加 theorem
环境时,它会要求为定理添加一个标签,但不会自动添加 thm:
文本。我需要手动添加。是否可能让 AUCTeX 添加
theorem
环境时像添加 equation
或 figure
一样,在标签中自动添加 thm:
文本?为了澄清,如果我添加了没有标签的
theorem
环境,然后使用 C-c (
使用 RefTeX 添加标签,那么它将要求以 thm:
的形式填写标签。
reftex-plug-into-AUCTeX
设置为t
? - rvf0068theorem
,然后按C-c)
,由于某种原因,您无法选择它们。 - ZeroC-u C-c C-n
)会对我有所帮助。 - rvf0068