6

I try to use ocgtools in a beamer presentation, which worked for me some time ago.

But now (TeXLive 2013) this seems not wo work anymore. As soon as I include the ocgtool package there are errors like

! Infinite glue shrinkage found in a paragraph. \@EveryShipout@Hook ...\@cclv \unhbox \@cclv \fi }

Here a minimal example

\documentclass{beamer}

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{ocgtools}

\begin{document}
\frame{
\ocgpicture[width=.5\textwidth]{img}
}
\end{document}

Does anybody know how to circumvent this errormessages?

1 Answers1

3

Thanks for pointing this out. The problem was in forgotten \hss in an hbox. It seems that some of the packages unboxes this box in TeXlive2013. However, I think that this \hss command has been forgotten from previous versions and can be removed safely.

I just issued the new version and I will upload on CTAN after some more tests in few days.

Note also that the \tooltip macro defined in the answer to pdftooltip from pdfcomment package: Using LaTeX code in tooltip might fit better in your document.