[texhax] Re: [pdftex] adding pdf-anchors

Robin Fairbairns Robin.Fairbairns at cl.cam.ac.uk
Sat May 21 13:37:21 CEST 2005


this is *not* a pdftex issue; it's a hyperref issue, and applies
equally well in the case of latex+hyperref/dvips/"distiller", etc.

please post issues like this where relevant people can answer,
***not*** where some of the audience are only interested in pdftex.

> hyperref inserts in pdf file a lot of anchors: at equations, sections,
> tops of the pages etc no matter if one labels them or not.
> 
> Is there any reqular way to put an anchor into an arbitrary place?
> Placing \label{XYZ} does not work: \ref{XYZ} returns the value of the
> smallest division/environment, containing the place (say
> \thesubsection) and leads to the anchor associated with this
> division/environment.

solve this problem by the usual *latex* technique of a private
counter.

\newcounter{privateanchor}
...
\refstepcounter{privateanchor}\label{XYZ}



More information about the texhax mailing list