Ralf Angeli <[email protected]> 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


_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex

Reply via email to