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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user