auctex-devel
[Top][All Lists]
Advanced

[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: Sun, 16 Apr 2023 00:54:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Hi Uwe,

Uwe Brauer <oub@mat.ucm.es> writes:

>>>> "AE" == Arash Esbati <arash@gnu.org> writes:
>
> I had so far tried to solve my problem by 
>
> (defun my-set-latex-labels ()
>   (interactive)
>   (setq LaTeX-label-alist
>                '(("cor" . "cor:")
>                ("assum" . "assum:")
>                ("thm" ."thr:")
>                ("prop" . "prop:")
>                ("lem"  "lem:")
>                ("defn"  "def:"))))
>
>
> (add-hook 'LaTeX-mode-hook 'my-set-latex-labels)
>
>
> Which turned out to be a stupid idea because, then, when inserting an
> equation, automatic labelling was not longer active.

Yes, you should append your entries to `LaTeX-label-alist' instead of
overwriting it with `setq'.

> Ok but still I cannot compile the file (which is always a bad sign, I
> think because LaTeX-add-thmtools-declaretheorems is defined in 
> thmtools which is not provided.
>
> ,----
> | In end of data:
> | ub-thmtools.el:51:9: Warning: the function
> |     ‘LaTeX-add-thmtools-declaretheorems’ is not known to be defined.
> `----
>
> Not sure whether it is wise to ignore that error.

The warning is actually harmless.  You can avoid it by declaring the
function in your style file top level like this:

(declare-function LaTeX-add-thmtools-declaretheorems "thmtools")

Best, Arash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]