From: Tassilo Horn Date: Wed, 18 Dec 2013 11:52:49 +0000 (+0100) Subject: Add tilde before \ref{}s to tables. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~345 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b2984e39fcacc5acc5c1d74029505cba3f040196;p=emacs.git Add tilde before \ref{}s to tables. * lisp/textmodes/reftex-vars.el (reftex-label-alist-builtin): Reference tables with ~\ref{...} instead of only \ref{...}. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dd84a88d71a..efb12d34d54 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-12-18 Tassilo Horn + + * textmodes/reftex-vars.el (reftex-label-alist-builtin): Reference + tables with ~\ref{...} instead of only \ref{...}. + 2013-12-18 Chong Yidong * cus-edit.el (custom-magic-alist): Fix "themed" description diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el index ce23a48dec6..f6e8936edb5 100644 --- a/lisp/textmodes/reftex-vars.el +++ b/lisp/textmodes/reftex-vars.el @@ -89,7 +89,7 @@ (("wrapfigure" ?f nil nil caption))) (ctable "The ctable package" - (("\\ctable[]{}{}{}" ?t "tab:" "\\ref{%s}" 1 ("table" "Tabelle")))) + (("\\ctable[]{}{}{}" ?t "tab:" "~\\ref{%s}" 1 ("table" "Tabelle")))) (listings "The listings package" (("lstlisting" ?l "lst:" "~\\ref{%s}" nil (regexp "[Ll]isting"))))