1

"Manually", both of the following do the trick (as far as I can tell):

\ldots as presented in table~\ref{tab:birds_and_bees} \ldots

\ldots as presented in tab.~\ref{tab:birds_and_bees} \ldots

With the hyperref-pkg, "only" the following seems to be on offer:

\ldots as presented in \autoref{tab:birds_and_bees} \ldots

which produces the long version of "table" (not the abbreviated tab.).

I guess it'd be o.k. to use \autoref{tab:birds_and_bees} sometimes, and tab.~\ref{tab:birds_and_bees} at other times (in the same document ! ), but is there a way of having the abbrev. done via hyperref/autoref, too?

PS: one disadvantage of using tab.~\ref{tab:birds_and_bees} is that the "tab."-part is not linkified (not "blue", in my output). IMO, it looks beta if "tab." is blue, too.

PPS: for in-depth discussion (providing many pointers and food for thought): Cross-reference packages: which to use, which conflict?

1 Answers1

5

Arbitrary text can be linked with the optional argument form of \hyperref:

\hyperref[tab:birds_and_bees]{tab.~\ref*{tab:birds_and_bees}}

The star form \ref* generates a reference without a link to prevent a nested link.

Also \autoref can be configured:

\renewcommand*{\tableautorefname}{tab.}

If you are using package babel then this is language dependend, e.g.:

\addto\extrasenglish{%
  \renewcommand*{\tableautorefname}{tab.}%
}%

See also the manual of hyperref.

Heiko Oberdiek
  • 271,626