[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] [RefTeX]: Customize non-breaking space before \ref
From: |
Uwe Siart |
Subject: |
Re: [AUCTeX] [RefTeX]: Customize non-breaking space before \ref |
Date: |
Mon, 25 Jan 2010 06:58:54 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (windows-nt) |
Ralf Angeli <address@hidden> writes:
> * Uwe Siart (2010-01-24) writes:
>
>> when making a reference RefTeX inserts "~\ref{label-id}" by default.
>> However, for typographical reasons I prefer "\,\ref{label-id}" in most
>> cases. Is it possible to customize RefTeX in accordingly?
>
> There is no option for changing this once for all label and therefore
> reference types, if you are seeking something like that.
Yes, this was what I hoped for, but ...
> But you can customize `reftex-label-alist' and provide your own
> reference formats. See (info "(reftex)Defining Label Environments").
... this helped me as well. Most exigent cases were figure and table
references so I added
(setq reftex-label-alist
'(("figure" ?f "fig:" "\\,\\ref{%s}" caption
(regexp "figure?[sn]?" "figs?\\." "Abbildung\\(en\\)?" "Abb\\."))
("table" ?t "tab:" "\\,\\ref{%s}" caption
(regexp "tables?" "tab\\." "Tabellen?"))))
to my site-start.el and that does the job.
Thanks.
--
Uwe