I've come to a somewhat satisfying solution to cross-referencing Figures and
Tables in my documents. I really like PrettyRef's capabilities to detect
what sort of float you're referring to. On the other hand, I really like
varioref's ability to say "on preceding page" or "on current page" or
whatever. Unfortunately, it seems that these packages don't share each
other's niceties. I've come up with a *somewhat* palatable way to combine
these (with a drawback). It's pretty simple, but I'm not a TeX guru, so I'm
inordinately proud of myself.
In my Preamble (I basically copied this from PrettyRef's documentation),
I put
\newrefformat{fig}{Figure \ref{#1} \vpageref{#1}}
\newrefformat{tab}{Table \ref{#1} \vpageref{#1}}
This is almost identical with a couple of lines in PrettyRef's definitions,
but with the \vpageref{#1} slightly changed.
The advantage: Now, for almost every cross reference in LyX, I use the
"PrettyRef" format, and if the cross-referenced item is a Figure or Table,
and happens to be on a page close to the referring point, the reference says
"Figure such-and-such on the following page" or whatever. I like this
behavior a lot.
The drawback (the one I've seen so far): This technique inherits the
disadvantages of the varioref package, in that possible "looping" behavior
might happen if a reference to something happens to span a couple of pages.
If the reference starts out on page 61, and then continues on 62, the
package doesn't know whether to say "on the following page" or "on the
current page" or what. Can people see other possible drawbacks to redefining
things the way I've done?
Thanks!
Curtis O.
--------
Down with categorical imperative!
[EMAIL PROTECTED] or [EMAIL PROTECTED]
--------