I don't know if you are looking for a purely LaTeX
approach. If that is what you want, then it seems Paul Gaborit's ocgx
package is the way to go. But you tagged your question as acrotex
which uses javascript to enable its mouseover features. The manuals of acrotex
also have mouseover features. In Mouseover events in beamer: hovering on \eqref and a comment containing the original equation popping up I used fancytooltips
which also uses acrotex
.
Looking at the pdf
's you linked to, it seems that some javascript magic was also implemented. My answer and Speravir's additional answer to Mouseover will greatly help in this case. There are also a lot of examples provided in the devloper's site: http://user.mendelu.cz/marik/fancy-preview/.
Here is a sample article. (I'm sorry for the inconsistency of topics in content and bibliography:)
. I used different sources for it--the math is from http://en.wikipedia.org/wiki/Argument_principle while the bibliography is from biblatex
's biblatex-examples.bib
. (I am lazy and almost proud of it).
Read through Mouseover for the explanation about compiling the code in different platforms.
% myfile1.tex
\documentclass[10pt]{article}
\usepackage{amsmath}
\usepackage[backend=bibtex]{biblatex}
\usepackage{hyperref}
\newtheorem{theorem}{Theorem}
\addbibresource{biblatex-examples.bib}
\begin{document}
This is an example of a citation \parencite{markey,westfahl:space,aksin}.
Here is a theorem.
\begin{theorem}[Argument Principle]
If $f(z)$ is a meromorphic function inside and on some closed contour $C$, and $f$ has no zeros or poles on $C$, then
\begin{equation}
\label{eq:1}
\oint \frac{f'(z)}{f(z)} dz = 2\pi i(N-P)
\end{equation}
\end{theorem}
$N$ and $P$ of Equation \eqref{eq:1} denote respectively the number of zeros and poles of $f(z)$ inside the contour $C$, with each zero and pole counted as many times as its multiplicity, respectively order, indicates.
\printbibliography.
\end{document}
I compiled this in terminal using
perl fancy-preview myfile1 --fancy_options="previewall,nosoap"
The previewall
option enables mouseover pop-ups even if the link being referenced to is on the same page. I used it here just for the sake of the example but I personally think that enabling mouseover for equations when one can already see the equations on the same page is nonsensical. nosoap
, the default, removes the soap-shaped figures (tooltipmarks) on the top of the links.
Here is the output.

To enable tooltipmarks
, compile with
perl fancy-preview myfile1 --fancy_options="previewall"
To use any of the four pre-defined tooltipmarks
of fancytooltips
, you may use --fancy_options="previewall,tooltipmark=1
where you can replace 1
with 2,3
, or 4
.
Disadvantages
- You can only use
Acrobat
or Adobe Reader
since other pdf readers like evince
have no javascript capabilities.
- The files are bloated.
- The
tooltipmarks
, according to the fancytooltips
manual can disturb the text and I agree.
- The mouseover effects are sometimes annoying especially when you unintentionally mouse over the
tooltipmark
.
- As reminded by Paul Gaborit in comment, the developer of
AcroTex
withdrew the bundle from TeXLive
and the newer versions are now commercial. Although an older version available from CTAN is included in MikTeX
.
pgfplots
uses javascript to allow dynamic interaction with plots. While I wrote that stuff, I stumbled over the problem that you cannot modify the document object model unless the complete document is signed. That, in turn is impossible with pdftex as it seems (?). Recently, I found that it might be possible withdvipdfmx
- perhaps that would be an option.pdfcomment
for its features and answer(s) to the question Mouseover events in beamer: hovering on \eqref and a comment containing the original equation popping up.