Pass correct environment name to `reftex-label'
* lisp/textmodes/tex-mode.el (latex-block-body-alist): Pass "figure" to `reftex-label' when inserting a figure float. (bug#58329)
This commit is contained in:
parent
d188013737
commit
0c65c9dfb3
1 changed files with 1 additions and 1 deletions
|
@ -1557,7 +1557,7 @@ a skeleton (see `skeleton-insert').")
|
|||
'(if (and (boundp 'reftex-mode) reftex-mode) (reftex-label "table"))
|
||||
\n _)
|
||||
("figure" nil > _ \n "\\caption{" > (skeleton-read "Caption: ") "}" > \n
|
||||
'(if (and (boundp 'reftex-mode) reftex-mode) (reftex-label "table"))))
|
||||
'(if (and (boundp 'reftex-mode) reftex-mode) (reftex-label "figure"))))
|
||||
"Skeleton element to use for the body of particular environments.
|
||||
Every element of the list has the form (NAME . SKEL-ELEM) where NAME is
|
||||
the name of the environment and SKEL-ELEM is an element to use in
|
||||
|
|
Loading…
Add table
Reference in a new issue