On Thu, 1 Jul 2004, Angus Leeming wrote: > You don't need to. LyX will do this for you.
Angus, Interesting. Use of the \pageref loads the package. Are there other instances where the same assistance is provided? Are these documented in one of the manuals? (Just curious, of course. I'm delighted with the way LyX works.) > 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 Excellent. A search/replace with the text editor works, too. > > Will this format then be the default for future cross references I > > insert? > > Nope. Ah, well. I can certainly live with another trackball click. What I discovered during this exercise is that when a figure is large enough to require a page by itself, (La)TeX complains if the \pageref is used, too. The error message was something about the figure being on a page boundary and suggested that I reference only the figure. I did this and the document again compiled error free. Many thanks, Rich -- Dr. Richard B. Shepard, President Applied Ecosystem Services, Inc. (TM) <http://www.appl-ecosys.com>