Rich Shepard wrote:
> By reading TLC2 I've learned of the existance and use of \pageref in
> the
> varioref package. So, I added \usepackage{varioref} to my book's preamble
You don't need to. LyX will do this for you.
> and now I need to learn how to add the page number to a cross reference.
>
> On the cross reference dialog box there's a Format list widget. Do I
> now go back through my text and replace all the 'reference' type with
> 'reference on page' type?
That depends on whether you want all the 'reference' type to become
'reference on page' type. Assuming you do, then a simple sed script will
automate it for you:
# All on one line:
$ sed 's/\(\\begin_inset LatexCommand \)\\ref/\1\\vref/' \
input.lyx > output.lyx
# And then, because you're a careful man:
$ diff -u input.lyx output.lyx | less
> Will this format then be the default for future
> cross references I insert?
Nope.
--
Angus