[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems with thmstools (and automatic insertion of labels (reftex)
From: |
Arash Esbati |
Subject: |
Re: problems with thmstools (and automatic insertion of labels (reftex) |
Date: |
Tue, 28 Mar 2023 10:37:46 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Uwe Brauer <oub@mat.ucm.es> writes:
>>>> "AE" == Arash Esbati <arash@gnu.org> writes:
>
>> Also write the corresponding AUCTeX style file ub-thmtools-envs.el and
>> put it where AUCTeX can find it:
>
>> (TeX-add-style-hook
>> "ub-thmtools-envs"
>> (lambda ()
>> (TeX-run-style-hooks "thmtools")
>
>> ;; Tell AUCTeX
>> (let ((envs '(("cor" . "cor")
>> ("lem" . "lem")
>> ("prop" . "prop")
>> ("thm" . "thm"))))
>> (dolist (env envs)
>> (LaTeX-add-thmtools-declaretheorems env)
Sorry, the line above should read:
(LaTeX-add-thmtools-declaretheorems (car env))
>> (add-to-list 'LaTeX-label-list env t)))
>
>> ;; Tell RefTeX
>> (when (fboundp 'reftex-add-label-environments)
>> (reftex-add-label-environments
>> '(("cor" ?C "cor:%f:" "~\\ref{%s}" t ("Corollary" "Cor." "C."))))) ))
Best, Arash