Is there a way to load a hidden image into a pdf output document that will show up when the user moves the cursor over a relevant piece of text?
E.g., a pdf file generated by tex contains
this arbitrary block of text
and when you move your cursor over it, a picture appears near the cursor.
Best Answer
You can use
fancytooltips
; this requires Acrobat Reader to work. A little example:Create a file
image.tex
like this:process this file to get a file
image.pdf
. In the same folder, create another file (the "main" file), like this:The string used for
filename
has to be the same as the name of the pdf file containing the tooltip. Process this document; when you hover overthis is the designated text
the image will appear in a tooltip.An image of the resulting PDF file with the cursor away from the designated text:
and an image once the cursor hovers over the text: