[pdftex] showkeys-package vs. autoref / hyperref / hypertarget

Heiko Oberdiek oberdiek at ruf.uni-freiburg.de
Mon Dec 17 14:18:16 CET 2001


On Mon, 17 Dec 2001, Stueker, Dirk wrote:

> Recently I came across the showkeys-package, which is quite convenient when
> checking the references.
>
> Unfortunately, the package only seems to work with the \ref command.
> Neither \autoref nor hyperref or hypertarget-commands are supported. Is
> there
> any option to change this?

No, unless someone writes some support.

\autoref:
Perhaps the following helps (untested):

\newcommand*{\ORGautoref}{}
\let\ORGautoref\autoref
\def\autoref#1{%
  \begingroup
    \setbox0=\hbox{\ref{#1}}%
  \endgroup
  \ORGautoref{#1}%
}

\hypertarget:
Package showkeys relies on the \label-\ref system of LaTeX,
but \hypertarget uses another mechanism.

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>




More information about the pdftex mailing list