[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems with thmstools (and automatic insertion of labels (reftex)
From: |
Uwe Brauer |
Subject: |
Re: problems with thmstools (and automatic insertion of labels (reftex) |
Date: |
Sun, 26 Mar 2023 09:23:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
>>> "AE" == Arash Esbati <arash@gnu.org> writes:
> Uwe Brauer <oub@mat.ucm.es> writes:
>>>>> "AE" == Arash Esbati <arash@gnu.org> writes:
>>
>> Well what I mean I hit RET and *nothing* happens, no environment is
>> inserted, so I have to chose another option.
> Ah, I think now I understand. Can you please apply this patch to
> thmtools.el and try it again?
In a moment because right now I have a more pressing problem:
I put
(add-to-list 'LaTeX-label-alist '("cor" . "cor:"))
To my reftex_init file, because it is then more convenient to configure the
labels.
I load the reftex_init file from my auctex_init file
Like this
,----
| (require 'cdlatex_init)
| (require 'arash-bibtex-changelog)
| (require 'iv-sp-am-br-ger-fr-minor)
| (require 'flyspell-abbrev-multilang)
|
| (load "auctex.el" nil t t)
| (load "preview-latex.el" nil t t)
|
| (require 'tex-site)
| (require 'my-change-prettify-list)
| (require 'my-fill-latex-sentence)
| (require 'latex-keys)
| (require 'tex-delete-comment)
| (require 'item-kill)
|
| .... Configuration setting
|
| (require 'reftex_init)
|
| (provide 'my-auctex-init)
`----
In my reftex_init file I have added
(add-to-list 'LaTeX-label-alist '("cor" . "cor:"))
However when restarting emacs I obtain the following error, I attach.
Since this label is defined in auctex's latex.el
I thought
(require 'latex)
In my reftex_init file would solve the issue but it did not. I could try out an
explicit load-file command, but I presume there are more elegant solutions.
Any idea which
Regards
Uwe
Debugger entered--Lisp error: (void-variable reftex-label-alist)
add-to-list(reftex-label-alist (nil 101 "eq:%f:" "~(\\ref{%s})" t ("Equation"
"Eq." "Eqn." "Gleichung" "Gl.")) ("neweq" 101 "eq:%f:" "~(\\ref{%s})" t
("Equation" "Eq." "Eqn." "Gleichung" "Gl.")))
#f(compiled-function () #<bytecode -0xee473d1ab3523f4>)()
funcall(#f(compiled-function () #<bytecode -0xee473d1ab3523f4>))
mapc(funcall (#f(compiled-function () #<bytecode -0xee473d1ab3523f4>)))
do-after-load-evaluation("/home/oub/emacs/site-lisp/packages/auctex-git/auct...")
require(tex-style)
byte-code("\301\302!\210\301\303!\210\301\304!\210\305\10X\203\26\0\301\306!\210\301\207"
[emacs-major-version require tex tex-style tex-ispell 26 latex-flymake] 2)
require(latex)
byte-code("\305\306!\210\307\20\305\310!\210\311\312\313\"\210\307\211\21\22\314\23\315\24\316\317\320\"\207"
[reftex-extra-bindings reftex-plug-into-AUCTeX
reftex-initialize-temporary-buffers reftex-index-macros reftex-label-illegal-re
require latex t reftex add-hook LaTeX-mode-hook turn-on-reftex
(("\\nomenclature{*}{}" "ncl" 110 "" nil nil)) "[^-a-zA-Z0-9_+=:;,.א-ת]"
add-to-list LaTeX-label-alist ("cor" . "cor:")] 4)
require(reftex_init)
byte-code("\300\301!\210\302\303!\207" [require reftex_init provide
my-auctex-init] 2)
require(my-auctex-init)
eval-buffer(#<buffer *load*-261710> nil "/home/oub/emacs/init/emacs_init.el"
nil t) ; Reading at buffer position 9014
load-with-code-conversion("/home/oub/emacs/init/emacs_init.el"
"/home/oub/emacs/init/emacs_init.el" nil nil)
load("/home/oub/emacs/init/emacs_init.el" nil nil t)
load-file("~/emacs/init/emacs_init.el")
(cond ((and (not running-xemacs) (> emacs-major-version 19)) (require 'f)
(package-initialize) (load-file "~/emacs/init/emacs_init.el") (setq custom-file
"/home/oub/emacs/init/custom-init.el") (load-file
"/home/oub/emacs/init/custom-init.el")))
eval-buffer(#<buffer *load*> nil "/home/oub/.emacs" nil t) ; Reading at
buffer position 936
load-with-code-conversion("/home/oub/.emacs" "/home/oub/.emacs" t t)
load("~/.emacs" noerror nomessage)
startup--load-user-init-file(#f(compiled-function () #<bytecode
-0xd449597bfbeb860>) #f(compiled-function () #<bytecode -0x1f3c6feddc0a7535>) t)
command-line()
normal-top-level()
smime.p7s
Description: S/MIME cryptographic signature