3

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?

  • 1
    No, this can not work. Both, the link and the tooltip are so called PDF annotations. These define a rectangle and an action, which will be performed after a click or a mouse-over on the defined area. In the same area one annotaion overlays the other. Links seem to have priority. – Josef Sep 2 '14 at 14:16
  • Well that's a shame thank you for your answer – magu_ Sep 2 '14 at 14:53
  • It might be possible to add a symbol (such as a little triangle) just after the hyperlink and have the tooltip come up over that, which would separate the PDF annotations. – Nicola Talbot Sep 2 '14 at 16:14
  • Not directly want you want, but allows for general LaTeX code inside a tooltip: tex.stackexchange.com/questions/119988/… – user31729 Sep 3 '14 at 7:24
1

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}}}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.