[Tex/LaTex] Tooltip with glossary items

fancytooltipsglossariespdfcomment

I'm currently writting a big document including a glossary (\usepackage[toc,nomain,nonumberlist]{glossaries})

Is there an easy way to create automatically tooltips for the entries? So if you hower over it, it shows the explenation. When you click on it, it should still link yout to the glossary?

Maybe something like fancytooltips or pdfcomment?

Best Answer

I used this workaround: Since I only need the tooltip for instances where the acronym is used in short form, I replace the hyperlink with the tooltip.

\usepackage[acronym,shortcuts,nopostdot,style=super,nonumberlist,toc,nogroupskip]{glossaries}

I include the shortcuts option to avoid recursive replacement by \renewcommand.

\renewcommand{\acs}[1]{\pdftooltip{\acrshort*{#1}}{\glsentrylong{#1}}}
\renewcommand{\acsp}[1]{\pdftooltip{\acrshortpl*{#1}}{\glsentrylongpl{#1}}}
Related Question