rgheck wrote:
> 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.
If we are not able to provide full compatibility, we must IMHO.
> 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.
OK.
> 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.
Hm. I have in one of my class files this:
% Prettyref:
\RequirePackage{prettyref}
\newrefformat{cha}{Kapitel~\ref{#1}}
\newrefformat{sec}{Abschnitt~\ref{#1}}
\newrefformat{sub}{Abschnitt~\ref{#1}}
\newrefformat{anm}{Anm.~\ref{#1}}
\newrefformat{fn}{Anm.~\ref{#1}}
\newrefformat{app}{Anhang~\ref{#1}}
\newrefformat{tab}{Tabelle~\vref{#1}}
\newrefformat{fig}{Abbildung~\vref{#1}}
\newrefformat{exp}{Argumentation~\vref{#1}}
Note that some of these definitions include varioref (the \vref macro), so
\prettyref{fig:foo} actually yields "see figure X on the following page" (or
whatever the context requires). I am aware that I will be forced to change
that class file if we completely ditch prettyref (which is bad enough), but is
refstyle at least able to allow similar inclusion of varioref functionality?
Jürgen