On 03/22/2010 08:13 AM, Jürgen Spitzmüller wrote:
rgheck wrote:
I'm not sure if we can guarantee that they will be identical, only very
close. This is because the default format for refstyle isn't always (and
hasn't always) been exactly the same as prettyref's. So you may get
slightly different text in certain cases.
That's bad. In this case, I vote for keeping prettyref for old documents and
use refstyle only for new ones (as default).

Anything seems better to me than allowing the use of both prettyref and refstyle. We'd have to support both in 2.0, and I don't see any nice way to do that.

I've looked into this, and there are two major differences, both of which are fixable, I think.

The first is that prettyref always uses capitals, so you always get "Section 5", rather than "section 5". (This has always annoyed me.) By contrast, refstyle provides both the \secref and \Secref commands, which give you lowercase or uppercase as you wish. LyX should really support this anyway, so I could add that to the cross-reference dialog as an option and then we can translate
    \prettyref{sec:whatever}
as
    \Secref{sec:whatever}
in lyx2lyx.

The other issue is that prettyref gives us these:
    \newrefformat{tab}{Table \ref{#1} on page \pageref{#1}}
    \newrefformat{fig}{Figure \ref{#1} on page \pageref{#1}}
This can also be handled in lyx2lyx by translating:
    \prettyref{tab:what}
as:
    \Tabref{tab:what} on page \pageref{tab:what}
i.e., inserting some extra text and an extra cross-reference.

The other issue, as I said, is with theorems and lemmas, which can be handled in layout.

rh

Reply via email to