Is it possible to get tooltips into a LaTeX pdf?
I am working on my CV. I would like to show some more information on my electronic version once you swipe over that field with the mouse. i.e. when swiping with the mouse over education I want to show my subjects taken in undergrad through a tooltip.
Is this possible and if yes would if work for all kind of pdf readers?
Best Answer
Finally I came up with a
\tooltip
command that works across a small number of PDF viewers, among which is an Open-Source one. The tooltip command allows for TeX-formatted tip texts.It comes in five variants:
For Evince (open-source), only the command with 4 stars
\tooltip****
is usable, because mouse-click is the only event Evince listens for. In Acrobat Reader, all variants are functional.The non-draggable variants (two and more stars) do not use any JavaScript.
If
hyperref
is loaded, the colour of internal links (hyperref
optionlinkcolor
) is used as<link colour>
.In order to break longer
<tip text>
into multiple lines, wrap it in a\parbox
of given width:Evince:
A-Reader: