Richard Heck a écrit :
On 11/04/2010 04:30 AM, Jean-Pierre Chrétien wrote:


Oops, LyX should redefine \newrefformat is refstyle is selected (in case of user-defined \newrefformat).

The simplest (and easily reversible) solution seems to keep prettyref package loaded even if refstyle is selected, see last patch of bug #6609.

Is the worry here that, if someone loads an old 1.6.x document with \newrefformat used in the preamble, the document may fail to compile?

Yes

If
so, then I think I'd prefer
    \providecommand[2]\newrefformat{}
if we think we should do something. Loading prettyref as well looks like a recipe for conflict somewhere down the road.

Generally, though, our policy has been that you're on your own with the preamble, and in this case the user will probably want, in fact, replace the \newrefformat with \newref. Helping out by providing some dummy definition would just mask this problem, it seems to me.

Sure, do as you prefer, let's document this in the docs about prettyref deprecation then.
But this should be removed if the checkbox prettyref <-> refstyle is unchecked.

--
Jean-Pierre


Reply via email to