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.

I'm writing my CV and I'd like something that works like HTML's abbr tag in my document. I know there are packages like pdfcomment and cooltooltips, but those really only work with Acrobat Reader -- it's likely that some of my intended readers won't be using Acrobat, so I need a solution that should work in any reasonable PDF viewer.

I only need short bits of text, and I've noticed that hyperlinks seem to have a tooltip with the URL that hovers below the text -- this is pretty much what I want, and it seems to work in readers like Evince and xpdf, so I'm guessing this is a good route.

I'd like a special link border color or decoration, so the reader can figure out that this is not a hyperlink that one can click and open in a browser.

Is it possible to use \href to do this? Or is there a package that will do this using some other method?

share|improve this question
    
Did you try the approach given in this answer: Getting tooltips with pdfcomment? –  Stephen May 3 '12 at 15:18
add comment

2 Answers

I think what you want does not exist. Apart from the commands provided by packages like fancytooltips or cooltooltips (and the PDF specials they employ), there is no way of putting tooltips into PDFs. What you are observing in evince is not a different kind of tooltip, but just a built-in reaction to the presence of a hyperlink in the document. (Yes, it's in xpdf too, but keep in mind that the poppler libraries that evince and okular run on are derived from xpdf.) What's being "read" from the PDF is just the hyperlink. And it's not true that you'll see the same behavior in all "sane" PDF viewers: hyperlinks that produce tooltips like these in evince do not do so for Ghostview (gv), or MuPDF, or Zathura (which I consider to be reasonable PDF viewers).

share|improve this answer
    
Hmmm, I suspected that might be the case. –  Dan Drake Nov 21 '10 at 1:06
    
I'm not sure how gv qualifies as a "sane" PDF viewer... it doesn't really support any PDF features. You might as well be reading a PostScript file! –  SamB Dec 17 '10 at 0:18
    
There are some options now for doing this. See my solution using pdfcomment. –  Andy Clifton Jul 20 '13 at 15:51
add comment

I think you want the pdfcomment package. This includes a \pdftooltip command.

This lets you add a tool tip to the PDF using \pdftooltip{item}{tooltip}, where the item can be almost anything (e.g. \pdftooltip{\includegraphics[]{}}{description of my figure}).

In your case, you could use

\pdftooltip{abbreviation}{what that TLA means}

share|improve this answer
    
But with pdfcomment, the tool tip cannot be anything but plain, unformatted text. –  AlexG Jul 22 '13 at 7:09
add comment

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.