1

As I am currently writing my thesis, I would like to show figures, tables, refs ou equations corresponding to an hyperref when hoverring over the hyperlink with the mouse inside the produced PDF as in: enter image description here

Note: I don't know why but the mouse does not appear on screenshots. It is respectively on 1987 and 2 of figure 2(b).

I looked here where solutions are described. However, Is there any solution that does not require the use of an external script, and is pure latex ? I would imagine a package that enables the preview for all hyperrefs ?

EDIT:

Thanks to @AlexG comments, I managed to get this working for bibliographic entries.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% usage: \autociteTip{<bib key>}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\autociteTip}[1]{%
  \autocite{#1}%
  \makebox[0pt][l]{%
    \tooltip**[black!0]{|}{\parbox[b]{\textwidth}{\fullcite{#1}}}%
  }%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I have 3 questions remaining :

  1. The pop up appears when the mouse is over the left of the clickable reference, where I'd like it to appear when being over the clickable link (boxed by default in green)

  2. When using \autocite with multiple references, only one pop up appears containing all references. Is there anyway to separate it into different ones ? It is somewhat linked to the previous question.

enter image description here

  1. How can I recover what has been displayed into equation and figure environment ? I.e how can I define the eqref so that it displays the related equation ? Same for the figure.
  • 1
    Could you elaborate on that first paragraph. I have no idea what it is you are after. – daleif Mar 26 at 16:19
  • One of the answers to this question mentions two tooltip packages. Not sure they are workable (the answer also mentions ConTeXt), but possibly worth checking. – barbara beeton Mar 26 at 19:57
  • @daleif see edit with image ! – Liris Mar 28 at 12:58
  • 1
    Look at this method which does not use external scripts: tex.stackexchange.com/a/111932 – AlexG Mar 28 at 14:50
  • 1
    An updated version of the \tooltip command used therein is here: tex.stackexchange.com/a/164186 – AlexG Mar 28 at 14:55

Your Answer

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

Browse other questions tagged or ask your own question.