Improve reftex-format-special
* lisp/textmodes/reftex-ref.el (reftex-format-special): Make it work also for AMS Math's \eqref macro.
This commit is contained in:
parent
770a6a917f
commit
5e26d9849a
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-05-25 Tassilo Horn <tsdh@gnu.org>
|
||||
|
||||
* textmodes/reftex-ref.el (reftex-format-special): Make it work
|
||||
also for AMS Math's \eqref macro.
|
||||
|
||||
2014-05-25 Thien-Thi Nguyen <ttn@gnu.org>
|
||||
|
||||
Arrange to never byte-compile the generated -pkg.el file.
|
||||
|
|
|
@ -840,8 +840,11 @@ package.\n\nThis is a generated function."
|
|||
Replace any occurrences of \"\\ref\" with REFSTYLE."
|
||||
;; Replace instances of \ref in `fmt' with the special reference
|
||||
;; style selected by the user.
|
||||
(while (string-match "\\(\\\\ref\\)[ \t]*{" fmt)
|
||||
(setq fmt (replace-match refstyle t t fmt 1)))
|
||||
(cond
|
||||
((while (string-match "\\(\\\\ref\\)[ \t]*{" fmt)
|
||||
(setq fmt (replace-match refstyle t t fmt 1))))
|
||||
((string-match "\\(\\\\[[:alpha:]]+\\)[ \t]*{" fmt)
|
||||
(setq fmt (replace-match refstyle t t fmt 1))))
|
||||
(format fmt label))
|
||||
|
||||
;;;###autoload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue