I am unsuccessfully trying to have variants of the macros:
\hat, \tilde, \check, \grave, ...
such that the accent is possibly clickable and gives a link to some other part of the document (using \hyperlink or \hyperref for instance). The math on which the accent occurs should not be affected (i.e not be a link). The display should also not be affected compared to the normal command (neither insider nor outside of the command).
There is the post Tweaking \tilde{} command with an answer of egreg which shows how to add symbols next to a tilde. However, it is not clear to me:
- how to adapt to the precise case I am describing, and,
- how much the technique leaves invariant the rest of the typesetting.