Jürgen Spitzmüller a écrit :
Jean-Pierre Chrétien wrote:
Jürgen Spitzmüller a écrit :
Jean-Pierre Chrétien wrote:

But the README text is not very encouraging:

        There are too many problems with varioref. Nobody has time to
        sort them out. Therefore this package is now unsupported.

Sure, I read that, but for years the same remark could have been applied to hyperref, and lyx managed to work with it.


In any case, I'm reluctant to load such a complex package just because it fixes varioref/French ("if we are lucky"). That is to say: I'm fine to use the above order if hyperref is used, but without hyperref, I would rather welcome a simpler, standalone solution.

If you check the "Use hyperref" box in Document>Settings>PDF all is right (by the way, all is right also for the French versions of UserGuide and Embedded Objects, which raised problems in the past with earlier versions of TexLive).


Also, the problem is supposed to be fixed within babel itself (see the babel docs, sec. 12.18.2). Babel does the same trick than nameref here (deactivating actice chars within \vref and \vpageref). The strange thing is: if I export your test file and compile it manually with pdflatex, no error occurs. The error only shows up when compiling with LyX. I'd like to know why the babel fix does not trigger when compiling with LyX.

I do not have such a result here, the logs files are alike (but for a few changes on line numbering). I have texlive-2009 (no dynamic updates). And the .tex files differ only by what is found in /tmp and downwards.

--- erreur_varioref_lyx16.tex   2010-04-08 10:34:08.000000000 +0200
+++ /tmp/lyx_tmpdir.TJ3978/lyx_tmpbuf1/erreur_varioref_lyx16.tex 2010-04-08 10:45:06.000000000 +0200
@@ -1,5 +1,7 @@
-%% LyX 1.6.5 created this file.  For more info, see http://www.lyx.org/.
-%% Do not edit unless you really know what you are doing.
+\batchmode
+\makeatletter
+\def\in...@path{{/tmp//}}
+\makeatother
 \documentclass[french]{article}
 \usepackage[T1]{fontenc}
 \usepackage[latin9]{inputenc}

With my conf. here, what is said in the babel doc is clearly not effective
(and the traffic on lyx-fr shows I'm not alone there).

So a solution would be to edit the docs where varioref is documented
and suggest to check the hyperref box, or deactivate locally : by
using \shorthandoff{:}{...} in ERT.

Another option would be to offer to the user an interface to insert commands at the beginning of the preamble, so that
\usepackage{nameref}
could be added at the right location without LyX code change.
This has been already proposed as a general enhancement (ticket #5366).


As far as prettyref is concerned (bug #6609), the best would be to
remove this package, as it was already proposed in bug #2295 because of
the lack of internationalization.

This is no option for branch. We cannot drop prettyref in branch, this is a file format change. For the same reason, we cannot add support for refstyle.

Sure, I was referring to the recent threads about refstyle implementation in trunk.

--
Jean-Pierre

Reply via email to