[Tex/LaTex] Comments/tips on a (non Latex) pdf including mathematical formulas

commentsfancytooltipsmath-modepdfpdfcomment

My goal :
I correct copies from students that I scan to pdf. I wish I could make the annotations on the scanned copies rather than on the physical paper. Today, I have to scan the copies again to have my annotations transferable to students by email.
Since most of the annotations are similar, I wish to have a stock of annotations I could transfer on the copies.

I went through a lot of technologies, including many "StackExchange Questions" here. I considered pdfcomment, cooltips, fancytooltips, the OCG family (ocgx, ocgp, ocg2, …), etc.
Two tracks attracted more specifically my attention :

  • pdfcomments : I like the mouseover to see the comment, the capabillity to move the annotation around so I can have a stock on a pdf and I can copy it onto the scanned copies. This would be my choice if there was not a main drawback : it accepts only plain text when I need to use mathematical notations. (It needs selected pdf readers). Because you can move comments, you can put them on any pdf, even if it is not compiled from Latex or if you don't have the source.
  • fancytooltips : I like the mouseover to see the comment, and the capability to use LaTeX mathematical formulas and images. Drawbacks : I can't move the annotation from a pdf document to the copies. (It works with very few pdf readers.) . I am not sure whether I can put tips on non Latex pdfs.

Is there a way to have pdfcomment have images/Latex mathematical formulas (or references to formulas that can show with a mouseover) ? Or is there a way to transfer fancytooltips to a non Latex pdf ? Or are there other techniques to achieve the goal ?

Best Answer

It is to some extend possible to add unicode chars (including math symbols) to pdfcomment if you compile with lualatex (^^^^2200 etc can be replaced by the real unicode input ∀) but annotation will imho never be able to show complex equations:

\documentclass{article}
\PassOptionsToPackage{unicode}{hyperref}
\usepackage{pdfcomment}
\begin{document}
  text\pdfcomment{^^^^2200 ^^^^221a a=b^^^^00b2 öäüß }
\end{document}

enter image description here

If you want complex equations you could probably use stamps (or however they are called in the english version of the reader), but they have no mouse up (perhaps it could be added with javascript).

Related Question