Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Our PDF contains lots of \label{foo} commands, where we jump to from links from within the PDF (using the hyperlinks package)

When I tried to jump to there from within our PDF displaying application, which uses the Poppler library, I however failed to find that label.

// C++ code to find the label 'foo' in the document
Poppler::LinkDestination *linkDest = m_doc->linkDestination("foo");

When I instead tried to use the \hyperdef command, I was able to do what I wanted

\hyperdef{foo}{bar}{}

Doing in our PDF application

Poppler::LinkDestination *linkDest = m_doc->linkDestination("foo.bar");

Can anyone please explain the technical difference between these commands? We would like to be able to keep using \label if possible, since we have a large LaTex codebase that uses it.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Since 2012/07/28 v6.82u package hyperref provides option destlabel for this purpose.

share|improve this answer
    
very cool. thanks! –  Johannes Schaub - litb Nov 6 '12 at 13:00
    
For the time being until we update, I just use \hyperdef and the other form of \hyperref like \hyperref{}{cat}{name}{}. I just couldn't find whether an empty URL is allowed, but it works! :) –  Johannes Schaub - litb Nov 6 '12 at 13:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.