how to use \ref labels list with \vref

kile
julot
2005-03-27
2012-07-03
  • julot
    julot
    2005-03-27

    Hi,

    I use the package varioref, which provides the command \vref{label}, that works almost like \ref, except for the detail of adding text like "2 in page 12" or "2.3.1 in the next page".

    Is there any way of making Kile to show the labels list when I write \vref{ , just like when I do it with \ref ? I have tried adding the entry \vref{key} to the file Latex.cwl, but it did not worked.

    Any suggestions?

    Thanks

     
    • Hi Julot,

      I had a similar problem and solved it by replacing the \ref command by \aref (\vref in your case).

      The only disadvantage is that you can no longer use the ordinary \ref, but in my case I didn't want to anyway.

      You can add this to the preamble of your doc (or your style-template)
      \renewcommand{\ref}{\vref}

      Hope that helps,
      Martijn

       
    • julot
      julot
      2005-03-29

      Nice idea!! thanks