[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] [RefTeX] reftex-reference ignores reference format se

From: Tassilo Horn
Subject: Re: [AUCTeX-devel] [RefTeX] reftex-reference ignores reference format selection
Date: Wed, 21 May 2014 17:09:59 +0200
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux)

Mosè Giordano <address@hidden> writes:

Hi Mosè,

>> I can't reproduce that with the reftex version from the 24.4 pretests
>> or emacs trunk (where it inserts a (\pageref{eq:1}), the parens being
>> caused by `reftex-typekey-to-format-alist'), so it's probably already
>> fixed.
> I've just tried out the last revision of RefTeX and I still get the
> same result I described before.
>     (reftex-format-special "eq:foo" "~\\eqref{%s}" "\\pageref")
> still returns for me
>     "~\\eqref{eq:foo}"

Same here.

> The value of `reftex-typekey-to-format-alist' is
> ((" " . "~\\ref{%s}")
>  ("n" . "~\\ref{%s}")
>  ("f" . "~\\ref{%s}")
>  ("i" . "~\\ref{%s}")
>  ("s" . "~\\ref{%s}")
>  ("t" . "~\\ref{%s}")
>  ("l" . "~\\ref{%s}")
>  ("N" . "~\\ref{%s}")
>  ("e" . "~\\eqref{%s}"))
> Am I missing something?

I don't have the ("e" . "~\\eqref{%s}") entry.  The problem with that is
that it's not matched by the regexp in `reftex-format-special'.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]