From b2984e39fcacc5acc5c1d74029505cba3f040196 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Wed, 18 Dec 2013 12:52:49 +0100 Subject: [PATCH] Add tilde before \ref{}s to tables. * lisp/textmodes/reftex-vars.el (reftex-label-alist-builtin): Reference tables with ~\ref{...} instead of only \ref{...}. --- lisp/ChangeLog | 5 +++++ lisp/textmodes/reftex-vars.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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")))) -- 2.39.2